Add basic counter model

This commit is contained in:
Skia
2016-03-28 14:54:35 +02:00
parent 7d7652e319
commit 21f1393097
17 changed files with 132 additions and 2 deletions

View 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 %}

View 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 %}