#86 Edit actions compensation

* adds support for editing of CompensationAction for compensation
* adds buttons and urls
This commit is contained in:
mpeltriaux committed 2022-02-10 11:31:13 +01:00
1 parent 06f81d89c4
commit 8d573e7390
3 files changed
+37 -6

No files matched your search

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