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 committed by jwollert
parent cc9f7febd7
commit bc73b94a07
  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| %> <% @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) %>

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

Loading…
Cancel
Save