Sha256: 18319473fec25747640f988a709f65a878c352a2511a1816b778851d19efbdb3

Contents?: true

Size: 646 Bytes

Versions: 14

Compression:

Stored size: 646 Bytes

Contents

<%= render Avo::CommonFieldWrapperComponent.new(field: @field, resource: @resource, index: @index, form: @form, displayed_in_modal: @displayed_in_modal, label: @label) 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

14 entries across 14 versions & 1 rubygems

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