25 lines
822 B
Text
25 lines
822 B
Text
|
|
<h1><%= t("scaffold.pagetitle_index", model: Check.model_name.human(count: 2)) %></h1>
|
||
|
|
|
||
|
|
<table class="table table-striped">
|
||
|
|
<thead>
|
||
|
|
<tr>
|
||
|
|
<th><%= Check.human_attribute_name(:id) %></th>
|
||
|
|
<th><%= Check.human_attribute_name(:level) %></th>
|
||
|
|
<th><%= Check.human_attribute_name(:name) %></th>
|
||
|
|
<th><%= Check.human_attribute_name(:success_criterion) %></th>
|
||
|
|
</thead>
|
||
|
|
<tbody>
|
||
|
|
<% @checks.each do |check| %>
|
||
|
|
<tr>
|
||
|
|
<td><%= check.id %></td>
|
||
|
|
<td><%= check.level %></td>
|
||
|
|
<td><%= link_to(check.name, url_for(check)) %></td>
|
||
|
|
<td><%= link_to(truncate(check.success_criterion), url_for(check)) %></td>
|
||
|
|
</tr>
|
||
|
|
<% end %>
|
||
|
|
</tbody>
|
||
|
|
</table>
|
||
|
|
|
||
|
|
<div class="action-row">
|
||
|
|
<%= link_to t("scaffold.link_new", model: Check.model_name.human), new_check_path %>
|
||
|
|
</div>
|