Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E-learning: Add courses routes, index, and new form #3850

Open
faithngetich opened this issue Mar 2, 2023 · 0 comments
Open

E-learning: Add courses routes, index, and new form #3850

faithngetich opened this issue Mar 2, 2023 · 0 comments
Assignees

Comments

@faithngetich
Copy link

faithngetich commented Mar 2, 2023

Feature: Courses
As a site teacher
In order to be able to teach things
I would like to create courses

Scenario: Creating a new course
Given I have logged in
And I am on the "courses" page
When I click the "New Course" button
Then I should see "Creating a new Course"
And I should see a form with:
| Field |
| Title |
| Description |
| Slack channel name |

Snippets (if we decide to use simple_form gem):

// Gemfile
gem 'simple_form'

// Console
bundle install
rails generate simple_form:install

// Any form can look something like
= simple_form_for @Course do |f|
= f.error_notification
= f.error_notification message: f.object.errors[:base].to_sentence if f.object.errors[:base].present?
= f.input :title
= f.label :description
= f.rich_text_area :description
/= f.submit 'Save'
= f.button :submit

@faithngetich faithngetich converted this from a draft issue Mar 2, 2023
@faithngetich faithngetich self-assigned this Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Todo
Development

No branches or pull requests

1 participant