Update trade offer acceptance update template buttons to have better text and styling

This commit is contained in:
badblocks 2025-03-18 14:21:18 -07:00
parent fb9f2f5848
commit 2451a6c630
3 changed files with 67 additions and 8 deletions

View file

@ -52,15 +52,20 @@
<div class="mt-6">
<h3 class="text-xl font-semibold mb-4">Select an action:</h3>
{% if form.fields.state.choices %}
{% for state_value, state_label in form.fields.state.choices %}
<form method="post" class="mb-2">
{% csrf_token %}
<input type="hidden" name="state" value="{{ state_value }}">
<button type="submit" class="btn btn-primary w-full">{{ state_label }}</button>
</form>
{% endfor %}
<div class="flex flex-row gap-2">
{% for state_value, state_label in form.fields.state.choices %}
<form method="post" class="mb-2 flex-1">
{% csrf_token %}
<input type="hidden" name="state" value="{{ state_value }}">
<button type="submit" class="{{ state_value|action_button_class }} w-full">
{{ object|get_action_label:state_value }}
</button>
</form>
{% endfor %}
</div>
{% else %}
<p>No available actions.</p>
<!--button class="btn-info"></button-->
{% endif %}
</div>