wrap raw-data in quotes

git-svn-id: https://dev.finn.de/svn/cockpit/branches/reporting_merge@1920 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
t.felgentreff 14 years ago
parent a396d657bc
commit 13df369e86
  1. 6
      app/views/cost_reports/_cost_entry_table.rhtml
  2. 6
      app/views/cost_reports/_simple_cost_report_table.rhtml

@ -24,12 +24,12 @@
<% @query.each_direct_result do |result| %>
<tr class='<%= cycle("odd", "even") %>'>
<% 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] %>
</td>
<% end %>
<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="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 style="width: 40px">
<%= link_to_if_authorized image_tag('edit.png'),
action_for(result, :action => 'edit'), :title => l(:button_edit) %>

@ -28,14 +28,14 @@ show_units = list.include? "cost_type_id"
<tbody>
<% @query.each do |result| %>
<tr class='<%= cycle("odd", "even") %>'>
<td raw-data=<%= raw_field result.fields.first, result.fields.first.last %>>
<td raw-data="<%= raw_field(result.fields.first, result.fields.first.last) -%>">
<%= show_row result %>
</td>
<td><%= result.count %></td>
<% if show_units %>
<td raw-data=<%= result.units %>><%= show_result result, result.fields[:cost_type_id].to_i %></td>
<td raw-data="<%= result.units -%>"><%= show_result result, result.fields[:cost_type_id].to_i %></td>
<% end %>
<td raw-data=<%= result.real_costs %>><%= show_result result %></td>
<td raw-data="<%= result.real_costs -%>"><%= show_result result %></td>
</tr>
<% if params[:debug] %>
<tr>

Loading…
Cancel
Save