33 lines
992 B
Text
33 lines
992 B
Text
|
|
<h1><%= t("scaffold.pagetitle_index", model: Checklist.model_name.human(count: 2)) %></h1>
|
||
|
|
|
||
|
|
<table class="table table-striped">
|
||
|
|
<thead>
|
||
|
|
<tr>
|
||
|
|
<th><%= Checklist.human_attribute_name(:id) %></th>
|
||
|
|
|
||
|
|
<th><%= Checklist.human_attribute_name(:code) %></th>
|
||
|
|
|
||
|
|
<th><%= Checklist.human_attribute_name(:name) %></th>
|
||
|
|
|
||
|
|
<th><%= Checklist.human_attribute_name(:description) %></th>
|
||
|
|
|
||
|
|
</thead>
|
||
|
|
<tbody>
|
||
|
|
<% @checklists.each do |checklist| %>
|
||
|
|
<tr>
|
||
|
|
<td><%= link_to(checklist.id, url_for(checklist)) %></td>
|
||
|
|
|
||
|
|
<td><%= link_to(checklist.code, url_for(checklist)) %></td>
|
||
|
|
|
||
|
|
<td><%= link_to(checklist.name, url_for(checklist)) %></td>
|
||
|
|
|
||
|
|
<td><%= link_to(checklist.description, url_for(checklist)) %></td>
|
||
|
|
|
||
|
|
</tr>
|
||
|
|
<% end %>
|
||
|
|
</tbody>
|
||
|
|
</table>
|
||
|
|
|
||
|
|
<div class="action-row">
|
||
|
|
<%= link_to t("scaffold.link_new", model: Checklist.model_name.human), new_checklist_path %>
|
||
|
|
</div>
|