Cleanup the submission form, fix reset button

This commit is contained in:
Michael Ball 2021-03-23 23:06:34 -07:00
parent df0aa087fb
commit e810fd442f
5 changed files with 6 additions and 7 deletions

View file

@ -25,7 +25,7 @@
%span{ class: 'help-block select-help-text collapse event_difficulty_level_id', id: "#{difficulty_level.id}-help" }
= difficulty_level.description
= render 'submission_type_content_form', f: f, program: @program
= render 'proposals/submission_type_content_form', f: f, program: @program
- if @program.cfp&.enable_registrations?
= f.inputs 'Enable pre-registration' do

View file

@ -56,7 +56,7 @@
.panel-body
= markdown(event_type.submission_instructions)
.panel-footer
%button.btn.btn-warning.btn-xs{ type: 'button', id: 'sub_text_reset', data: { confirm: 'Do you really want to reset your submission text to the provided template?' } }
%button.btn.btn-warning.btn-xs.js-resetSubmissionText{ type: 'button', data: { confirm: 'Do you really want to reset your submission text to the provided template?' } }
Reset Submission to Template
%span.small You may want to use this if you have changed the submission type.