Sha256: 5767de86ec9912352d7452ab5133c907e575ea3c8068bfd8b54328e1dc09a85f
Contents?: true
Size: 541 Bytes
Versions: 31
Compression:
Stored size: 541 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, disabled: @field.readonly, direct_upload: @field.direct_upload %> <% end %> <% end %>
Version data entries
31 entries across 31 versions & 1 rubygems