Some UX improvements
This commit is contained in:
parent
48c0067076
commit
8c81237501
81 changed files with 791 additions and 151 deletions
33
app/views/checklist_entries/index.html.erb
Normal file
33
app/views/checklist_entries/index.html.erb
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
<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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue