Added target for surveys.

This commit is contained in:
Shyukri Shyukriev 2016-06-30 12:09:21 +02:00
parent 157a16d8f2
commit 9ce4ba6f6b
6 changed files with 12 additions and 15 deletions

View file

@ -9,6 +9,7 @@
= f.hidden_field :surveyable_id
= f.input :title
= f.input :description, input_html: { rows: 3 }
= f.input :target, as: :select, collection: Survey.targets.keys, label: "When to ask"
= f.input :start_date, as: :string, input_html: { class: 'datetimepicker' }
= f.input :end_date, as: :string, input_html: { class: 'datetimepicker' }
= f.submit 'Save', class: 'btn btn-primary'