used the sort_header_tag again

pull/6827/head
Henriette Dinger 9 years ago
parent 91aa7fad42
commit 1fcfba735c
  1. 20
      app/views/cost_objects/_list.html.erb
  2. 32
      app/views/cost_types/_list.html.erb

@ -33,24 +33,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
</colgroup>
<thead>
<tr>
<th>
<div class="generic-table--sort-header-outer">
<div class="generic-table--sort-header">
<span>
#
</span>
</div>
</div>
</th>
<th>
<div class="generic-table--sort-header-outer">
<div class="generic-table--sort-header">
<span>
<%= CostObject.human_attribute_name(:subject) %>
</span>
</div>
</div>
</th>
<%= sort_header_tag("id", :caption => '#', :default_order => 'desc') %>
<%= sort_header_tag("subject", :caption => CostObject.human_attribute_name(:subject)) %>
<th class="currency">
<div class="generic-table--sort-header-outer">
<div class="generic-table--sort-header">

@ -21,7 +21,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
<% cost_types = @cost_types.reject(&:deleted_at) -%>
<% if cost_types.empty? %>
<div class="generic-table--container" style="height:150px">
<div class="generic-table--container">
<div class="generic-table--no-results-container">
<h2 class="generic-table--no-results-title">
<i class="icon-info"></i>
@ -47,33 +47,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
</colgroup>
<thead>
<tr>
<th>
<div class="generic-table--sort-header-outer">
<div class="generic-table--sort-header">
<span class="sort desc">
<%= CostType.model_name.human %>
</span>
</div>
</div>
</th>
<th>
<div class="generic-table--sort-header-outer">
<div class="generic-table--sort-header">
<span>
<%= CostType.human_attribute_name(:unit) %>
</span>
</div>
</div>
</th>
<th>
<div class="generic-table--sort-header-outer">
<div class="generic-table--sort-header">
<span>
<%= CostType.human_attribute_name(:unit_plural) %>
</span>
</div>
</div>
</th>
<%= sort_header_tag "name", :caption => CostType.model_name.human %>
<%= sort_header_tag "unit", :caption => CostType.human_attribute_name(:unit) %>
<%= sort_header_tag "unit_plural", :caption => CostType.human_attribute_name(:unit_plural) %>
<th>
<div class="generic-table--sort-header-outer">
<div class="generic-table--sort-header">

Loading…
Cancel
Save