Add #show for sponsors

This commit is contained in:
nasia 2017-08-18 16:07:19 +03:00
parent de1fa448a2
commit 336c1e86bd
9 changed files with 147 additions and 11 deletions

View file

@ -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' }