#86 Edit deadline Compensation

* adds support for editing of deadlines
* adds buttons and urls
* adds w-10 as base css-class for all action columns
This commit is contained in:
2022-02-10 12:42:41 +01:00
parent 8d396c3e2b
commit afb0cabec4
18 changed files with 68 additions and 19 deletions

View File

@@ -35,7 +35,7 @@
{% trans 'Comment' %}
</th>
{% if is_default_member and has_access %}
<th scope="col">
<th class="w-10" scope="col">
<span class="float-right">
{% trans 'Action' %}
</span>

View File

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

View File

@@ -36,7 +36,7 @@
{% trans 'Surface' %}
</th>
{% if is_default_member and has_access %}
<th scope="col">
<th class="w-10" scope="col">
<span class="float-right">
{% trans 'Action' %}
</span>

View File

@@ -36,7 +36,7 @@
{% trans 'Surface' %}
</th>
{% if is_default_member and has_access %}
<th scope="col">
<th class="w-10" scope="col">
<span class="float-right">
{% trans 'Action' %}
</span>

View File

@@ -33,7 +33,7 @@
<th scope="col">
{% trans 'Comment' %}
</th>
<th scope="col">
<th class="w-10" scope="col">
<span class="float-right">
{% trans 'Action' %}
</span>

View File

@@ -36,7 +36,7 @@
<th scope="col">
{% trans 'Created' %}
</th>
<th scope="col">
<th class="w-10" scope="col">
<span class="float-right">
{% trans 'Action' %}
</span>

View File

@@ -33,7 +33,7 @@
<th scope="col">
{% trans 'Comment' %}
</th>
<th scope="col">
<th class="w-10" scope="col">
<span class="float-right">
{% trans 'Action' %}
</span>

View File

@@ -36,7 +36,7 @@
{% trans 'Surface' %}
</th>
{% if is_default_member and has_access %}
<th scope="col">
<th class="w-10" scope="col">
<span class="float-right">
{% trans 'Action' %}
</span>

View File

@@ -36,7 +36,7 @@
{% trans 'Surface' %}
</th>
{% if is_default_member and has_access %}
<th scope="col">
<th class="w-10" scope="col">
<span class="float-right">
{% trans 'Action' %}
</span>