1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-12-23 07:52:23 +00:00
nk20/templates/treasury/remittance_form.html

38 lines
1.3 KiB
HTML
Raw Normal View History

2020-03-22 17:27:22 +00:00
{% extends "base.html" %}
{% load static %}
{% load i18n %}
{% load crispy_forms_tags pretty_money %}
{% load render_table from django_tables2 %}
2020-03-22 17:27:22 +00:00
{% block content %}
2020-03-23 23:50:55 +00:00
<h1>{% trans "Remittance #" %}{{ object.pk }}</h1>
2020-03-22 17:27:22 +00:00
<p><a class="btn btn-default" href="{% url 'treasury:remittance_list' %}">{% trans "Remittances list" %}</a></p>
2020-03-23 23:50:55 +00:00
{% if object.pk %}
<div id="div_id_type" class="form-group"><label for="id_count" class="col-form-label">{% trans "Count" %}</label>
<div class="">
<input type="text" name="count" value="{{ object.count }}" class="textinput textInput form-control" id="id_count" disabled>
</div>
</div>
<div id="div_id_type" class="form-group"><label for="id_amount" class="col-form-label">{% trans "Amount" %}</label>
<div class="">
<input class="textinput textInput form-control" type="text" value="{{ object.amount|pretty_money }}" id="id_amount" disabled>
</div>
</div>
{% endif %}
2020-03-22 17:27:22 +00:00
{% crispy form %}
2020-03-23 23:50:55 +00:00
<hr>
<h2>{% trans "Linked transactions" %}</h2>
{% if special_transactions.data %}
{% render_table special_transactions %}
{% else %}
<div class="alert alert-warning">
{% trans "There is no transaction linked with this remittance." %}
</div>
{% endif %}
2020-03-22 17:27:22 +00:00
{% endblock %}