42 lines
1.3 KiB
Plaintext
42 lines
1.3 KiB
Plaintext
<table class="table main-list">
|
|
<thead>
|
|
<tr class="sort-header">
|
|
<% @table_fields.each do |f| %>
|
|
<%= thead(f) %>
|
|
<% end %>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% @properties.each do |property| %>
|
|
<tr>
|
|
<td>
|
|
<a href="<%= admin_property_hire_path(property) %>"><%= property.title %></a>
|
|
<div class="quick-edit">
|
|
<ul class="nav nav-pills">
|
|
<% if can_edit_or_delete?(property) %>
|
|
<li><a href="<%= edit_admin_property_hire_path(property, :page => params[:page]) %>"><%= t(:edit) %></a></li>
|
|
<li><a href="<%= admin_property_hire_path(property.id, :page => params[:page]) %>" data-method="delete" data-confirm="Are you sure?"><%= t(:delete_) %></a></li>
|
|
<% end %>
|
|
</ul>
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<%= property.category.title %>
|
|
</td>
|
|
<td>
|
|
<%= property.get_location_name %>
|
|
</td>
|
|
<td>
|
|
<% if property.can_be_hired %>
|
|
<span class="badge badge-success">Yes</span>
|
|
<% else %>
|
|
<span class="badge badge-important">No</span>
|
|
<% end %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
<div class="bottomnav clearfix">
|
|
<%= content_tag(:div, paginate(@properties), class: "pagination pagination-centered") %>
|
|
</div> |