{% include 'lib/alert.twig' %}
{% if session.last_post.confirm %} Confirm {% endif %} {% if session.last_post.amount is defined %} {{ session.last_post.amount }} {{ session.last_post.currency }} {% else %} {% include 'lib/inputs/number.twig' with { id: 'amount', name: 'amount', label: 'Amount', placeholder: 'Enter the amount', value: session.last_post.amount, required: true } %} {% endif %} {% if session.last_post.currency %} {% else %} {% include 'lib/inputs/select.twig' with { id: 'currency', name: 'currency', label: 'Currency', value: session.last_post.currency, options: [ { 'value': 'sats', 'text': 'Sats' }, { 'value': 'cents', 'text': 'Cents' } ], required: true } %} {% endif %} {% if session.last_post.user_identifier is defined %} {% if session.last_post.email is defined %} {{ session.last_post.id }} {{ session.last_post.email }} {% endif %} {% else %} {% include 'lib/inputs/text.twig' with { type: 'text', name: 'user_identifier', label: 'User Identifier', placeholder: 'Enter email or user index', value: session.last_post.user_identifier } %} {% endif %} {% include 'lib/button.twig' with { label: 'Submit', onclick: 'this.parentNode.submit()' } %}
{% if session.last_post %} {% include 'lib/button.twig' with { label: 'Cancel', href: '/admin/transactions/reset' } %} {% endif %}