Sha256: d1d8bd7f85e3b6c59b303623ebbc0159e81b41fc388a54ce1f3065972f83af96

Contents?: true

Size: 651 Bytes

Versions: 17

Compression:

Stored size: 651 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 @field.help %>
      <div class="text-gray-600 mt-2 text-sm"><%== @field.help %></div>
    <% end %>
  </div>
<% end %>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
avo-2.4.1 app/components/avo/edit/field_wrapper_component.html.erb
avo-2.4.0 app/components/avo/edit/field_wrapper_component.html.erb
avo-2.3.1.pre.6 app/components/avo/edit/field_wrapper_component.html.erb
avo-2.3.1.pre.5 app/components/avo/edit/field_wrapper_component.html.erb
avo-2.3.1.pre.4 app/components/avo/edit/field_wrapper_component.html.erb
avo-2.3.1.pre.3 app/components/avo/edit/field_wrapper_component.html.erb
avo-2.3.1.pre.2 app/components/avo/edit/field_wrapper_component.html.erb
avo-2.3.1.pre.1 app/components/avo/edit/field_wrapper_component.html.erb
avo-2.3.0 app/components/avo/edit/field_wrapper_component.html.erb
avo-2.2.2 app/components/avo/edit/field_wrapper_component.html.erb
avo-2.2.1 app/components/avo/edit/field_wrapper_component.html.erb
avo-2.2.0 app/components/avo/edit/field_wrapper_component.html.erb
avo-2.1.2.pre2 app/components/avo/edit/field_wrapper_component.html.erb
avo-2.1.2.pre1 app/components/avo/edit/field_wrapper_component.html.erb
avo-2.1.1 app/components/avo/edit/field_wrapper_component.html.erb
avo-2.1.0 app/components/avo/edit/field_wrapper_component.html.erb
avo-2.0.0 app/components/avo/edit/field_wrapper_component.html.erb