29 lines
858 B
HTML
29 lines
858 B
HTML
|
{% extends "base.html" %}
|
||
|
|
||
|
{% block content %}
|
||
|
<div class="form-container">
|
||
|
<h2>Login</h2>
|
||
|
{% if messages %}
|
||
|
<ul class="messages">
|
||
|
{% for message in messages %}
|
||
|
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
|
||
|
{% endfor %}
|
||
|
</ul>
|
||
|
{% endif %}
|
||
|
|
||
|
<form method="post">
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label for="username">Username:</label>
|
||
|
<input type="text" name="username" required>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label for="password">Password:</label>
|
||
|
<input type="password" name="password" required>
|
||
|
</div>
|
||
|
{% csrf_token %}
|
||
|
<button type="submit">Login</button>
|
||
|
</form>
|
||
|
<p>Don't have an account? <a href="{% url 'signup' %}">Register here</a></p>
|
||
|
</div>
|
||
|
{% endblock %}
|