* adds related eco account withdraw detail view to intervention detail view * adds new route for removing withdraws using RemoveModalForm * adds EcoAccountWithdraw model * adds admin interfaces for EcoAccount and EcoAccountWithdraw * adds message_templates.py to konova/utils for reusable messages * splits related-documents.html and related-objects.html into separate templates for each related object type: compensations.html, documents.html, eco-account-withdraws.html and payments.html * adds translations
49 lines
1.6 KiB
HTML
49 lines
1.6 KiB
HTML
{% load i18n l10n fontawesome_5 %}
|
|
<div id="related-compensations" class="card">
|
|
<div class="card-header rlp-r">
|
|
<div class="row">
|
|
<div class="col-sm-6">
|
|
<h5>
|
|
<span class="badge badge-light">{{intervention.compensations.count}}</span>
|
|
{% trans 'Compensations' %}
|
|
</h5>
|
|
</div>
|
|
<div class="col-sm-6">
|
|
<div class="d-flex justify-content-end">
|
|
<a href="{% url 'compensation:new' %}" title="{% trans 'Add new compensation' %}">
|
|
<button class="btn btn-outline-default">
|
|
{% fa5_icon 'plus' %}
|
|
{% fa5_icon 'leaf' %}
|
|
</button>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="card-body scroll-300">
|
|
<table class="table table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">
|
|
{% trans 'Identifier' %}
|
|
</th>
|
|
<th scope="col">
|
|
{% trans 'Title' %}
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for comp in intervention.compensations.all %}
|
|
<tr>
|
|
<td class="align-middle">
|
|
<a href="{% url 'compensation:open' comp.id %}">
|
|
{{ comp.identifier }}
|
|
</a>
|
|
</td>
|
|
<td class="align-middle">{{ comp.title }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div> |