Sha256: 638d1814565a6f177c1f6a9d7d4ae490346894401d578e78bcf12d69df1535e5

Contents?: true

Size: 750 Bytes

Versions: 18

Compression:

Stored size: 750 Bytes

Contents

<%= edit_field_wrapper field: @field, index: @index, form: @form, resource: @resource, displayed_in_modal: @displayed_in_modal, full_width: true do %>
  <%= render Avo::Fields::Common::FilesListViewerComponent.new(field: @field, resource: @resource) if @field.value.present? %>

  <% if @resource.authorization.authorize_action(:upload_attachments?, raise_exception: false) %>
    <div class="mt-2">
      <%= @form.file_field @field.id,
        accept: @field.accept,
        data: @field.get_html(:data, view: view, element: :input),
        direct_upload: @field.direct_upload,
        disabled: @field.readonly,
        multiple: true,
        style: @field.get_html(:style, view: view, element: :input)
      %>
    </div>
  <% end %>
<% end %>

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
avo-2.13.2.pre.2 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.13.2.pre.1 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.13.1 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.13.0 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.12.1.pre.1 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.12.0 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.11.3.pre.3 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.11.3.pre.2 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.11.3.pre.1 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.11.2.pre.3 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.11.2.pre.2 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.11.2.pre.1 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.11.1.pre.3 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.11.1 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.11.1.pre.2 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.11.1.pre.1 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.11.0 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.10.3.pre.1 app/components/avo/fields/files_field/edit_component.html.erb