#86 Edit payment

* adds button for payment editing
* adds new edit form payment editing
* adds tests for views and workflow
This commit is contained in:
2022-02-09 10:29:34 +01:00
parent cb6a2d4d91
commit 78b4dce64d
12 changed files with 462 additions and 114 deletions

View File

@@ -54,9 +54,12 @@
{{ pay.comment }}
</div>
</td>
<td class="align-middle">
<td class="align-middle float-right">
{% if is_default_member and has_access %}
<button data-form-url="{% url 'compensation:pay:remove' obj.id pay.id %}" class="btn btn-default btn-modal float-right" title="{% trans 'Remove payment' %}">
<button data-form-url="{% url 'compensation:pay:edit' obj.id pay.id %}" class="btn btn-default btn-modal" title="{% trans 'Edit payment' %}">
{% fa5_icon 'edit' %}
</button>
<button data-form-url="{% url 'compensation:pay:remove' obj.id pay.id %}" class="btn btn-default btn-modal" title="{% trans 'Remove payment' %}">
{% fa5_icon 'trash' %}
</button>
{% endif %}