Sha256: 5ee8fbe9cbfb217df6d9ee008056298e59b134f5d5638f3c742a23c627ea9b7a

Contents?: true

Size: 808 Bytes

Versions: 31

Compression:

Stored size: 808 Bytes

Contents

<div class="flex flex-col md:flex-row md:items-center pb-2 md:pb-0 leading-tight <%= @classes %> min-h-14" data-field-id="<%= @field.id %>" data-field-type="<%= @field.type %>">
  <div class="pt-4 md:pt-0 md:h-14 flex self-start items-center text-slate-800">
    <div class="<% if @displayed_in_modal %> md:w-48 <% else %> md:w-64 px-6 md:px-6 <% end %> w-48 flex uppercase font-semibold text-gray-500 text-sm" data-slot="label">
      <% if @form.present? %>
        <%= @form.label @field.id, label %>
      <% else %>
        <%= @field.name %>
      <% end %>
      <% if @field.required %> <span class="text-red-600 ml-1">*</span> <% end %>
    </div>
  </div>
  <div class="flex-1 flex flex-row md:min-h-inherit py-2 <% unless @displayed_in_modal %> px-6 <% end %>">
    <%= content %>
  </div>
</div>

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
avo-2.7.1.pre.1 app/components/avo/common_field_wrapper_component.html.erb
avo-2.7.0 app/components/avo/common_field_wrapper_component.html.erb
avo-2.6.1.pre.2 app/components/avo/common_field_wrapper_component.html.erb
avo-2.6.1.pre.1 app/components/avo/common_field_wrapper_component.html.erb
avo-2.6.0 app/components/avo/common_field_wrapper_component.html.erb
avo-2.5.2.pre.7 app/components/avo/common_field_wrapper_component.html.erb
avo-2.5.2.pre.6 app/components/avo/common_field_wrapper_component.html.erb
avo-2.5.2.pre.5 app/components/avo/common_field_wrapper_component.html.erb
avo-2.5.2.pre.4 app/components/avo/common_field_wrapper_component.html.erb
avo-2.5.2.pre.3 app/components/avo/common_field_wrapper_component.html.erb
avo-2.5.2.pre.2 app/components/avo/common_field_wrapper_component.html.erb
avo-2.5.2.pre.1 app/components/avo/common_field_wrapper_component.html.erb
avo-2.5.1 app/components/avo/common_field_wrapper_component.html.erb
avo-2.5.0 app/components/avo/common_field_wrapper_component.html.erb
avo-2.4.1 app/components/avo/common_field_wrapper_component.html.erb
avo-2.4.0 app/components/avo/common_field_wrapper_component.html.erb
avo-2.3.1.pre.6 app/components/avo/common_field_wrapper_component.html.erb
avo-2.3.1.pre.5 app/components/avo/common_field_wrapper_component.html.erb
avo-2.3.1.pre.4 app/components/avo/common_field_wrapper_component.html.erb
avo-2.3.1.pre.3 app/components/avo/common_field_wrapper_component.html.erb