Commit 64b44846 authored by Skia's avatar Skia 🤘
Browse files

Some templating

parent deeb2b5b
Pipeline #273 failed with stage
in 15 seconds
...@@ -142,6 +142,10 @@ ul, ol { ...@@ -142,6 +142,10 @@ ul, ol {
margin-left: 25px; margin-left: 25px;
} }
code {
font-family: monospace;
}
.edit-bar { .edit-bar {
display: block; display: block;
margin: 4px; margin: 4px;
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<h3>{% trans %}Eticket list{% endtrans %}</h3> <h3>{% trans %}Eticket list{% endtrans %}</h3>
<ul> <ul>
{% for t in eticket_list %} {% 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 %} {% endfor %}
</ul> </ul>
{% else %} {% else %}
......
...@@ -14,14 +14,14 @@ ...@@ -14,14 +14,14 @@
<h4>{{ t }}</h4> <h4>{{ t }}</h4>
<ul> <ul>
{% for p in product_list.filter(product_type=t).all().order_by('name') %} {% 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 %} {% endfor %}
</ul> </ul>
{% endfor %} {% endfor %}
<h4>{% trans %}Uncategorized{% endtrans %}</h4> <h4>{% trans %}Uncategorized{% endtrans %}</h4>
<ul> <ul>
{% for p in product_list.filter(product_type=None).all().order_by('name') %} {% 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 %} {% endfor %}
</ul> </ul>
{% else %} {% else %}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment