osem-fcy/app/views/admin/surveys/new.html.haml
2016-06-28 18:16:06 +03:00

14 lines
486 B
Text

.row
.col-md-12
.page-header
%h1 New Survey
.col-md-6
= semantic_form_for @survey, url: @url do |f|
= f.hidden_field :surveyable_type
= f.hidden_field :surveyable_id
= f.input :title
= f.input :description, input_html: { rows: 3 }
= 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'