styled the tabe Admin/ExportCardConfig

pull/6827/head
Henriette Dinger 9 years ago
parent 52dc67c801
commit 980440eec5
  1. 147
      app/views/export_card_configurations/index.html.erb

@ -32,56 +32,99 @@ See doc/COPYRIGHT.md for more details.
<h2><%=l(:label_export_card_configuration_plural)%></h2> <h2><%=l(:label_export_card_configuration_plural)%></h2>
<table class="list"> <div class="generic-table--container">
<thead> <div class="generic-table--results-container">
<tr> <table interactive-table role="grid" class="generic-table">
<th> <colgroup>
<%= Type.human_attribute_name(:name) %> <col highlight-col>
</th> <col highlight-col>
<th> <col highlight-col>
<%= l(:export_config_page_size) %> <col highlight-col>
</th> <col highlight-col>
<th> <col>
<%= l(:export_config_per_page) %> </colgroup>
</th> <thead>
<th> <tr>
<%= l(:export_config_orientation) %> <th>
</th> <div class="generic-table--sort-header-outer">
<th> <div class="generic-table--sort-header">
<%= Type.human_attribute_name(:active) %> <span>
</th> <%= Type.human_attribute_name(:name) %>
<th></th> </span>
</tr> </div>
</thead> </div>
<tbody> </th>
<% for config in @configs %> <th>
<tr class="<%= cycle("odd", "even") %>"> <div class="generic-table--sort-header-outer">
<td ><%= link_to config.name, edit_pdf_export_export_card_configuration_path(config) %></td> <div class="generic-table--sort-header">
<td><%= config.page_size %></td> <span>
<td><%= config.per_page %></td> <%= l(:export_config_page_size) %>
<td><%= config.orientation %></td> </span>
<td><%= config.active %></td> </div>
<td class="buttons"> </div>
<% if config.can_delete? %> </th>
<%= link_to pdf_export_export_card_configuration_path(config), :method => :delete, :confirm => t(:text_are_you_sure), :class => 'icon-context icon-delete' do %> <th>
<%= t(:button_delete) %> <div class="generic-table--sort-header-outer">
<span class="hidden-for-sighted"><%=h config.name %></span> <div class="generic-table--sort-header">
<span>
<%= l(:export_config_per_page) %>
</span>
</div>
</div>
</th>
<th>
<div class="generic-table--sort-header-outer">
<div class="generic-table--sort-header">
<span>
<%= l(:export_config_orientation) %>
</span>
</div>
</div>
</th>
<th>
<div class="generic-table--sort-header-outer">
<div class="generic-table--sort-header">
<span>
<%= Type.human_attribute_name(:active) %>
</span>
</div>
</div>
</th>
<th></th>
</tr>
</thead>
<tbody>
<% for config in @configs %>
<tr>
<td ><%= link_to config.name, edit_pdf_export_export_card_configuration_path(config) %></td>
<td><%= config.page_size %></td>
<td><%= config.per_page %></td>
<td><%= config.orientation %></td>
<td><%= config.active %></td>
<td class="buttons">
<% if config.can_delete? %>
<%= link_to pdf_export_export_card_configuration_path(config), :method => :delete, :confirm => t(:text_are_you_sure), :class => 'icon-context icon-delete' do %>
<%= t(:button_delete) %>
<span class="hidden-for-sighted"><%=h config.name %></span>
<% end %>
<% end %>
<% if config.can_activate? %>
<%= link_to activate_pdf_export_export_card_configuration_path(config), :method => :post, :class => 'icon-context icon-delete' do %>
<%= t(:label_export_card_activate) %>
<span class="hidden-for-sighted"><%=h config.name %></span>
<% end %>
<% end %>
<% if config.can_deactivate? %>
<%= link_to deactivate_pdf_export_export_card_configuration_path(config), :method => :post, :class => 'icon-context icon-delete' do %>
<%= t(:label_export_card_deactivate) %>
<span class="hidden-for-sighted"><%=h config.name %></span>
<% end %>
<% end %>
</td>
</tr>
<% end %> <% end %>
<% end %> </tbody>
<% if config.can_activate? %> </table>
<%= link_to activate_pdf_export_export_card_configuration_path(config), :method => :post, :class => 'icon-context icon-delete' do %> <div class="generic-table--header-background"></div>
<%= t(:label_export_card_activate) %> </div>
<span class="hidden-for-sighted"><%=h config.name %></span> </div>
<% end %>
<% end %>
<% if config.can_deactivate? %>
<%= link_to deactivate_pdf_export_export_card_configuration_path(config), :method => :post, :class => 'icon-context icon-delete' do %>
<%= t(:label_export_card_deactivate) %>
<span class="hidden-for-sighted"><%=h config.name %></span>
<% end %>
<% end %>
</td>
</tr>
<% end %>
</tbody>
</table>

Loading…
Cancel
Save