mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
28 lines
956 B
Text
28 lines
956 B
Text
.row
|
|
.col-md-12
|
|
.page-header
|
|
- if @survey.new_record?
|
|
%h1 New Survey
|
|
- else
|
|
%h1 Edit Survey: #{ @survey.title }
|
|
|
|
.col-md-6
|
|
= form_for @survey, url: @url do |f|
|
|
= f.hidden_field :surveyable_type
|
|
= f.hidden_field :surveyable_id
|
|
.form-group
|
|
= f.label :title
|
|
%abbr{title: 'This field is required'} *
|
|
= f.text_field :title, class: 'form-control'
|
|
.form-group
|
|
= f.label :description
|
|
= f.text_area :description, rows: 3, class: 'form-control'
|
|
.form-group
|
|
= f.label :target, "When to ask"
|
|
= f.select :target, Survey.targets.keys, class: 'form-control'
|
|
.form-group
|
|
= f.label :start_date
|
|
= f.text_field :start_date, class: 'datetimepicker', class: 'form-control'
|
|
= f.label :end_date
|
|
= f.text_field :end_date, class: 'datetimepicker', class: 'form-control'
|
|
= f.submit nil, class: 'btn btn-primary'
|