2014-11-25 10:47:18 +01:00
|
|
|
.row
|
|
|
|
|
.col-md-12
|
|
|
|
|
.page-header
|
|
|
|
|
%h1
|
2014-11-30 17:50:23 +02:00
|
|
|
-if @sponsor.new_record?
|
|
|
|
|
New
|
2014-11-25 10:47:18 +01:00
|
|
|
Sponsor
|
|
|
|
|
= @sponsor.name
|
|
|
|
|
.row
|
|
|
|
|
.col-md-8
|
2017-03-11 13:25:39 +05:30
|
|
|
= semantic_form_for(@sponsor, url: (@sponsor.new_record? ? admin_conference_sponsors_path : admin_conference_sponsor_path(@conference.short_title, @sponsor))) do |f|
|
2014-11-25 10:47:18 +01:00
|
|
|
= f.input :name
|
|
|
|
|
= f.input :description
|
2016-04-27 15:55:39 +02:00
|
|
|
= image_tag f.object.picture.thumb.url if f.object.picture?
|
|
|
|
|
= f.input :picture
|
2014-11-25 10:47:18 +01:00
|
|
|
= f.input :website_url
|
|
|
|
|
= f.input :sponsorship_level, collection: @conference.sponsorship_levels
|
|
|
|
|
%p.text-right
|
2014-11-30 17:50:23 +02:00
|
|
|
= f.action :submit, as: :button, button_html: { class: 'btn btn-primary' }
|