2019-12-17 04:24:40 +01:00
|
|
|
.walloftext
|
|
|
|
h1
|
|
|
|
= @user.name
|
|
|
|
| 's Donations
|
|
|
|
|
|
|
|
= render PhilomenaWeb.Admin.DonationView, "_table.html", donations: @donations, conn: @conn
|
|
|
|
|
|
|
|
h1 Add Donation
|
2024-04-29 02:55:27 +02:00
|
|
|
= form_for @changeset, ~p"/admin/donations", fn f ->
|
2019-12-17 04:24:40 +01:00
|
|
|
.field
|
|
|
|
=> label f, :user_id, "User ID:"
|
|
|
|
= number_input f, :user_id, class: "input input--short", value: @user.id
|
|
|
|
|
|
|
|
.field
|
|
|
|
=> label f, :email, "Email:"
|
|
|
|
= text_input f, :email, class: "input input--wide", value: @user.email
|
|
|
|
|
|
|
|
.field
|
|
|
|
=> label f, :amount, "Amount:"
|
|
|
|
= number_input f, :amount, class: "input input--wide", min: 0, step: 0.01
|
|
|
|
|
|
|
|
.field
|
|
|
|
=> label f, :note, "Note:"
|
|
|
|
= textarea f, :note, class: "input input--wide"
|
|
|
|
|
|
|
|
= submit "Create Donation", class: "button"
|