Improve the click view, the total is computed, but there is still a lot of work

This commit is contained in:
Skia
2016-04-18 17:34:21 +02:00
parent 1f98993871
commit 7a9689a20d
2 changed files with 53 additions and 5 deletions

View File

@ -14,6 +14,15 @@
<p><strong>Club: </strong> {{ counter.club }}</p>
<p><strong>Products: </strong> {{ counter.products.all() }}</p>
<div>
Customer: {{ customer }}
<form method="post" action="{{ url('counter:click', counter_id=counter.id, user_id=customer.user.id) }}">
{% csrf_token %}
{{ form.as_p() }}
<input type="submit" value="CLICK" />
</form>
</div>
{% endblock %}