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/questions/_form.html.haml

33 lines
733 B

= form_for(question) do |f|
- if question.errors.any?
#error_explanation
%h2
= pluralize(question.errors.count, "error")
prohibited this question from being saved:
%ul
- question.errors.full_messages.each do |message|
%li= message
.field
= f.label :text
= f.text_field :text
.field
= f.label :option1
= f.text_field :option1
.field
= f.label :option2
= f.text_field :option2
.field
= f.label :option3
= f.text_field :option3
.field
= f.label :option4
= f.text_field :option4
.field
= f.label :option5
= f.text_field :option5
.field
= f.label :category_id
= f.number_field :category_id
.actions
= f.submit