Merge pull request #2987 from mkiroshdz/proposal-views-refactor
Refactor proposal forms
This commit is contained in:
commit
5fe2f1dfc3
7 changed files with 132 additions and 181 deletions
|
|
@ -26,50 +26,6 @@
|
|||
.tab-pane.active{role: 'tabpanel', id: 'signup'}
|
||||
= form_for(@event, url: @url) do |f|
|
||||
= render partial: 'devise/registrations/new_embedded'
|
||||
%h4
|
||||
Proposal Information
|
||||
%hr
|
||||
.form-group
|
||||
= f.label :title
|
||||
= f.text_field :title, required: true, class: 'form-control'
|
||||
= f.label :event_type_id, 'Type'
|
||||
= f.select :event_type_id, @program.event_types.map {|type| ["#{type.title} - #{show_time(type.length)}", type.id] }, { include_blank: false }, { class: 'select-help-toggle form-control' }
|
||||
- if @program.languages.present?
|
||||
= f.label :language
|
||||
= f.select :language, @languages, include_blank: false, class: 'select-help-toggle form-control'
|
||||
- @program.event_types.each do |event_type|
|
||||
%span{ class: 'help-block event_event_type_id collapse', id: "#{event_type.id}-help" }
|
||||
= event_type.description
|
||||
.form-group
|
||||
= f.label :abstract
|
||||
= f.text_area :abstract, required: true, rows: 5, data: { provide: 'markdown' }, class: 'form-control'
|
||||
%span.help-block
|
||||
%p
|
||||
You have used
|
||||
%span#abstract-count #{@event.abstract_word_count}
|
||||
words. Abstracts must be between
|
||||
%span#abstract-minimum-word-count
|
||||
0
|
||||
and
|
||||
%span#abstract-maximum-word-count
|
||||
250
|
||||
words.
|
||||
= markdown_hint('[Tips to improve your presentations.](http://blog.hubspot.com/blog/tabid/6307/bid/5975/10-Rules-to-Instantly-Improve-Your-Presentations.aspx)')
|
||||
- if @program.cfp.enable_registrations?
|
||||
.checkbox
|
||||
%label
|
||||
= f.check_box :require_registration
|
||||
Require participants to register to your event?
|
||||
%p.text-right
|
||||
= link_to '#description', 'data-toggle' => 'collapse', id: 'description_link' do
|
||||
Do you require something special for your event?
|
||||
.collapse#description
|
||||
.form-group
|
||||
= f.label :description, 'Requirements'
|
||||
= f.text_area :description, rows: 5, class: 'form-control'
|
||||
%span.help-block
|
||||
Tell us what you need for your event. A whiteboard, a printer or something like that.
|
||||
%p.text-right
|
||||
= f.submit 'Create Proposal', class: 'btn btn-success'
|
||||
= render partial: 'form', locals: { f: f }
|
||||
.tab-pane{role: 'tabpanel', id: 'signin'}
|
||||
= render partial: 'devise/sessions/new_embedded'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue