Add #show for sponsors
This commit is contained in:
parent
de1fa448a2
commit
336c1e86bd
9 changed files with 147 additions and 11 deletions
|
|
@ -8,12 +8,16 @@
|
|||
= @sponsor.name
|
||||
.row
|
||||
.col-md-8
|
||||
= semantic_form_for(@sponsor, url: (@sponsor.new_record? ? admin_conference_sponsors_path : admin_conference_sponsor_path(@conference.short_title, @sponsor))) do |f|
|
||||
= semantic_form_for(@sponsor, url: (admin_conference_sponsors_path)) do |f|
|
||||
= f.input :name
|
||||
= f.input :description
|
||||
= image_tag f.object.picture.thumb.url if f.object.picture?
|
||||
= f.input :picture
|
||||
= f.input :website_url
|
||||
= f.input :sponsorship_level, collection: @conference.sponsorship_levels
|
||||
-# = f.input :type
|
||||
-# = f.input :quantity
|
||||
-# - generate_swags_hash(type, quantity)
|
||||
|
||||
%p.text-right
|
||||
= f.action :submit, as: :button, button_html: { class: 'btn btn-primary' }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue