-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html.erb
26 lines (25 loc) · 982 Bytes
/
index.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<h2 alt="index" class="hide">Checklists</h2>
<div id="checklists">
<table class="itu">
<thead>
<tr><th>Name</th><th>Created On</th><th>Updated On</th></tr>
</thead>
<tbody>
<% @checklists.each do |checklist| %>
<tr>
<td><a href="/checklist_templates/<%= checklist.id %>"><%= checklist.name %></a></td>
<td><a href="/checklist_templates/<%= checklist.id %>"><%= checklist.created_at.strftime("%m/%d/%Y") %></a></td>
<td><a href="/checklist_templates/<%= checklist.id %>"><%= checklist.updated_at.strftime("%m/%d/%Y") %></a></td>
</tr>
<% end %>
</tbody>
</table>
</div>
<script>
$(document).ready(function() {
// make sidebar item appear selected
$("#sidebar li a.checklist_template_configuration").parent().addClass("selected");
// add new device type button to footer
$("#footer div.col2").append("<a href='/checklist_templates/new'>New Checklist Template</a>");
});
</script>