1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-11-26 10:27:07 +00:00
nk20/templates/note/transactiontemplate_form.html

29 lines
822 B
HTML
Raw Normal View History

2019-08-11 17:55:04 +00:00
{% extends "base.html" %}
2020-04-27 01:21:13 +00:00
2019-08-11 17:55:04 +00:00
{% load static %}
2020-03-11 11:05:29 +00:00
{% load i18n %}
2019-08-11 17:55:04 +00:00
{% load crispy_forms_tags %}
2020-04-27 01:21:13 +00:00
{% load pretty_money %}
2019-08-11 17:55:04 +00:00
{% block content %}
2020-04-27 01:21:13 +00:00
<p>
<a class="btn btn-default" href="{% url 'note:template_list' %}">{% trans "Buttons list" %}</a>
</p>
<form method="post">
{% csrf_token %}
{{form|crispy}}
<button class="btn btn-primary" type="submit">{% trans "Submit" %}</button>
2020-04-27 01:21:13 +00:00
</form>
{% if price_history and price_history.1 %}
2020-04-27 01:21:13 +00:00
<hr>
<h4>{% trans "Price history" %}</h4>
<ul>
{% for price in price_history %}
<li>{{ price.price|pretty_money }} {% if price.time %}({% trans "Obsolete since" %} {{ price.time }}){% else %}({% trans "Current price" %}){% endif %}</li>
{% endfor %}
</ul>
{% endif %}
2019-08-11 17:55:04 +00:00
{% endblock %}