mirror of
https://github.com/ae-utbm/sith.git
synced 2026-05-14 13:08:13 +00:00
introduce djhtml as jinja+scss formater
This commit is contained in:
committed by
Bartuccio Antoine
parent
13d0d2a300
commit
b25805e0a1
@@ -2,33 +2,33 @@
|
||||
{% from 'core/macros.jinja' import paginate %}
|
||||
|
||||
{% block title %}
|
||||
{%- trans %}Reloads list{% endtrans %} -- {{ counter.name }}
|
||||
{%- trans %}Reloads list{% endtrans %} -- {{ counter.name }}
|
||||
{% 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 %}Date{% endtrans %}
|
||||
<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>{{ refilling.date }}</td>
|
||||
<td><a href="{{ url('counter:refilling_delete', refilling_id=refilling.id)}}">Delete</a></td>
|
||||
</tr>
|
||||
{%- endfor %}
|
||||
</table>
|
||||
{% if is_paginated %}
|
||||
{{ paginate(page_obj, paginator) }}
|
||||
{% endif %}
|
||||
<tr>
|
||||
<th>{% trans %}Customer{% endtrans %}</th>
|
||||
<th>{% trans %}Amount{% endtrans %}</th>
|
||||
<th>{% trans %}Payment method{% endtrans %}</th>
|
||||
<th>{% trans %}Seller{% endtrans %}</th>
|
||||
<th>{% trans %}Date{% endtrans %}
|
||||
<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>{{ refilling.date }}</td>
|
||||
<td><a href="{{ url('counter:refilling_delete', refilling_id=refilling.id)}}">Delete</a></td>
|
||||
</tr>
|
||||
{%- endfor %}
|
||||
</table>
|
||||
{% if is_paginated %}
|
||||
{{ paginate(page_obj, paginator) }}
|
||||
{% endif %}
|
||||
{%- endblock %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user