Allow to set amount and date when manually confirming a payment (#3828)

* Allow to set amount and date when manually confirming a payment

* Fix tests
This commit is contained in:
Raphael Michel
2024-01-26 19:22:15 +01:00
committed by GitHub
parent 9eb1c5047b
commit eaae7e9ea2
4 changed files with 39 additions and 14 deletions

View File

@@ -21,7 +21,13 @@
Do you really want to mark this payment as complete?
{% endblocktrans %}</p>
<input type="hidden" name="status" value="p" />
{% bootstrap_form form layout='horizontal' horizontal_label_class='sr-only' horizontal_field_class='col-md-12' %}
{% bootstrap_form_errors form %}
{% bootstrap_field form.amount layout='horizontal' %}
{% bootstrap_field form.payment_date layout='horizontal' %}
{% bootstrap_field form.send_email layout='horizontal' %}
{% if form.force %}
{% bootstrap_field form.force layout='horizontal' horizontal_label_class='sr-only' horizontal_field_class='col-md-12' %}
{% endif %}
<div class="form-group submit-group">
<a class="btn btn-default btn-lg"
href="{% url "control:event.order" event=request.event.slug organizer=request.event.organizer.slug code=order.code %}">