60 lines
No EOL
2.2 KiB
HTML
60 lines
No EOL
2.2 KiB
HTML
{% extends "baselayout.html" %}
|
|
|
|
{% load i18n %}
|
|
|
|
{% block title %}
|
|
{% translate "Drinks - Transfer" %}
|
|
{% endblock %}
|
|
|
|
{% block headAdditional %}
|
|
<link rel="stylesheet" href="/static/css/simple-keyboard.css">
|
|
<link rel="stylesheet" href="/static/css/simple-keyboard_dark.css">
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<form id="customform" class="flex flex-column flex-center appform gap-1rem" action="/api/transfer">
|
|
{% csrf_token %}
|
|
<h1 class="formheading">{% translate "Transfer Money" %}</h1>
|
|
<div class="flex forminput">
|
|
<span>{% translate "Recipient" %}:</span>
|
|
<span>
|
|
<select name="recipientuser" required>
|
|
<option></option>
|
|
{% for user_ in user_list %}
|
|
{% if user_.id != user.id %}
|
|
<option value="{{user_.id}}">
|
|
{% if user_.first_name %}
|
|
{% if user_.last_name %}
|
|
{{ user_.last_name }},
|
|
{% endif %}
|
|
{{ user_.first_name }}
|
|
{% elif user_.last_name %}
|
|
{{ user_.last_name }}
|
|
{% else %}
|
|
{{ user_.username }}
|
|
{% endif %}
|
|
{% endif %}
|
|
</option>
|
|
{% endfor %}
|
|
</select>
|
|
</span>
|
|
</div>
|
|
<div class="flex forminput">
|
|
<span>{% translate "Amount" %} {{ currency_suffix }}:</span>
|
|
<span>
|
|
<input type="number" name="transferamount" class="keyboard-input" max="{{ user.balance }}" min="0.01" step="0.01" autofocus required>
|
|
</span>
|
|
</div>
|
|
<div id="statusinfo"></div>
|
|
<!-- Virtual Keyboard -->
|
|
<div id="keyboard" class="simple-keyboard" data-layout="numeric"></div>
|
|
<script src="/static/js/simple-keyboard.js"></script>
|
|
<script src="/static/js/simple-keyboard_configure.js"></script>
|
|
<div class="flex-center buttons">
|
|
<a href="/" class="button">{% translate "cancel" %}</a>
|
|
<input type="submit" id="submitbtn" class="button" value='{% translate "confirm" %}'>
|
|
</div>
|
|
</form>
|
|
<script src="/static/js/custom_form.js"></script>
|
|
<script src="/static/js/autoreload.js"></script>
|
|
{% endblock %} |