Sha256: 7a9af6a5b3085dce5c1e3b7ea40bd897c106fbca37c669e2a607dc67e4842838
Contents?: true
Size: 1.21 KB
Versions: 8
Compression:
Stored size: 1.21 KB
Contents
<%= field_wrapper **field_wrapper_args, full_width: true do %> <%= render Avo::Fields::Common::Files::ListViewerComponent.new(field: @field, resource: @resource) if @field.value.present? %> <% if can_upload_file? %> <div data-controller="clear-input"> <div class="mt-2 flex items-center"> <%= @form.file_field @field.id, accept: @field.accept, data: @field.get_html(:data, view: view, element: :input) .merge( action: "change->clear-input#showClearButton", clear_input_target: "input" ), direct_upload: @field.direct_upload, disabled: disabled?, multiple: true, style: @field.get_html(:style, view: view, element: :input), autofocus: @autofocus %> </div> <%= content_tag :button, class: "self-center hidden font-semibold text-xs text-red-600 p-1", id: :reset, type: :button, data: { clear_input_target: "clearButton", action: "click->clear-input#clearInput", tippy: :tooltip } do %> <% t("avo.clear_value") %> <% end %> </div> <% else %> — <% end %> <% end %>
Version data entries
8 entries across 8 versions & 1 rubygems