Sha256: c93811bd4b75068af0e2b3427f4d5385eb6a00c6fee7675f9bc9161ef7b2bfbd

Contents?: true

Size: 636 Bytes

Versions: 40

Compression:

Stored size: 636 Bytes

Contents

<%= field_wrapper **field_wrapper_args do %>
  <% if @field.value.present? %>
    <div class="mb-2">
      <%= render Avo::Fields::Common::Files::ViewType::GridItemComponent.new resource: @resource, field: @field %>
    </div>
  <% end %>

  <% if can_upload_file? %>
    <%= @form.file_field @field.id,
      accept: @field.accept,
      data: @field.get_html(:data, view: view, element: :input),
      direct_upload: @field.direct_upload,
      disabled: disabled?,
      style: @field.get_html(:style, view: view, element: :input),
      autofocus: @autofocus,
      class: "w-full"
    %>
  <% else %>
    —
  <% end %>
<% end %>

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
avo-3.13.7 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.13.6 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.13.5 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.13.4 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.13.3 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.13.2 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.13.1 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.13.0 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.12.0 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.11.10 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.11.9 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.11.8 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.11.7 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.11.6 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.11.5 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.11.4 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.11.3 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.11.2 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.11.1 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.11.0 app/components/avo/fields/file_field/edit_component.html.erb