|
|
@ -24,12 +24,12 @@ |
|
|
|
<% @query.each_direct_result do |result| %> |
|
|
|
<% @query.each_direct_result do |result| %> |
|
|
|
<tr class='<%= cycle("odd", "even") %>'> |
|
|
|
<tr class='<%= cycle("odd", "even") %>'> |
|
|
|
<% list.each do |field| %> |
|
|
|
<% list.each do |field| %> |
|
|
|
<td raw-data=<%= raw_field field, result.fields[field.to_s] %>> |
|
|
|
<td raw-data="<%= raw_field(field, result.fields[field.to_s]) -%>"> |
|
|
|
<%= show_field field, result.fields[field.to_s] %> |
|
|
|
<%= show_field field, result.fields[field.to_s] %> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
<% end %> |
|
|
|
<% end %> |
|
|
|
<td class="units" raw-data=<%= result.units %>><%= show_result(result, result.fields['cost_type_id'].to_i) %></td> |
|
|
|
<td class="units" raw-data="<%= result.units -%>"><%= show_result(result, result.fields['cost_type_id'].to_i) %></td> |
|
|
|
<td class="currency" raw-data=<%= result.real_costs %>><%= show_result(result, 0) %></td> |
|
|
|
<td class="currency" raw-data="<%= result.real_costs -%>"><%= show_result(result, 0) %></td> |
|
|
|
<td style="width: 40px"> |
|
|
|
<td style="width: 40px"> |
|
|
|
<%= link_to_if_authorized image_tag('edit.png'), |
|
|
|
<%= link_to_if_authorized image_tag('edit.png'), |
|
|
|
action_for(result, :action => 'edit'), :title => l(:button_edit) %> |
|
|
|
action_for(result, :action => 'edit'), :title => l(:button_edit) %> |
|
|
|