2024-07-16 20:22:59 +02:00
|
|
|
<h1><%= t("scaffold.pagetitle_index", model: Check.model_name.human(count: 2)) %></h1>
|
2024-07-21 00:33:38 +02:00
|
|
|
<%= bootstrap_form_with(url: checks_path(page: params[:page]), method: :get, scope: :filter) do |form| %>
|
|
|
|
|
<%= form.hidden_field :page, value: params[:page] if params[:page] %>
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-md-3">
|
|
|
|
|
<%= form.text_field(:s, placeholder: "suchen...", hide_label: true, value: filter_params[:s]) %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col">
|
|
|
|
|
<%= form.submit name: "", value: "Suchen" %>
|
|
|
|
|
<%= link_to "Filter löschen", checks_path, class: "btn btn-outline-secondary" if filter_params[:s] %>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
2024-07-16 20:22:59 +02:00
|
|
|
|
|
|
|
|
<table class="table table-striped">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
2024-09-05 22:54:38 +02:00
|
|
|
<th><%= Check.human_attribute_name(:number) %></th>
|
2024-07-16 20:22:59 +02:00
|
|
|
<th><%= Check.human_attribute_name(:name) %></th>
|
2024-09-05 22:54:38 +02:00
|
|
|
<th><%= Check.human_attribute_name(:standards) %></th>
|
|
|
|
|
<th><%= t("checks.target_disabilities") %></th>
|
|
|
|
|
<th><%= t("checks.applicability") %></th>
|
|
|
|
|
<th><%= Check.human_attribute_name(:external_number) %></th>
|
|
|
|
|
<th><%= Check.human_attribute_name(:conformity_level) %></th>
|
2024-07-16 20:22:59 +02:00
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
<% @checks.each do |check| %>
|
|
|
|
|
<tr>
|
2024-09-05 22:54:38 +02:00
|
|
|
<td><%= check.number %></td>
|
|
|
|
|
<td><%= check.t_name %></td>
|
|
|
|
|
<td><%= check.standards.map(&:t_name).join(", ") %></td>
|
|
|
|
|
<td><%= check.display_target_disabilities %></td>
|
|
|
|
|
<td><%= check.t_name %></td>
|
|
|
|
|
<td><%= check.t_name %></td>
|
|
|
|
|
<td><%= link_to(check.t_name, url_for(check)) %></td>
|
2024-07-16 20:22:59 +02:00
|
|
|
</tr>
|
|
|
|
|
<% end %>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
2024-07-26 00:59:00 +02:00
|
|
|
<div class="my-3">
|
|
|
|
|
<%== pagy_info(@pagy) %>
|
|
|
|
|
</div>
|
2024-07-16 20:22:59 +02:00
|
|
|
|
2024-07-21 00:33:38 +02:00
|
|
|
<%== pagy_bootstrap_nav(@pagy) %>
|
|
|
|
|
|
2024-07-16 20:22:59 +02:00
|
|
|
<div class="action-row">
|
|
|
|
|
<%= link_to t("scaffold.link_new", model: Check.model_name.human), new_check_path %>
|
2024-07-26 00:59:00 +02:00
|
|
|
</div>
|