Refactoring lodgings
This commit is contained in:
parent
c0cdf3e6e5
commit
580c6c6ed9
11 changed files with 177 additions and 68 deletions
8
app/views/admin/lodgings/_form.html.haml
Normal file
8
app/views/admin/lodgings/_form.html.haml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
= f.input :name
|
||||
= f.input :description, :input_html => {:rows => 2, data: { provide: "markdown-editable" } }, hint: markdown_hint("Write about the hotel/place, of what they are offering, about types of rooms, prices and address.")
|
||||
= image_tag f.object.photo(:thumb) if !f.object.photo.blank?
|
||||
= f.input :photo
|
||||
= f.input :website_link
|
||||
= f.action :submit, as: :button, button_html: { class: 'btn btn-primary' }
|
||||
|
||||
= link_to 'Back', admin_conference_lodgings_path(@conference.short_title)
|
||||
Loading…
Add table
Add a link
Reference in a new issue