You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sqm-dashboards/app/views/categories/_form.html.haml

27 lines
638 B

= form_for(category) do |f|
- if category.errors.any?
#error_explanation
%h2
= pluralize(category.errors.count, "error")
prohibited this category from being saved:
%ul
- category.errors.full_messages.each do |message|
%li= message
.field
= f.label :name
= f.text_field :name
.field
= f.label :blurb
= f.text_field :blurb
.field
= f.label :description
= f.text_area :description
.field
= f.label :external_id
= f.text_field :external_id
.field
= f.label :parent_category_id
= f.number_field :parent_category_id
.actions
= f.submit