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

@ -0,0 +1,20 @@
.row
.col-md-12
.page-header
%h1
Edit
= @sponsor.name
.row
.col-md-8
= semantic_form_for(@sponsor, url: admin_conference_sponsor_path(@conference.short_title, @sponsor)) do |f|
= f.input :name
= f.input :description
= f.input :picture
= f.input :website_url
= f.input :sponsorship_level, collection: @conference.sponsorship_levels
= f.input :company_address
= f.input :vat_registration
= image_tag f.object.picture.thumb.url if f.object.picture?
= f.input :picture
%p.text-right
= f.action :submit, as: :button, button_html: { class: 'btn btn-primary' }