Sith/counter/templates/counter/refilling_list.jinja

33 lines
1015 B
Django/Jinja
Raw Normal View History

2017-09-02 13:05:36 +00:00
{% extends "core/base.jinja" %}
{% from 'core/macros.jinja' import paginate %}
{% block title %}
2017-09-02 13:22:50 +00:00
{%- trans %}Refillings list{% endtrans %} -- {{ counter.name }}
2017-09-02 13:05:36 +00:00
{% endblock %}
{% block content %}
<h3>{% trans %}Refilling{% endtrans %}</h3>
<table>
<tr>
<th>{% trans %}Customer{% endtrans %}</th>
<th>{% trans %}Amount{% endtrans %}</th>
<th>{% trans %}Payment method{% endtrans %}</th>
<th>{% trans %}Seller{% endtrans %}</th>
<th>{% trans %}Actions{% endtrans %}</th>
</tr>
{%- for refilling in object_list %}
<tr>
<td><a href="{{ url('core:user_profile', user_id=refilling.customer.user.id) }}">{{ refilling.customer }}</a></td>
<td>{{ refilling.amount }}</td>
<td>{{ refilling.payment_method }}</td>
<td>{{ refilling.operator }}</td>
<td><a href="{{ url('counter:refilling_delete', refilling_id=refilling.id)}}">Delete</a></td>
2017-09-02 13:31:20 +00:00
</tr>
2017-09-02 13:05:36 +00:00
{%- endfor %}
2017-09-02 13:31:20 +00:00
</table>
2017-09-02 13:05:36 +00:00
{% if is_paginated %}
{{ paginate(page_obj, paginator) }}
{% endif %}
{%- endblock %}