v0.6.3: single Square payment ref field with update/deliver buttons

This commit is contained in:
Troll (Hermes Agent) 2026-08-09 16:42:06 +00:00
parent 55de2ab649
commit d058d8db1d
3 changed files with 9 additions and 15 deletions

View file

@ -1,6 +1,6 @@
# Theme Song Booth # Theme Song Booth
**Version:** `v0.6.2` **Version:** `v0.6.3`
A Flask web application for running a convention booth where visitors request a custom AI-generated theme song. Operators manage the queue from an admin dashboard, generate Suno prompts, upload MP3 previews, collect payment, and deliver final songs by email. A Flask web application for running a convention booth where visitors request a custom AI-generated theme song. Operators manage the queue from an admin dashboard, generate Suno prompts, upload MP3 previews, collect payment, and deliver final songs by email.

View file

@ -1 +1 @@
0.6.2 0.6.3

View file

@ -439,18 +439,15 @@
<p><strong>Square Payment Reference:</strong> {{ req.square_payment_ref }}</p> <p><strong>Square Payment Reference:</strong> {{ req.square_payment_ref }}</p>
{% endif %} {% endif %}
<form method="POST"> <form method="POST">
<input type="hidden" name="action" value="update_payment_ref"> <!-- Shared payment reference field -->
<label for="square_payment_ref_edit">Square Payment Reference</label> <label for="square_payment_ref">Square Payment Reference</label>
<input type="text" id="square_payment_ref_edit" name="square_payment_ref" value="{{ req.square_payment_ref or '' }}" placeholder="e.g. sq0idp-... or receipt number"> <input type="text" id="square_payment_ref" name="square_payment_ref" value="{{ req.square_payment_ref or '' }}" placeholder="e.g. sq0idp-... or receipt number">
<div class="actions"> <div class="actions">
<button type="submit" class="secondary">Update Payment Reference</button> <button type="submit" name="action" value="update_payment_ref" class="secondary">Update Payment Reference</button>
</div> </div>
</form>
<hr style="border-color:#374151;margin:1rem 0"> <hr style="border-color:#374151;margin:1rem 0">
<form method="POST">
<input type="hidden" name="action" value="mark_paid_deliver">
<p style="color:#93c5fd;font-weight:600">Select files to deliver:</p> <p style="color:#93c5fd;font-weight:600">Select files to deliver:</p>
{% set all_files = [] %} {% set all_files = [] %}
@ -476,11 +473,8 @@
<p>No files available. Upload songs first.</p> <p>No files available. Upload songs first.</p>
{% endfor %} {% endfor %}
<label for="square_payment_ref">Square Payment Reference (required to deliver)</label>
<input type="text" id="square_payment_ref" name="square_payment_ref" value="{{ req.square_payment_ref or '' }}" placeholder="e.g. sq0idp-... or receipt number"
{% if req.customer_approved == 'none' %}disabled{% endif %}>
<div class="actions"> <div class="actions">
<button type="submit" class="success" {% if req.customer_approved == 'none' %}disabled{% endif %}>Mark Paid &amp; Deliver</button> <button type="submit" name="action" value="mark_paid_deliver" class="success" {% if req.customer_approved == 'none' %}disabled{% endif %}>Mark Paid &amp; Deliver</button>
</div> </div>
{% if req.customer_approved == 'none' %} {% if req.customer_approved == 'none' %}
<p style="margin-top:.5rem;color:#f87171;font-weight:600">⚠️ Customer must approve a version before you can mark paid or deliver.</p> <p style="margin-top:.5rem;color:#f87171;font-weight:600">⚠️ Customer must approve a version before you can mark paid or deliver.</p>