{% extends 'core/mobile/base_mobile.html' %}
{% block content %}
<div class="p-3">
    <div class="mb-4">
        <a href="{% url 'core:profile' %}" class="text-decoration-none text-secondary small"><i class="bi bi-chevron-left"></i> 返回</a>
        <h4 class="fw-bold mt-2">提现 USDT</h4>
    </div>

    <div class="glass-card p-3 mb-3">
        <div class="d-flex justify-content-between x-small mb-1">
            <span class="text-secondary">可用余额</span>
            <span class="fw-bold">{{ account.balance }} USDT</span>
        </div>
    </div>

    <form method="POST" class="glass-card p-3">
        {% csrf_token %}
        <div class="mb-3">
            <label class="form-label small text-secondary">提币网络</label>
            <select class="form-select form-select-sm bg-dark text-white border-secondary">
                <option>TRC20</option>
                <option>ERC20</option>
            </select>
        </div>
        <div class="mb-3">
            <label class="form-label small text-secondary">提币地址</label>
            <input type="text" name="address" class="form-control" placeholder="请输入收币地址" required>
        </div>
        <div class="mb-3">
            <label class="form-label small text-secondary">提币数量</label>
            <div class="input-group">
                <input type="number" name="amount" class="form-control" placeholder="最小提币 10" required>
                <button type="button" class="btn btn-outline-warning x-small" onclick="document.getElementsByName('amount')[0].value={{ account.balance }}">全部</button>
            </div>
            <div class="x-small text-secondary mt-1">手续费: 1 USDT</div>
        </div>
        <button type="submit" class="btn btn-warning w-100 fw-bold">立即提现</button>
    </form>
</div>
{% endblock %}