Fixes to trade expansion and trade acceptance appearance

This commit is contained in:
badblocks 2025-04-03 17:09:51 -07:00
parent 63e20bace6
commit 01becbee48
20 changed files with 105 additions and 148 deletions

View file

@ -25,8 +25,5 @@
</ul>
</div>
{% endif %}
<div class="mt-6">
<a href="{% url 'trade_offer_detail' pk=trade_offer.pk %}" class="btn btn-secondary">Back to Offer Details</a>
</div>
</div>
{% endblock content %}

View file

@ -84,11 +84,5 @@
</ul>
</div>
{% endif %}
<div class="mt-6">
<a href="{% url 'trade_offer_detail' pk=object.trade_offer.pk %}" class="btn btn-secondary">
Back to Offer Details
</a>
</div>
</div>
{% endblock content %}

View file

@ -47,11 +47,10 @@
{% endif %}
<div class="mt-6 flex justify-between">
<a href="{% url 'trade_offer_list' %}" class="btn btn-secondary">Back to Trade Offers</a>
{% if is_initiator %}
<a href="{{ delete_close_url }}" class="btn btn-danger">Delete/Close Trade Offer</a>
{% elif request.user.is_authenticated %}
<button type="submit" class="btn btn-primary">Accept Offer</button>
<button type="submit" class="btn btn-primary">Accept Trade</button>
{% endif %}
</form>
</div>

View file

@ -80,7 +80,6 @@
{% endif %}
<div class="flex space-x-4">
<a href="{% url 'trade_offer_list' %}" class="btn btn-secondary">Back to Trade Offers</a>
{% if can_delete %}
<a href="{% url 'trade_offer_delete' object.pk %}" class="btn btn-error">Delete Trade Offer</a>
{% endif %}