Replaced Quantity 'primary' attr with ColumnView model
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
<fieldset id="options" class="collapsible">
|
||||
<legend onclick="toggleFieldset(this);"><%= l(:label_options) %></legend>
|
||||
<div>
|
||||
<%= form_tag toggle_quantity_project_measurements_path(@project),
|
||||
id: 'quantity-toggle-form', name: 'quantity-toggle-form',
|
||||
<%= form_tag toggle_column_measurement_path(@measurement),
|
||||
id: 'toggle-column-form', name: 'toggle-column-form',
|
||||
method: :post, remote: true do %>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width:100%"></td>
|
||||
<td>
|
||||
<%= select_tag 'id', quantity_toggle_options %>
|
||||
<%= select_tag 'id', toggle_column_options %>
|
||||
</td>
|
||||
<td>
|
||||
<%= submit_tag l(:button_add) %>
|
||||
@@ -27,7 +27,7 @@
|
||||
<% @quantities.each do |q| %>
|
||||
<td class="action" style="width:<%= 100/total_width %>%">
|
||||
<%= link_to l(:button_hide),
|
||||
toggle_quantity_project_measurements_path(@project, id: q.id),
|
||||
toggle_column_measurement_path(@measurement, quantity_id: q.id),
|
||||
{class: "icon icon-close", method: :post, remote: true} %>
|
||||
</td>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user