Sha256: 79886cd38227288aee6ffc7a648f10dd0ee57d503f32a424aaccbfc749ac6bfa

Contents?: true

Size: 719 Bytes

Versions: 12

Compression:

Stored size: 719 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,
        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

12 entries across 12 versions & 1 rubygems

Version Path
avo-2.10.2 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.9.2.pre1 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.10.0 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.9.1.pre7 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.9.1.pre6 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.9.1.pre5 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.9.1.pre4 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.9.1.pre3 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.9.1.pre2 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.9.1.pre1 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.9.0 app/components/avo/fields/files_field/edit_component.html.erb
avo-2.8.0 app/components/avo/fields/files_field/edit_component.html.erb