Adds lodgings controller and view
This commit is contained in:
parent
029281a9ae
commit
e494192ad2
8 changed files with 111 additions and 1 deletions
10
app/views/admin/lodgings/_lodging_fields.html.erb
Normal file
10
app/views/admin/lodgings/_lodging_fields.html.erb
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<div class="nested-fields">
|
||||
<%= f.inputs do %>
|
||||
<%= f.input :name %>
|
||||
<%= f.input :description, :input_html => {:rows => 2 }, 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 %>
|
||||
<%= remove_association_link :lodging, f %>
|
||||
<% end %>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue