%- include('layout', { title: 'Betrag abbuchen - ' + account.name }) %>
<% override body %>
Betrag abbuchen für: <%= account.name %>
Aktueller Kontostand: <%= account.balance.toFixed(2) %> €
<% if (error) { %>
<% if (error === 'insufficient_funds') { %>
Nicht genügend Guthaben auf dem Konto!
<% else if (error === 'invalid_amount') { %>
Bitte einen gültigen Betrag eingeben!
<% else if (error === 'invalid_item') { %>
Ungültiger Artikel ausgewählt!
<% else { %>
<%= error %>
<% } %>
<% } %>
<% end %>