Sha256: abd4c2e6095eebbad142eb37101d4642d239e1bb715769f35533b8c3645ab6f1

Contents?: true

Size: 603 Bytes

Versions: 71

Compression:

Stored size: 603 Bytes

Contents

<%= field_wrapper **field_wrapper_args do %>
  <% if @field.value.present? %>
    <div class="mb-2">
      <%= render Avo::Fields::Common::Files::ViewType::GridComponent.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

71 entries across 71 versions & 1 rubygems

Version Path
avo-3.0.1.beta17 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.0.1.beta18 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.0.1.beta19 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.0.1.beta15 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.0.1.beta16 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.0.1.beta14 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.0.1.beta12 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.0.1.beta13 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.0.1.beta10 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.0.1.beta11 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.0.0.pre19 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.0.1.beta8 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.0.1.beta9 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.0.1.beta6 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.0.1.beta7 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.0.1.beta5 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.0.1.beta2 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.0.1.beta4 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.0.1.beta3 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.0.0.beta1 app/components/avo/fields/file_field/edit_component.html.erb