Skip to content

Commit

Permalink
buy
Browse files Browse the repository at this point in the history
  • Loading branch information
qinmingyuan committed Jan 5, 2025
1 parent 7393ac0 commit db79011
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/views/application/_purchase_cart.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<%= f.hidden_field :current_cart_id, value: cart.id %>
<%= f.hidden_field :good_type, value: model.base_class_name %>
<%= f.hidden_field :purchase_id, value: model.id %>
<%= f.hidden_field :good_id, value: good_id %>
<%# f.hidden_field :good_id, value: good_id %>
<button type="submit">
<i class="fa-solid fa-circle-plus fa-xl text-dark-grey"></i>
</button>
Expand Down
1 change: 1 addition & 0 deletions app/views/trade/in/orders/_cart/_breadcrumb.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<li><%= link_to t('factory.admin.products.buy.title'), { controller: 'factory/admin/products', action: 'buy' } %></li>
2 changes: 1 addition & 1 deletion app/views/trade/in/orders/_cart/_item_tbody.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<td>
<%= form_with theme: 'inline', model: model, url: { controller: 'items', action: 'update', id: model.id }, method: :patch do |f| %>
<%= f.hidden_field :current_cart_id, value: params[:current_cart_id] %>
<%= f.text_field :note, placeholder: true, class: 'input text-centered' %>
<%= f.text_field :note, placeholder: true, class: 'input' %>
<%= f.submit %>
<% end %>
</td>
Expand Down
4 changes: 0 additions & 4 deletions app/views/trade/in/orders/_cart/_item_tr.html.erb
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
<tr id="tr_<%= model.id %>" data-controller="show" data-action="mouseenter->show#show mouseleave->show#hide">
<%= yield %>
<td>
<div data-show-target="item" class="visibility-hidden">
</div>
</td>
</tr>
<%= render partial: 'item_promote_tbody', layout: 'item_promote_tr', collection: model.item_promotes, as: :model %>

0 comments on commit db79011

Please sign in to comment.