|
<% title "Partition tables" %>
|
|
<% title_actions display_link_if_authorized("New Partition table layout", hash_for_new_ptable_path), help_path %>
|
|
|
|
<table class="table table-bordered table-striped">
|
|
<tr>
|
|
<th><%= sort :name %></th>
|
|
<th>Operating systems</th>
|
|
<th></th>
|
|
</tr>
|
|
<% for ptable in @ptables %>
|
|
<tr class="<%= cycle("even", "odd") -%>">
|
|
<td><%=link_to_if_authorized h(ptable.name), hash_for_edit_ptable_path(:id => ptable.id) %></td>
|
|
<td><%=h ptable.operatingsystems.to_sentence %></td>
|
|
<td>
|
|
<%= display_delete_if_authorized hash_for_ptable_path(:id => ptable), :confirm => "Delete #{ptable.name}?"%>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</table>
|
|
<%= page_entries_info @ptables %>
|
|
<%= will_paginate @ptables %>
|