Display submission instructions on the new/edit forms
This commit is contained in:
parent
bc4177154a
commit
1a24533b00
2 changed files with 18 additions and 24 deletions
|
|
@ -47,21 +47,16 @@
|
||||||
words.
|
words.
|
||||||
|
|
||||||
%br
|
%br
|
||||||
|
- @conference.program.event_types.each do |event_type|
|
||||||
|
%span{ class: 'help-block select-help-text event_event_type_id collapse', id: "#{event_type.id}-help" }
|
||||||
|
%h3
|
||||||
|
= event_type.name
|
||||||
|
Instructions
|
||||||
|
= markdown(event_type.submission_instructions)
|
||||||
|
|
||||||
= f.input :submission_text, input_html: { rows: 5, data: { provide: 'markdown' }, placeholder: '' },
|
= f.input :submission_text, input_html: { rows: 5, data: { provide: 'markdown' }, placeholder: '' },
|
||||||
hint: markdown_hint('Only conference organizers will read this.')
|
hint: markdown_hint('Only conference organizers will read this.')
|
||||||
|
|
||||||
%p
|
|
||||||
You have used
|
|
||||||
%span#submission-count #{@event.submission_word_count}
|
|
||||||
words. Submission descriptions must be between
|
|
||||||
%span#submission-minimum-word-count
|
|
||||||
0
|
|
||||||
and
|
|
||||||
%span#submission-maximum-word-count
|
|
||||||
250
|
|
||||||
words.
|
|
||||||
|
|
||||||
- if current_user.is_admin? or @program.cfp.enable_registrations?
|
- if current_user.is_admin? or @program.cfp.enable_registrations?
|
||||||
= f.inputs 'Enable pre-registration' do
|
= f.inputs 'Enable pre-registration' do
|
||||||
= f.input :require_registration, label: 'Require participants to register to your event'
|
= f.input :require_registration, label: 'Require participants to register to your event'
|
||||||
|
|
|
||||||
|
|
@ -61,22 +61,21 @@
|
||||||
250
|
250
|
||||||
words.
|
words.
|
||||||
|
|
||||||
|
%br
|
||||||
|
- @conference.program.event_types.each do |event_type|
|
||||||
|
%span{ class: 'help-block select-help-text event_event_type_id collapse', id: "#{event_type.id}-help" }
|
||||||
|
%h3
|
||||||
|
= event_type.name
|
||||||
|
Instructions
|
||||||
|
%p Please use this as the template for your submission.
|
||||||
|
This part of the submissions is intended only for the conference committee.
|
||||||
|
%hr
|
||||||
|
= markdown(event_type.submission_instructions)
|
||||||
|
|
||||||
|
|
||||||
= f.input :submission_text, input_html: { rows: 5, data: { provide: 'markdown' } },
|
= f.input :submission_text, input_html: { rows: 5, data: { provide: 'markdown' } },
|
||||||
hint: markdown_hint
|
hint: markdown_hint
|
||||||
|
|
||||||
%p
|
|
||||||
You have used
|
|
||||||
%span#submission-count #{@event.submission_word_count}
|
|
||||||
words. Submission descriptions must be between
|
|
||||||
%span#submission-minimum-word-count
|
|
||||||
0
|
|
||||||
and
|
|
||||||
%span#submission-maximum-word-count
|
|
||||||
250
|
|
||||||
words.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- if @program.cfp.enable_registrations?
|
- if @program.cfp.enable_registrations?
|
||||||
= f.input :require_registration, label: 'Require participants to register to your event'
|
= f.input :require_registration, label: 'Require participants to register to your event'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue