osem-fcy/app/views/admin/sponsors/new.html.haml

21 lines
648 B
Text
Raw Normal View History

.row
.col-md-12
.page-header
%h1
-if @sponsor.new_record?
New
Sponsor
= @sponsor.name
.row
.col-md-8
2017-08-18 16:07:19 +03:00
= semantic_form_for(@sponsor, url: (admin_conference_sponsors_path)) do |f|
= f.input :name
2017-08-27 15:42:52 +03:00
= f.input :description, input_html: { rows: 7, data: { provide: 'markdown-editable' } }
2016-04-27 15:55:39 +02:00
= 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
2017-08-18 16:07:19 +03:00
%p.text-right
= f.action :submit, as: :button, button_html: { class: 'btn btn-primary' }