3 Commits

Author SHA1 Message Date
2b00eebb73 Fix delete link, remove obsolete notice
All checks were successful
continuous-integration/drone/push Build is passing
2022-02-21 11:19:07 -06:00
86cdb1202b Port check-email screen to new layout 2022-02-21 11:09:57 -06:00
6a469d6a75 Allow empty values for fiat conversion 2022-02-21 11:09:44 -06:00
3 changed files with 11 additions and 8 deletions

View File

@@ -20,13 +20,14 @@
<tr>
<td><%= donation.user.address %></td>
<td><%= sats_to_btc donation.amount_sats %> BTC</td>
<td><%= number_to_currency donation.amount_eur / 100, unit: "" %></td>
<td><%= number_to_currency donation.amount_usd / 100, unit: "" %></td>
<td><% if donation.amount_eur.present? %><%= number_to_currency donation.amount_eur / 100, unit: "" %><% end %></td>
<td><% if donation.amount_usd.present? %><%= number_to_currency donation.amount_usd / 100, unit: "" %><% end %></td>
<td><%= donation.public_name %></td>
<td><%= donation.paid_at ? donation.paid_at.strftime("%Y-%m-%d") : "" %></td>
<td><%= link_to 'Show', admin_donation_path(donation), class: 'btn btn-sm btn-gray' %></td>
<td><%= link_to 'Edit', edit_admin_donation_path(donation), class: 'btn btn-sm btn-gray' %></td>
<td><%= link_to 'Destroy', admin_donation_path(donation), class: 'btn btn-sm btn-red', method: :delete, data: { confirm: 'Are you sure?' } %></td>
<td><%= link_to 'Destroy', admin_donation_path(donation), class: 'btn btn-sm btn-red',
data: { turbo_method: :delete, confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</tbody>

View File

@@ -1,8 +1,6 @@
<%= render HeaderComponent.new(title: "Donations") %>
<%= render MainSimpleComponent.new do %>
<p id="notice"><%= notice %></p>
<p>
<strong>User:</strong>
<%= @donation.user.address %>

View File

@@ -1,3 +1,7 @@
<p class="notice">
You can close this window or tab now.
</p>
<%= render HeaderCompactComponent.new(title: "Email sent") %>
<%= render MainCompactComponent.new do %>
<p class="text-center">
You can close this window or tab now.
</p>
<% end %>