Adds login and logout and some buttons.
This commit is contained in:
1 parent
96bacb586d
commit
59bf27b5ab
8 files changed
+94
-19
No files matched your search
@@ -0,0 +1,29 @@
|
||||
{% extends "base.html" %}
|
||||
{%block header%}
|
||||
<h1>Biceps Bar System</h1>
|
||||
{%endblock%}
|
||||
|
||||
{%block content%}
|
||||
<section id="nav">
|
||||
<ul>
|
||||
<li><a href="{% url main.views.logout %}">Logout</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
<section id="register">
|
||||
<div id="user">
|
||||
Selg til:
|
||||
{% for user in users %}
|
||||
<button id="{{ user }}">{{ user }}</button>
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div id="products">
|
||||
Vi selger:<br />
|
||||
{% for product in products %}
|
||||
<button id="{{ product.id }}">+ {{ product.name }}</button>
|
||||
<button id="{{ product.id }}">- {{ product.name }}</button>
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div id="total">Totalt: <span class="total_text"></span></div>
|
||||
<button id="submit">Kjøp</button>
|
||||
</section>
|
||||
{%endblock%}
|
||||
Reference in new issue
Block a user