remove trade offer expanding, fix flipping to work with new layout. all cards in trade offer are not expanded
This commit is contained in:
parent
c68d1fb5ec
commit
7c62c57433
11 changed files with 194 additions and 170 deletions
|
|
@ -6,7 +6,7 @@
|
|||
<div class="flex justify-center flex-wrap">
|
||||
{% for card in group.cards %}
|
||||
<a href="{% url 'cards:card_detail' card.pk %}">
|
||||
{% card_badge card static=True %}
|
||||
{% card_badge card expanded=True %}
|
||||
</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
|
@ -15,7 +15,7 @@
|
|||
<div class="flex justify-center flex-wrap">
|
||||
{% for card in cards %}
|
||||
<a href="{% url 'cards:card_detail' card.pk %}">
|
||||
{% card_badge card static=True %}
|
||||
{% card_badge card expanded=True %}
|
||||
</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
{% for card in cards %}
|
||||
<a href="{% url 'cards:card_detail' card.id %}"
|
||||
class="flex justify-between items-center text-primary no-underline">
|
||||
{% card_badge card quantity=card.offer_count static=True %}
|
||||
{% card_badge card quantity=card.offer_count expanded=True %}
|
||||
</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
{# Render a trade acceptance using our new tag #}
|
||||
{% render_trade_acceptance offer %}
|
||||
{% else %}
|
||||
{% render_trade_offer offer expanded=expanded %}
|
||||
{% render_trade_offer offer %}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% empty %}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
<div class="container mx-auto max-w-2xl mt-6">
|
||||
<h2 class="text-2xl font-bold">Trade Offer Details</h2>
|
||||
<div class="flex justify-center mt-10">
|
||||
{% render_trade_offer object expanded=True %}
|
||||
{% render_trade_offer object %}
|
||||
</div>
|
||||
{% if acceptance_form %}
|
||||
<div class="w-3/4 mx-auto mt-4">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue