* links edit button in detail view with edit functionality
* fixes minor comment rendering bug
* fixes bug where compensation changes won't save
This commit is contained in:
mipel
2021-10-04 16:18:59 +02:00
parent feeddda90d
commit 0342d96a1f
5 changed files with 38 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
{% load i18n fontawesome_5 %}
{% if intervention.comment %}
{% if obj.comment %}
<div class="w-100">
<div class="card mt-3">
<div class="card-header rlp-r">

View File

@@ -13,7 +13,7 @@
</a>
{% if has_access %}
{% if is_default_member %}
<a href="{% url 'home' %}" class="mr-2">
<a href="{% url 'compensation:edit' obj.id %}" class="mr-2">
<button class="btn btn-default" title="{% trans 'Edit' %}">
{% fa5_icon 'edit' %}
</button>

View File

@@ -75,7 +75,7 @@
</div>
<br>
{% empty %}
None
{% trans 'None' %}
{% endfor %}
</td>
</tr>