Replaced Quantity 'primary' attr with ColumnView model
This commit is contained in:
@@ -13,5 +13,4 @@
|
||||
<p><%= f.text_field :description, style: "width: 100%;" %></p>
|
||||
<p><%= f.text_field :formula, placeholder: t('.formula_placeholder'),
|
||||
style: "width: 100%;" %></p>
|
||||
<p><%= f.check_box :primary %></p>
|
||||
</div>
|
||||
|
||||
@@ -19,18 +19,9 @@
|
||||
next if q.new_record?
|
||||
quantity_class = "quantity"
|
||||
quantity_class += " project idnt idnt-#{level+1}"
|
||||
quantity_class += " primary" if q.primary
|
||||
%>
|
||||
<tr id="quantity-<%= q.id %>" class="<%= quantity_class %>">
|
||||
<td class="name">
|
||||
<%= link_to '', toggle_quantity_path(q), {
|
||||
remote: true,
|
||||
method: :post,
|
||||
class: "icon #{q.primary ? "icon-fav" : "icon-fav-off"}"
|
||||
}
|
||||
%>
|
||||
<%= q.name %>
|
||||
</td>
|
||||
<td class="name"><%= q.name %></td>
|
||||
<td class="order">
|
||||
<% [:up, :down, :left, :right].each do |direction| %>
|
||||
<%=
|
||||
|
||||
Reference in New Issue
Block a user