Sha256: 8cab3168a75889e446c0a4337ec18ac16f46cc5b70ba172162ebbcdf18f48f3b

Contents?: true

Size: 685 Bytes

Versions: 58

Compression:

Stored size: 685 Bytes

Contents

<%= render Avo::CommonFieldWrapperComponent.new(field: @field, resource: @resource, index: @index, form: @form, displayed_in_modal: @displayed_in_modal, label: @label, view: @resource.view, class: @classes) do %>
  <div class="self-center <% if @displayed_in_modal or @full_width %> w-full <% else %> w-full md: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 help.present? %>
      <div class="text-gray-600 mt-2 text-sm"><%== help %></div>
    <% end %>
  </div>
<% end %>

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
avo-2.13.6.pre.1 app/components/avo/edit/field_wrapper_component.html.erb
avo-2.13.5.pre.2 app/components/avo/edit/field_wrapper_component.html.erb
avo-2.13.5.pre.1 app/components/avo/edit/field_wrapper_component.html.erb
avo-2.13.4.pre.1 app/components/avo/edit/field_wrapper_component.html.erb
avo-2.13.3.pre.4 app/components/avo/edit/field_wrapper_component.html.erb
avo-2.13.3.pre.3 app/components/avo/edit/field_wrapper_component.html.erb
avo-2.13.3.pre.2 app/components/avo/edit/field_wrapper_component.html.erb
avo-2.13.3.pre.1 app/components/avo/edit/field_wrapper_component.html.erb
avo-2.13.2.pre.2 app/components/avo/edit/field_wrapper_component.html.erb
avo-2.13.2.pre.1 app/components/avo/edit/field_wrapper_component.html.erb
avo-2.13.1 app/components/avo/edit/field_wrapper_component.html.erb
avo-2.13.0 app/components/avo/edit/field_wrapper_component.html.erb
avo-2.12.1.pre.1 app/components/avo/edit/field_wrapper_component.html.erb
avo-2.12.0 app/components/avo/edit/field_wrapper_component.html.erb
avo-2.11.3.pre.3 app/components/avo/edit/field_wrapper_component.html.erb
avo-2.11.3.pre.2 app/components/avo/edit/field_wrapper_component.html.erb
avo-2.11.3.pre.1 app/components/avo/edit/field_wrapper_component.html.erb
avo-2.11.2.pre.3 app/components/avo/edit/field_wrapper_component.html.erb
avo-2.11.2.pre.2 app/components/avo/edit/field_wrapper_component.html.erb
avo-2.11.2.pre.1 app/components/avo/edit/field_wrapper_component.html.erb