Sha256: 3ca7ed4baa407c504c1574642151810373923e29bb341c319216501c975d9f75

Contents?: true

Size: 1 KB

Versions: 28

Compression:

Stored size: 1 KB

Contents

<%= content_tag :div,
  class: classes("relative flex flex-col md:flex-row md:items-center pb-2 md:pb-0 leading-tight min-h-14"),
  style: style,
  data: {
    field_id: @field.id,
    field_type: @field.type,
    **stimulus_attributes,
  } do %>
  <div class="h-full pt-4 md:pt-0 md:h-14 flex self-start items-center text-slate-800">
    <div class="<% if @displayed_in_modal %> md:w-48 <% else %> md:w-64 px-6 md:px-6 <% end %> w-48 flex uppercase font-semibold text-gray-500 text-sm" data-slot="label">
      <% if @form.present? %>
        <%= @form.label @field.id, label %>
      <% else %>
        <%= @field.name %>
      <% end %>
      <% if @view != :show && @field.is_required? %> <span class="text-red-600 ml-1">*</span> <% end %>
    </div>
  </div>
  <div class="flex-1 flex flex-row md:min-h-inherit py-2 <% unless @displayed_in_modal %> px-6 <% end %>">
    <%= content %>
  </div>
  <% if params[:avo_debug].present? %>
    <!-- Raw value: -->
    <!-- <%== @field.value.inspect %> -->
  <% end %>
<% end %>

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
avo-2.16.0 app/components/avo/common_field_wrapper_component.html.erb
avo-2.15.3 app/components/avo/common_field_wrapper_component.html.erb
avo-2.15.3.pre.1.data.attrs.to.sidebar.items app/components/avo/common_field_wrapper_component.html.erb
avo-2.15.2 app/components/avo/common_field_wrapper_component.html.erb
avo-2.15.2.pre.1 app/components/avo/common_field_wrapper_component.html.erb
avo-2.15.1 app/components/avo/common_field_wrapper_component.html.erb
avo-2.15.0 app/components/avo/common_field_wrapper_component.html.erb
avo-2.14.3.pre.7.polytranslations1 app/components/avo/common_field_wrapper_component.html.erb
avo-2.14.3.pre.6.nosprockets app/components/avo/common_field_wrapper_component.html.erb
avo-2.14.3.pre.5.nosprockets app/components/avo/common_field_wrapper_component.html.erb
avo-2.14.3.pre.4.tosqlfix app/components/avo/common_field_wrapper_component.html.erb
avo-2.14.3.pre.3.jsbundling app/components/avo/common_field_wrapper_component.html.erb
avo-2.14.3.pre.2.tailwindcss app/components/avo/common_field_wrapper_component.html.erb
avo-2.14.3.pre.1.branding app/components/avo/common_field_wrapper_component.html.erb
avo-2.14.2 app/components/avo/common_field_wrapper_component.html.erb
avo-2.14.2.pre.1 app/components/avo/common_field_wrapper_component.html.erb
avo-2.14.1 app/components/avo/common_field_wrapper_component.html.erb
avo-2.14.1.pre.1 app/components/avo/common_field_wrapper_component.html.erb
avo-2.14.0 app/components/avo/common_field_wrapper_component.html.erb
avo-2.13.6.pre.2 app/components/avo/common_field_wrapper_component.html.erb