Commit bebfc54365ea1d9685547f8be6f6b114b28f8186
1 parent
75399cd7
Exists in
master
and in
28 other branches
ActionItem988: add the checkbox for the display_in_menu field
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
app/views/categories/_form.rhtml
@@ -21,6 +21,8 @@ | @@ -21,6 +21,8 @@ | ||
21 | 21 | ||
22 | <%= required f.text_field('name') %> | 22 | <%= required f.text_field('name') %> |
23 | 23 | ||
24 | + <%= labelled_check_box(_('Display in the menu'), 'category[display_in_menu]', '1', @category.display_in_menu) %> | ||
25 | + | ||
24 | <% f.fields_for :image_builder, @category.image do |i| %> | 26 | <% f.fields_for :image_builder, @category.image do |i| %> |
25 | <%= file_field_or_thumbnail(_('Image:'), @category.image, i) %> | 27 | <%= file_field_or_thumbnail(_('Image:'), @category.image, i) %> |
26 | <% end %> | 28 | <% end %> |