Retire semantic_form_for
Also a buttload of form cleanups...
This commit is contained in:
parent
350b1ebbbe
commit
81853d1ef9
136 changed files with 1825 additions and 1441 deletions
18
app/views/proposals/_commercial_form_fields.html.haml
Normal file
18
app/views/proposals/_commercial_form_fields.html.haml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
.form-group
|
||||
= f.label :url
|
||||
%abbr{title: 'This field is required'} *
|
||||
= f.text_field :url, required: 'required', class: 'form-control'
|
||||
%span.help-block
|
||||
Just paste the url of your video/photo provider. Currently supported: YouTube, Vimeo, SpeakerDeck, SlideShare, Instagram, Flickr.
|
||||
.form-group
|
||||
- if f.object.new_record?
|
||||
= f.submit nil, class: 'btn btn-primary pull-right', id: 'commercial_submit_action', disabled: true
|
||||
- else
|
||||
= f.submit nil, class: 'btn btn-primary pull-right'
|
||||
- if can? :destroy, commercial
|
||||
= link_to('Delete', conference_program_proposal_commercial_path(@conference.short_title, @event.id, commercial.id),
|
||||
:method => :delete, :data => { :confirm => 'Are you sure?' }, class: 'btn btn-danger')
|
||||
- if f.object.versions.any?
|
||||
.text-right
|
||||
added by
|
||||
= link_to_user(commercial.versions.last.whodunnit)
|
||||
Loading…
Add table
Add a link
Reference in a new issue