Replace all datepickers with date input
Nowadays all browsers have reasonable date input support...
This commit is contained in:
parent
07bfff8fa1
commit
30fdc2d796
6 changed files with 26 additions and 39 deletions
|
|
@ -32,10 +32,10 @@
|
|||
- elsif survey_question.text?
|
||||
= text_area_tag "survey_submission[#{survey_question.id}][]", survey_reply.text, rows: 4, class: 'form-control', required: survey_question.mandatory
|
||||
- elsif survey_question.datetime?
|
||||
.form-group{ class: 'datetimepicker' }
|
||||
.form-group
|
||||
.input-group
|
||||
.input-group-addon
|
||||
%span.fa-solid.fa-calendar
|
||||
%input.form-control{ readonly: 'readonly', name: "survey_submission[#{survey_question.id}][]", value: survey_reply.text, required: survey_question.mandatory }
|
||||
%input.form-control{ type: 'datetime-local', readonly: 'readonly', name: "survey_submission[#{survey_question.id}][]", value: survey_reply.text, required: survey_question.mandatory }
|
||||
- elsif survey_question.numeric?
|
||||
%input.form-control{ type: 'number', name: "survey_submission[#{survey_question.id}][]", value: survey_reply.text, required: survey_question.mandatory }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue