2014-11-14 11:58:36 +01:00
|
|
|
.container
|
|
|
|
|
.row
|
|
|
|
|
.col-md-12
|
2015-04-16 18:34:41 +03:00
|
|
|
.page-header
|
2020-06-04 02:04:07 -07:00
|
|
|
%h1 New #{@conference.title} Proposal
|
2017-09-05 18:15:46 +05:30
|
|
|
- if @program.cfp_open?
|
|
|
|
|
- if @program.cfp.description.present?
|
|
|
|
|
.row
|
|
|
|
|
.col-md-12
|
2020-01-07 15:38:17 -08:00
|
|
|
= markdown(@program.cfp.description, escape_html=false)
|
2014-11-14 11:58:36 +01:00
|
|
|
.row
|
|
|
|
|
.col-md-12
|
2015-04-16 18:34:41 +03:00
|
|
|
= render partial: 'encouragement_text'
|
|
|
|
|
.row
|
|
|
|
|
.col-md-8
|
2016-08-06 00:57:07 +02:00
|
|
|
- unless current_user
|
2015-04-16 18:34:41 +03:00
|
|
|
%legend
|
|
|
|
|
%span
|
2020-06-04 02:04:07 -07:00
|
|
|
= link_to('#signup', role: 'tab', 'aria-controls' => 'home', 'data-toggle' => 'tab') do
|
|
|
|
|
Create a Snap!Con Account
|
|
|
|
|
|
2015-04-16 18:34:41 +03:00
|
|
|
%span.pull-right#account-already
|
2020-06-04 02:04:07 -07:00
|
|
|
= link_to('#signin', role: 'tab', 'aria-controls' => 'home', 'data-toggle' => 'tab') do
|
|
|
|
|
Already have a Snap!Con account?
|
2015-04-16 18:34:41 +03:00
|
|
|
.tab-content
|
|
|
|
|
.tab-pane.active{role: 'tabpanel', id: 'signup'}
|
|
|
|
|
|
|
|
|
|
= semantic_form_for(@event, url: @url) do |f|
|
|
|
|
|
|
2015-04-18 21:44:40 +03:00
|
|
|
= render partial: 'devise/shared/sign_up_form_embedded'
|
|
|
|
|
|
2015-04-16 18:34:41 +03:00
|
|
|
= f.inputs name: 'Proposal Information' do
|
2015-10-06 14:15:38 +03:00
|
|
|
= f.input :title, as: :string, required: true, input_html: { required: true }
|
2015-04-16 18:34:41 +03:00
|
|
|
= f.input :event_type_id, as: :select,
|
2015-10-25 13:29:02 +02:00
|
|
|
collection: @program.event_types.map {|type| ["#{type.title} - #{show_time(type.length)}", type.id,
|
2015-04-16 18:34:41 +03:00
|
|
|
data: { min_words: type.minimum_abstract_length, max_words: type.maximum_abstract_length }]},
|
|
|
|
|
include_blank: false, label: 'Type', input_html: { class: 'select-help-toggle' }
|
|
|
|
|
|
2016-03-21 00:18:20 +01:00
|
|
|
- if @program.languages.present?
|
|
|
|
|
= f.input :language, as: :select,
|
|
|
|
|
collection: @languages,
|
|
|
|
|
include_blank: false, label: 'Language', input_html: { class: 'select-help-toggle' }
|
|
|
|
|
|
2020-06-04 02:04:07 -07:00
|
|
|
- @program.event_types.each do |event_type|
|
|
|
|
|
%div{ class: 'help-block event_event_type_id collapse', id: "#{event_type.id}-help"}
|
|
|
|
|
%strong Directions
|
|
|
|
|
%div
|
|
|
|
|
= markdown(event_type.description)
|
|
|
|
|
|
2020-04-04 21:48:31 -07:00
|
|
|
= f.input :abstract, required: true, input_html: { rows: 5, data: { provide: 'markdown' } },
|
2020-01-07 15:38:17 -08:00
|
|
|
hint: markdown_hint
|
2015-04-16 18:34:41 +03:00
|
|
|
|
|
|
|
|
%p
|
|
|
|
|
You have used
|
|
|
|
|
%span#abstract-count #{@event.abstract_word_count}
|
2020-06-04 02:04:07 -07:00
|
|
|
words. Abstracts must be between
|
2015-04-16 18:34:41 +03:00
|
|
|
%span#abstract-minimum-word-count
|
|
|
|
|
0
|
|
|
|
|
and
|
|
|
|
|
%span#abstract-maximum-word-count
|
|
|
|
|
250
|
|
|
|
|
words.
|
|
|
|
|
|
2021-02-16 13:45:38 -08:00
|
|
|
= f.input :submission_text, input_html: { rows: 5, data: { provide: 'markdown' } },
|
|
|
|
|
hint: markdown_hint
|
|
|
|
|
|
|
|
|
|
%p
|
|
|
|
|
You have used
|
2021-02-18 23:27:20 -08:00
|
|
|
%span#submission-count #{@event.submission_word_count}
|
2021-02-16 13:45:38 -08:00
|
|
|
words. Submission descriptions must be between
|
2021-02-18 23:27:20 -08:00
|
|
|
%span#submission-minimum-word-count
|
2021-02-16 13:45:38 -08:00
|
|
|
0
|
|
|
|
|
and
|
2021-02-18 23:27:20 -08:00
|
|
|
%span#submission-maximum-word-count
|
2021-02-16 13:45:38 -08:00
|
|
|
250
|
|
|
|
|
words.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-10-18 12:01:42 -07:00
|
|
|
- if @program.cfp.enable_registrations?
|
|
|
|
|
= f.input :require_registration, label: 'Require participants to register to your event'
|
2015-04-16 18:34:41 +03:00
|
|
|
|
|
|
|
|
%p.text-right
|
2020-06-04 02:04:07 -07:00
|
|
|
= link_to '#description', 'data-toggle' => 'collapse', id: 'description_link' do
|
2015-04-16 18:34:41 +03:00
|
|
|
Do you require something special?
|
|
|
|
|
.collapse#description
|
2020-06-04 02:04:07 -07:00
|
|
|
Tell us if you'd like to try something unique or interesting or need help in sharing your presentation online.
|
2015-04-16 18:34:41 +03:00
|
|
|
= f.input :description, input_html: { rows: 5 }, label: 'Requirements', placeholder: 'Eg. Whiteboard, printer, or something like that.'
|
|
|
|
|
|
|
|
|
|
%p.text-right
|
2020-06-04 02:04:07 -07:00
|
|
|
= f.submit 'Submit Proposal', class: 'btn btn-success'
|
2015-10-06 14:15:38 +03:00
|
|
|
|
2015-04-16 18:34:41 +03:00
|
|
|
.tab-pane{role: 'tabpanel', id: 'signin'}
|
2015-04-18 21:44:40 +03:00
|
|
|
= render partial: 'devise/shared/sign_in_form_embedded'
|