45 lines
1.6 KiB
Text
45 lines
1.6 KiB
Text
|
|
<h1><%= t("scaffold.pagetitle_index", model: SuccessCriterion.model_name.human(count: 2)) %></h1>
|
||
|
|
|
||
|
|
<table class="table table-striped">
|
||
|
|
<thead>
|
||
|
|
<tr>
|
||
|
|
<th><%= SuccessCriterion.human_attribute_name(:id) %></th>
|
||
|
|
|
||
|
|
<th><%= SuccessCriterion.human_attribute_name(:element_id) %></th>
|
||
|
|
|
||
|
|
<th><%= SuccessCriterion.human_attribute_name(:title) %></th>
|
||
|
|
|
||
|
|
<th><%= SuccessCriterion.human_attribute_name(:description) %></th>
|
||
|
|
|
||
|
|
<th><%= SuccessCriterion.human_attribute_name(:level) %></th>
|
||
|
|
|
||
|
|
<th><%= SuccessCriterion.human_attribute_name(:result) %></th>
|
||
|
|
|
||
|
|
<th><%= SuccessCriterion.human_attribute_name(:comment) %></th>
|
||
|
|
|
||
|
|
</thead>
|
||
|
|
<tbody>
|
||
|
|
<% @success_criteria.each do |success_criterion| %>
|
||
|
|
<tr>
|
||
|
|
<td><%= link_to(success_criterion.id, url_for(success_criterion)) %></td>
|
||
|
|
|
||
|
|
<td><%= link_to(success_criterion.element_id, url_for(success_criterion)) %></td>
|
||
|
|
|
||
|
|
<td><%= link_to(success_criterion.title, url_for(success_criterion)) %></td>
|
||
|
|
|
||
|
|
<td><%= link_to(success_criterion.description, url_for(success_criterion)) %></td>
|
||
|
|
|
||
|
|
<td><%= link_to(success_criterion.level, url_for(success_criterion)) %></td>
|
||
|
|
|
||
|
|
<td><%= link_to(success_criterion.result, url_for(success_criterion)) %></td>
|
||
|
|
|
||
|
|
<td><%= link_to(success_criterion.comment, url_for(success_criterion)) %></td>
|
||
|
|
|
||
|
|
</tr>
|
||
|
|
<% end %>
|
||
|
|
</tbody>
|
||
|
|
</table>
|
||
|
|
|
||
|
|
<div class="action-row">
|
||
|
|
<%= link_to t("scaffold.link_new", model: SuccessCriterion.model_name.human), new_success_criterion_path %>
|
||
|
|
</div>
|