Sha256: df73f45e18a6df0101fa0f206c04754045086581e678cc03fbebba6be7c4bd1c
Contents?: true
Size: 1.12 KB
Versions: 5
Compression:
Stored size: 1.12 KB
Contents
<%= render component('ui/forms/search/result').new do %> <%= form_for(@order.line_items.build(variant: @variant), url: solidus_admin.order_line_items_path(@order), method: :post, html: { "data-controller": "readonly-when-submitting", class: "flex items-center", }) do |f| %> <%= hidden_field_tag("#{f.object_name}[variant_id]", @variant.id) %> <div class="flex gap-2 grow"> <%= render component("ui/thumbnail").new( src: @image&.url(:small), alt: @variant.name ) %> <div class="flex-col"> <div class="leading-5 text-black font-semibold text-sm"><%= @variant.name %></div> <div class="leading-5 text-gray-500 font-normal text-sm"> SKU: <%= @variant.sku %> <%= @variant.options_text.presence&.prepend("- ") %> </div> </div> </div> <div class="flex gap-2 items-center"> <span class="text-gray-500 font-normal text-sm"><%= render component("products/stock").from_variant(@variant) %></span> <span class="text-black font-normal text-sm"><%= @variant.display_price.to_html %></span> </div> <% end %> <% end %>
Version data entries
5 entries across 5 versions & 1 rubygems