Sha256: 7dbd120ec1e759cc2305a812faf19f47ff94854d387b8c3fc412600a6e04e9db

Contents?: true

Size: 1 KB

Versions: 64

Compression:

Stored size: 1 KB

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-blue-gray-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, @field.name %> <% 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

64 entries across 64 versions & 1 rubygems

Version Path
avo-1.6.4.pre.1 app/components/avo/edit/field_wrapper_component.html.erb
avo-1.6.3.pre.2 app/components/avo/edit/field_wrapper_component.html.erb
avo-1.6.3.pre.1 app/components/avo/edit/field_wrapper_component.html.erb
avo-1.6.2.pre.1 app/components/avo/edit/field_wrapper_component.html.erb
avo-1.6.1 app/components/avo/edit/field_wrapper_component.html.erb
avo-1.6.0 app/components/avo/edit/field_wrapper_component.html.erb
avo-1.5.5 app/components/avo/edit/field_wrapper_component.html.erb
avo-1.5.4 app/components/avo/edit/field_wrapper_component.html.erb
avo-1.5.3 app/components/avo/edit/field_wrapper_component.html.erb
avo-1.5.2 app/components/avo/edit/field_wrapper_component.html.erb
avo-1.5.1 app/components/avo/edit/field_wrapper_component.html.erb
avo-1.5.0 app/components/avo/edit/field_wrapper_component.html.erb
avo-1.4.5.pre.1 app/components/avo/edit/field_wrapper_component.html.erb
avo-1.4.4.pre.1 app/components/avo/edit/field_wrapper_component.html.erb
avo-1.4.4 app/components/avo/edit/field_wrapper_component.html.erb
avo-1.4.3 app/components/avo/edit/field_wrapper_component.html.erb
avo-1.4.2 app/components/avo/edit/field_wrapper_component.html.erb
avo-1.4.1 app/components/avo/edit/field_wrapper_component.html.erb
avo-1.4.0 app/components/avo/edit/field_wrapper_component.html.erb
avo-1.4.0.pre.1 app/components/avo/edit/field_wrapper_component.html.erb