|
8 | 8 | <% end %> |
9 | 9 | <% end %> |
10 | 10 |
|
11 | | - <%= form_for @recipe, url: category_recipes_path do |f| %> |
| 11 | + <section id='recipe-data'> |
| 12 | + <%= form_for @recipe, url: category_recipes_path do |f| %> |
12 | 13 |
|
13 | | - <p><%= f.label :title %></p> |
14 | | - <p><%= f.text_field :title %></p> |
| 14 | + <p><%= f.label :title %></p> |
| 15 | + <p><%= f.text_field :title %></p> |
15 | 16 |
|
16 | | - <p><%= f.label :directions %></p> |
17 | | - <p><%= f.text_area :directions %></p> |
| 17 | + <p><%= f.label :directions %></p> |
| 18 | + <p><%= f.text_area :directions %></p> |
18 | 19 |
|
19 | | - <p><%= f.label :time %></p> |
20 | | - <span><%= f.text_field :time %></span> |
21 | | - <span><%= f.label "in minutes" %></span> |
| 20 | + <p><%= f.label :time %></p> |
| 21 | + <span><%= f.text_field :time %></span> |
| 22 | + <span><%= f.label "in minutes" %></span> |
22 | 23 |
|
23 | | - <p><%= f.label :difficulty %></p> |
24 | | - <p><%= f.select :difficulty, options_for_select([['easy', 'easy'], ['medium', 'medium'], ['hard', 'hard']]) %></p><br> |
| 24 | + <p><%= f.label :difficulty %></p> |
| 25 | + <p><%= f.select :difficulty, options_for_select([['easy', 'easy'], ['medium', 'medium'], ['hard', 'hard']]) %></p><br> |
| 26 | + |
| 27 | + <p><%= f.submit "Submit" %></p> |
| 28 | + <% end %> |
| 29 | + </section> |
25 | 30 |
|
26 | | - <%= f.submit "Add My Recipe!" %> |
27 | 31 |
|
28 | | - <% end %> |
29 | 32 | </article> |
0 commit comments