Use PictureUploader on Venue
This commit is contained in:
parent
f1f5fc1cd4
commit
2a4de3e869
3 changed files with 6 additions and 10 deletions
|
|
@ -8,7 +8,7 @@
|
|||
= link_to 'Details', '#details-content', 'data-toggle' => 'tab'
|
||||
%li
|
||||
= link_to 'Commercials', '#commercials-content', 'data-toggle' => 'tab'
|
||||
|
||||
|
||||
.tab-content
|
||||
#details-content.tab-pane.active
|
||||
.col-md-8
|
||||
|
|
@ -16,9 +16,9 @@
|
|||
= f.inputs :name, :website
|
||||
= f.input :description, input_html: { rows: 5, cols: 20, data: { provide: 'markdown-editable' } }, hint: markdown_hint
|
||||
= f.inputs :street, :postalcode, :city, :country, :latitude, :longitude
|
||||
- unless @venue.photo.blank?
|
||||
= image_tag @venue.photo(:thumb)
|
||||
= f.input :photo
|
||||
- if @venue.picture?
|
||||
= image_tag @venue.picture.thumb.url
|
||||
= f.input :picture
|
||||
= f.action :submit, as: :button, button_html: { class: 'btn btn-primary' }
|
||||
|
||||
#commercials-content.tab-pane
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue