Sha256: ccf9f307f31b61a44fe2bf82a28fd8fc3afe7e7a8eaae6f82e3b2f8283809430
Contents?: true
Size: 647 Bytes
Versions: 23
Compression:
Stored size: 647 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 @resource.authorization.authorize_action(:upload_attachments?, raise_exception: false) %> <%= @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" %> <% end %> <% end %>
Version data entries
23 entries across 23 versions & 1 rubygems