First initial commit for test Django website
This commit is contained in:
17
users/templates/users/login.html
Normal file
17
users/templates/users/login.html
Normal file
@ -0,0 +1,17 @@
|
||||
{% extends 'layout.html' %}
|
||||
|
||||
{% block title %}
|
||||
User Login
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>User Login</h1>
|
||||
<form class="form-with-validation" action="/users/login/" method="post">
|
||||
{% csrf_token %}
|
||||
{{ form }}
|
||||
{% if request.GET.next %}
|
||||
<input type="hidden" name="next" value="{{ request.GET.next }}" />
|
||||
{% endif %}
|
||||
<button class="form-submit">Submit</button>
|
||||
</form>
|
||||
{% endblock %}
|
||||
14
users/templates/users/user_register.html
Normal file
14
users/templates/users/user_register.html
Normal file
@ -0,0 +1,14 @@
|
||||
{% extends 'layout.html' %}
|
||||
|
||||
{% block title %}
|
||||
Register a New User
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Register a New User</h1>
|
||||
<form class="form-with-validation" action="/users/register/" method="post">
|
||||
{% csrf_token %}
|
||||
{{ form }}
|
||||
<button class="form-submit">Submit</button>
|
||||
</form>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user