Sha256: e01dc9b55904f3b6c68125f1f4c575e72c909e6af122cb85ea00a1c1a9944a62

Contents?: true

Size: 607 Bytes

Versions: 60

Compression:

Stored size: 607 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),
      class: "w-full"
    %>
  <% else %>
    —
  <% end %>
<% end %>

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
avo-3.4.0 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.3.6 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.3.5 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.3.4 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.3.3 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.3.2 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.3.1 app/components/avo/fields/file_field/edit_component.html.erb
avo-2.47.0 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.3.0 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.2.3 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.0.1.beta23 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.0.1.beta20 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.0.1.beta21 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.0.1.beta22 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.0.1.beta24 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.2.2 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.2.1 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.2.0 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.1.7 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.1.6 app/components/avo/fields/file_field/edit_component.html.erb