Project

General

Profile

« Previous | Next » 

Revision 82e47ae0

Added by Amos Benari about 12 years ago

  • ID 82e47ae0f86994702c3a084cc6150250a81034ee

updates UI to bootstrap v2

View differences:

app/views/config_templates/index.html.erb
<% title_actions display_link_if_authorized("New Template", hash_for_new_config_template_path),
display_link_if_authorized("Build PXE Default", {:action => :build_pxe_default},{
:confirm => "You Are about to change the default PXE menu on all configured TFTP servers - continue ?",
:class => "btn info"})
:class => "btn btn-info"})
%>
<table class="list">
<table class="table table-bordered table-striped">
<tr>
<tr class="<%= cycle("even", "odd") -%>">
<th><%= sort :name %></th>
......
<td><%= combination config_template %></td>
<td><%= config_template.try(:template_kind) %></td>
<td><%= checked_icon config_template.snippet %></td>
<td><%= display_link_if_authorized "Delete", hash_for_config_template_path(:id => config_template.to_param, :auth_action => :destroy),
:confirm => "Delete #{config_template}?", :method => :delete -%> </td>
<td><%= display_delete_if_authorized hash_for_config_template_path(:id => config_template.to_param),
:confirm => "Delete #{config_template}?" -%> </td>
</tr>
<% end %>
</table>

Also available in: Unified diff