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

13 lines
813 B
Plaintext
Raw Normal View History

2015-11-24 05:51:47 +00:00
<li class="apartment card col-xs-6 col-md-3 col-lg-2 animated bounceInDown">
<div class="card-inner">
<div class="apartment-img card-link" style="background-image: url(<%= sub_unit.floor_sub_unit_images.blank? ? "/assets/no-layout.jpg" : sub_unit.floor_sub_unit_images.first.image.thumb.url %>)">
<p class="card-name card-name-not-link"><%= sub_unit.title %></p>
</div>
<div class="card-actions">
<a class="btn-flat btn-flat-primary btn-flat-has-icon" href="/admin/spaces/sub_unit/<%= sub_unit.to_param %>/edit"><i class="fa fa-pencil"></i>Edit</a>
<a class="btn-flat btn-flat-danger btn-flat-has-icon" href="/admin/spaces/sub_unit/<%= sub_unit.to_param %>/delete" data-method="delete" data-confirm="Are you sure?"><i class="fa fa-times"></i>Delete</a>
</div>
</div>
2015-09-24 15:43:47 +00:00
</li>