Added target for surveys.
This commit is contained in:
parent
157a16d8f2
commit
9ce4ba6f6b
6 changed files with 12 additions and 15 deletions
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
%table.table.table-hover#surveys
|
||||
%thead
|
||||
%th Title
|
||||
%th When
|
||||
%th Start Date
|
||||
%th End Date
|
||||
%th Actions
|
||||
|
|
@ -22,6 +23,8 @@
|
|||
%tr
|
||||
%td
|
||||
= link_to survey.title, admin_conference_survey_path(@conference.short_title, survey)
|
||||
%td
|
||||
= survey.target
|
||||
%td
|
||||
= survey.start_date
|
||||
%td
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue