new apps/dashboard/wallet.html for stripe payment integration and user's consumables; nav added to _footer.html & also dynamic copyright year with django now Y template; new apps.dash.tests ITs & UTs reflect new wallet functionality in .urls & .views

This commit is contained in:
Disco DeDisco
2026-03-08 15:14:41 -04:00
parent 571f659b19
commit 076d75effe
17 changed files with 362 additions and 42 deletions

View File

@@ -0,0 +1,41 @@
{% extends "core/base.html" %}
{% block content %}
<div class="wallet-page">
<h1>Wallet</h1>
<section class="wallet-balances">
<div>Writs: <span id="id_writs_balance">{{ wallet.writs }}</span></div>
<div>Esteem: <span id="id_esteem_balance">{{ wallet.esteem }}</span></div>
</section>
<section class="wallet-tokens">
{% if coin %}
<div id="id_coin_on_a_string" class="token">
<span class="token-tooltip">{{ coin.tooltip_text }}</span>
</div>
{% endif %}
{% for token in free_tokens %}
<div id="id_free_token_{{ forloop.counter0 }}" class="token">
<span class="token-tooltip">{{ token.tooltip_text }}</span>
</div>
{% endfor %}
</section>
<section id="id_payment_methods">
<h2>Payment Methods</h2>
<button id="id_add_payment_method">Add Payment Method</button>
<div id="id_stripe_payment_element"></div>
</section>
<section id="id_tithe_token_shop">
<h2>Tithe Tokens</h2>
<div class="token-bundle">
<span>Tithe Token ×1</span>
<span>+ Writ bonus</span>
</div>
</section>
</div>
{% endblock content %}

View File

@@ -1,5 +1,9 @@
<footer id="id_footer">
<nav id="id_footer_nav">
<a href="/">Dashboard</a>
<a href="/gameboard/">Gameboard</a>
</nav>
<div class="footer-container">
<small>&copy;2026 Dis Co.</small>
<small>&copy;{% now "Y" %} Dis Co.</small>
</div>
</footer>