philomena/lib/philomena_web/templates/admin/badge/image/edit.html.slime

16 lines
488 B
Text
Raw Normal View History

2020-03-30 00:36:24 +02:00
h2 Edit Badge
2024-06-06 22:28:35 +02:00
= form_for @changeset, ~p"/admin/badges/#{@badge}/image", [multipart: true], fn f ->
2020-03-30 00:36:24 +02:00
= if @changeset.action do
.alert.alert-danger
p Oops, something went wrong! Please check the errors below.
h4 Image
.field
=> label f, :image, "Upload SVG image:"
= file_input f, :image, class: "input input--wide"
= error_tag f, :image
= error_tag f, :image_mime_type
= submit "Save Badge", class: "button", data: [disable_with: raw("Saving…")]