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

21 lines
524 B

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