Some templating

This commit is contained in:
Skia 2016-10-04 00:41:08 +02:00
parent deeb2b5b6f
commit 64b4484620
3 changed files with 7 additions and 3 deletions

View File

@ -142,6 +142,10 @@ ul, ol {
margin-left: 25px;
}
code {
font-family: monospace;
}
.edit-bar {
display: block;
margin: 4px;

View File

@ -10,7 +10,7 @@
<h3>{% trans %}Eticket list{% endtrans %}</h3>
<ul>
{% for t in eticket_list %}
<li><a href="{{ url('counter:edit_eticket', eticket_id=t.id) }}">{{ t }} - {{ t.secret }}</a></li>
<li><a href="{{ url('counter:edit_eticket', eticket_id=t.id) }}">{{ t }}</a> (Hash: <code>{{ t.secret }}</code>)</li>
{% endfor %}
</ul>
{% else %}

View File

@ -14,14 +14,14 @@
<h4>{{ t }}</h4>
<ul>
{% for p in product_list.filter(product_type=t).all().order_by('name') %}
<li><a href="{{ url('counter:product_edit', product_id=p.id) }}">{{ p }}</a></li>
<li><a href="{{ url('counter:product_edit', product_id=p.id) }}">{{ p }} ({{ p.code }})</a></li>
{% endfor %}
</ul>
{% endfor %}
<h4>{% trans %}Uncategorized{% endtrans %}</h4>
<ul>
{% for p in product_list.filter(product_type=None).all().order_by('name') %}
<li><a href="{{ url('counter:product_edit', product_id=p.id) }}">{{ p }}</a></li>
<li><a href="{{ url('counter:product_edit', product_id=p.id) }}">{{ p }} ({{ p.code }})</a></li>
{% endfor %}
</ul>
{% else %}