mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
remove double list render on equipment index
This commit is contained in:
parent
01e01bc8f9
commit
125da43df8
@ -8,37 +8,6 @@
|
||||
</h3>
|
||||
|
||||
<%= render 'list' %>
|
||||
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Type</th>
|
||||
<th>Description</th>
|
||||
<th><%=t '.actions', :default => t("helpers.actions") %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @equipment.each do |equipment| %>
|
||||
<tr>
|
||||
<td style="width: 160px;"><%= simple_format link_to equipment.name, equipment_path(equipment) %></td>
|
||||
<td><%= simple_format equipment.equip_type %></td>
|
||||
<td><%= simple_format equipment.description %></td>
|
||||
<td style="width: 180px;">
|
||||
<%= link_to t('.view', :default => t("helpers.links.view")),
|
||||
equipment_path(equipment), :class => 'btn' %>
|
||||
<%= link_to t('.edit', :default => t("helpers.links.edit")),
|
||||
equipment_edit_path(equipment), :class => 'btn' %>
|
||||
<%= link_to t('.destroy', :default => t("helpers.links.destroy")),
|
||||
equipment_path(equipment),
|
||||
:method => :delete,
|
||||
:confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')),
|
||||
:class => 'btn btn-danger' %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user