mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Available during registration or after conference Co-authored-by: Shyukri <shshyukriev@suse.com> Co-authored-by: Henne <hvogel@opensuse.org> Co-authored-by: Moises <mdeniz@suse.com>
18 lines
668 B
Text
18 lines
668 B
Text
.row
|
|
.col-md-12
|
|
.page-header
|
|
- if @survey.new_record?
|
|
%h1 New Survey
|
|
- else
|
|
%h1 Edit Survey: #{ @survey.title }
|
|
|
|
.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 :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'
|