Sha256: 63f076234ff4ddad163181f9ecde96d0af0b78c855faff8abab1064afa399b6b

Contents?: true

Size: 598 Bytes

Versions: 14

Compression:

Stored size: 598 Bytes

Contents

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

14 entries across 14 versions & 1 rubygems

Version Path
avo-3.0.0.pre8 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.0.0.pre7 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.0.0.pre5 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.0.0.pre6 app/components/avo/fields/file_field/edit_component.html.erb
avo-3.0.0.pre4 app/components/avo/fields/file_field/edit_component.html.erb
avo-2.30.1 app/components/avo/fields/file_field/edit_component.html.erb
avo-2.30.0 app/components/avo/fields/file_field/edit_component.html.erb
avo-2.29.1 app/components/avo/fields/file_field/edit_component.html.erb
avo-2.29.1.pre.pr1652 app/components/avo/fields/file_field/edit_component.html.erb
avo-2.29.0 app/components/avo/fields/file_field/edit_component.html.erb
avo-2.28.3.pre.pr1646 app/components/avo/fields/file_field/edit_component.html.erb
avo-2.28.2.pre.pr1642 app/components/avo/fields/file_field/edit_component.html.erb
avo-2.28.1.pre.pr1642 app/components/avo/fields/file_field/edit_component.html.erb
avo-2.28.0 app/components/avo/fields/file_field/edit_component.html.erb