33 lines
1.1 KiB
Text
33 lines
1.1 KiB
Text
|
|
<h1><%= t("scaffold.pagetitle_index", model: ChecklistEntry.model_name.human(count: 2)) %></h1>
|
||
|
|
|
||
|
|
<table class="table table-striped">
|
||
|
|
<thead>
|
||
|
|
<tr>
|
||
|
|
<th><%= ChecklistEntry.human_attribute_name(:id) %></th>
|
||
|
|
|
||
|
|
<th><%= ChecklistEntry.human_attribute_name(:checklist_id) %></th>
|
||
|
|
|
||
|
|
<th><%= ChecklistEntry.human_attribute_name(:check_id) %></th>
|
||
|
|
|
||
|
|
<th><%= ChecklistEntry.human_attribute_name(:position) %></th>
|
||
|
|
|
||
|
|
</thead>
|
||
|
|
<tbody>
|
||
|
|
<% @checklist_entries.each do |checklist_entry| %>
|
||
|
|
<tr>
|
||
|
|
<td><%= link_to(checklist_entry.id, url_for(checklist_entry)) %></td>
|
||
|
|
|
||
|
|
<td><%= link_to(checklist_entry.checklist_id, url_for(checklist_entry)) %></td>
|
||
|
|
|
||
|
|
<td><%= link_to(checklist_entry.check_id, url_for(checklist_entry)) %></td>
|
||
|
|
|
||
|
|
<td><%= link_to(checklist_entry.position, url_for(checklist_entry)) %></td>
|
||
|
|
|
||
|
|
</tr>
|
||
|
|
<% end %>
|
||
|
|
</tbody>
|
||
|
|
</table>
|
||
|
|
|
||
|
|
<div class="action-row">
|
||
|
|
<%= link_to t("scaffold.link_new", model: ChecklistEntry.model_name.human), new_checklist_entry_path %>
|
||
|
|
</div>
|