login/register ui, add register to menu
This commit is contained in:
parent
567ae6bde3
commit
7e4be4a233
4 changed files with 47 additions and 2 deletions
|
|
@ -53,6 +53,8 @@
|
|||
<a href="/logout/">logout</a>
|
||||
{% else %}
|
||||
<a href="/login/">login</a>
|
||||
<br>
|
||||
<a href="/register/">register</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</nav>
|
||||
|
|
|
|||
|
|
@ -7,8 +7,9 @@
|
|||
<form method="POST">
|
||||
{% csrf_token %}
|
||||
<input name="username" type="text" placeholder="your username" required></input>
|
||||
<br>
|
||||
<input name="password" type="password" placeholder="your password" required></input>
|
||||
<div class="buttons login">
|
||||
<div class="buttons">
|
||||
<button id="login">Login</button>
|
||||
</div>
|
||||
<div class="error">{{ error }}</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue