Sha256: 0d674b07454723c97d947351686b0e2f020a3edb675a9105e232dacf823357b4
Contents?: true
Size: 722 Bytes
Versions: 28
Compression:
Stored size: 722 Bytes
Contents
<%= edit_field_wrapper field: @field, index: @index, form: @form, resource: @resource, displayed_in_modal: @displayed_in_modal 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: @field.is_readonly?, style: @field.get_html(:style, view: view, element: :input) %> <% end %> <% end %>
Version data entries
28 entries across 28 versions & 1 rubygems