Sha256: fb18e5b185c8cca7c8da02a5129d70d6550bba2dd10d51afc9c0274438ffaf05
Contents?: true
Size: 478 Bytes
Versions: 1
Compression:
Stored size: 478 Bytes
Contents
<%= form.file_field field.to_param, class: "form-input"%> <% if form.object.persisted? %> <div class="mt-2"> <%= render partial: field.to_partial_path("show"), locals: {field: field, record: record} %> <% if (value = field.value(record) && value&.attached?) %> <%= link_to "Remove", Madmin.resource_for(value).show_path(value), data: { turbo_method: :delete, turbo_confirm: "Are you sure? You will lose any other changes."} %> <% end %> </div> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
madmin-2.0.0 | app/views/madmin/fields/attachment/_form.html.erb |