space/app/views/admin/spaces/_floor.html.erb

10 lines
654 B
Plaintext
Raw Normal View History

2015-09-22 05:56:02 +00:00
<tr>
<td><a href="/admin/spaces/<%= floor.building.to_param %>/<%= floor.to_param %>/units"><%= floor.title %></a></td>
<td>
2015-09-24 15:43:47 +00:00
<% if !floor.layout_image.url.nil? %>
2015-09-22 05:56:02 +00:00
<a href="/admin/spaces/floor/<%= floor.to_param %>/layout" class="btn btn-info">Floor Layout</a>
<% end %>
<a href="#" data-values='{"id" : "<%= floor.id.to_s %>", "title" : "<%= floor.title %>", "layout" : "<%= floor.layout_image.url == "" ? "" : floor.layout_image.url %>"}' class="btn btn-warning edit-floor-btns">Edit Floor</a>
<a href="/admin/spaces/floor/<%= floor.to_param %>/delete" class="btn btn-danger floor-delete-btns"><i class="icons-trash"></i></a>
</td>
</tr>