Sha256: e26d60f168fbe4a9a52342e62c5a71f17909e5f200614d95503e6e016913e137

Contents?: true

Size: 771 Bytes

Versions: 5

Compression:

Stored size: 771 Bytes

Contents

<%= render component('ui/forms/search/result').new do %>
  <% if @customer %>
    <%= form_for(@order, url: solidus_admin.order_path(@order), html: {
      "data-controller": "readonly-when-submitting",
      class: "flex items-center",
    }) do |f| %>
      <%= hidden_field_tag("#{f.object_name}[user_id]", @customer.id) %>
      <button type="submit" class="flex gap-2 grow items-center">
        <%= render component("ui/icon").new(name: "user-line", class: 'w-5 h-5 m-2') %>
        <div  class="flex-col text-left">
          <div class="leading-5 text-black font-semibold text-sm"><%= @name %></div>
          <div class="leading-5 text-gray-500 font-normal text-sm"><%= @customer.email %></div>
        </div>
      </button>
    <% end %>
  <% end %>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
solidus_admin-0.3.2 app/components/solidus_admin/orders/show/customer_search/result/component.html.erb
solidus_admin-0.3.1 app/components/solidus_admin/orders/show/customer_search/result/component.html.erb
solidus_admin-0.3.0 app/components/solidus_admin/orders/show/customer_search/result/component.html.erb
solidus_admin-0.2.0 app/components/solidus_admin/orders/show/customer_search/result/component.html.erb
solidus_admin-0.1.0 app/components/solidus_admin/orders/show/customer_search/result/component.html.erb