Sha256: b4675d01ddcc5ff2f0bc7b08159ac311c1afada5b5e0867c7d4a9fea9db054b8
Contents?: true
Size: 1.21 KB
Versions: 3
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
3 entries across 3 versions & 1 rubygems