Sha256: abb72438b63a68b601b4620d34ad6b8239e584f03f39ebb912e47e0f3093a878

Contents?: true

Size: 1015 Bytes

Versions: 28

Compression:

Stored size: 1015 Bytes

Contents

<div class="flex items-center py-0 leading-tight <%= @classes %> min-h-16" data-field-id="<%= @field.id %>" data-field-type="<%= @field.type %>">
  <div class="h-16 flex self-start items-center text-slate-800">
    <div class="<% if @displayed_in_modal %> md:w-48 <% else %> md:w-64 <% end %> w-48 px-8 flex" data-slot="label">
      <%= @form.label @field.id, label %> <% if @field.required %> <span class="text-red-600">*</span> <% end %>
    </div>
  </div>
  <div class="flex-1 flex flex-row min-h-inherit">
    <div class="px-6 py-3 self-center <% if @displayed_in_modal or @full_width %> w-full <% else %> w-8/12 <% end %>" data-slot="value">
      <%= content %>

      <% if @model.present? and @model.errors.include? @field.id %>
        <div class="text-red-600 mt-2 text-sm"><%= @model.errors.full_messages_for(@field.id).to_sentence %></div>
      <% end %>

      <% if @field.help %>
        <div class="text-gray-600 mt-2 text-sm"><%== @field.help %></div>
      <% end %>
    </div>
  </div>
</div>

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
avo-1.25.2 app/components/avo/edit/field_wrapper_component.html.erb
avo-1.25.1 app/components/avo/edit/field_wrapper_component.html.erb
avo-1.25.0 app/components/avo/edit/field_wrapper_component.html.erb
avo-1.24.2 app/components/avo/edit/field_wrapper_component.html.erb
avo-1.24.1 app/components/avo/edit/field_wrapper_component.html.erb
avo-1.24.0 app/components/avo/edit/field_wrapper_component.html.erb
avo-1.23.0 app/components/avo/edit/field_wrapper_component.html.erb
avo-1.22.4 app/components/avo/edit/field_wrapper_component.html.erb
avo-1.22.3 app/components/avo/edit/field_wrapper_component.html.erb
avo-1.22.2 app/components/avo/edit/field_wrapper_component.html.erb
avo-1.22.1 app/components/avo/edit/field_wrapper_component.html.erb
avo-1.22.1.pre.2 app/components/avo/edit/field_wrapper_component.html.erb
avo-1.22.1.pre.1 app/components/avo/edit/field_wrapper_component.html.erb
avo-1.22.0 app/components/avo/edit/field_wrapper_component.html.erb
avo-1.22.0.pre.1 app/components/avo/edit/field_wrapper_component.html.erb
avo-1.21.1.pre.1 app/components/avo/edit/field_wrapper_component.html.erb
avo-1.21.0 app/components/avo/edit/field_wrapper_component.html.erb
avo-1.20.2.pre.2 app/components/avo/edit/field_wrapper_component.html.erb
avo-1.20.2.pre.1 app/components/avo/edit/field_wrapper_component.html.erb
avo-1.21.0.pre.1 app/components/avo/edit/field_wrapper_component.html.erb