mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-11 12:29:24 +00:00
Add basic counter model
This commit is contained in:
11
counter/templates/counter/counter_detail.jinja
Normal file
11
counter/templates/counter/counter_detail.jinja
Normal file
@ -0,0 +1,11 @@
|
||||
{% extends "core/base.jinja" %}
|
||||
|
||||
{% block content %}
|
||||
<h3>Counter</h3>
|
||||
<h4>{{ counter }}</h4>
|
||||
<p><strong>Club: </strong> {{ counter.club }}</p>
|
||||
<p><strong>Products: </strong> {{ counter.products.all() }}</p>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
|
21
counter/templates/counter/counter_list.jinja
Normal file
21
counter/templates/counter/counter_list.jinja
Normal file
@ -0,0 +1,21 @@
|
||||
{% extends "core/base.jinja" %}
|
||||
|
||||
{% block title %}
|
||||
Counter list
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% if counter_list %}
|
||||
<h3>Counter list</h3>
|
||||
<ul>
|
||||
{% for c in counter_list %}
|
||||
<li><a href="{{ url('counter:details', counter_id=c.id) }}">{{ c }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
There is no counters in this website.
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user