Fix create trade offer flow and other related bugs

This commit is contained in:
badblocks 2025-03-26 11:38:02 -07:00
parent f3a1366269
commit 65ca344582
40 changed files with 867 additions and 278 deletions

View file

@ -0,0 +1,28 @@
{% extends 'base.html' %}
{% load static card_badge trade_offer_tags %}
{% block title %}Confirm Trade Offer{% endblock title %}
{% block content %}
<div class="container mx-auto max-w-xl mt-6">
<h2 class="text-2xl font-bold mb-4">Confirm Trade Offer</h2>
<form method="post">
{% csrf_token %}
{# Re-create hidden inputs from POST data, except the preview button #}
{% for key, values in post_data.lists %}
{% for value in values %}
{% if key != "preview" %}
<input type="hidden" name="{{ key }}" value="{{ value }}">
{% endif %}
{% endfor %}
{% endfor %}
{% render_trade_offer dummy_trade_offer False False True %}
<div class="flex justify-between mt-4">
<button type="submit" name="edit" class="btn btn-secondary">Edit</button>
<button type="submit" name="confirm" class="btn btn-primary">Confirm Trade Offer</button>
</div>
</form>
</div>
{% endblock content %}