41 lines
1.8 KiB
HTML
41 lines
1.8 KiB
HTML
|
{% extends 'index.html' %}
|
||
|
{% load static %}
|
||
|
|
||
|
{% block content %}
|
||
|
<main class="my-form">
|
||
|
<div class="cotainer">
|
||
|
<div class="row justify-content-center">
|
||
|
<div class="col-md-8">
|
||
|
<div class="card">
|
||
|
<div class="card-header">Register</div>
|
||
|
<div class="card-body">
|
||
|
<form name="my-form" method="POST">
|
||
|
{% csrf_token %}
|
||
|
{% for field in form %}
|
||
|
|
||
|
<div class="form-group row">
|
||
|
<label for="email_address" class="col-md-4 col-form-label text-md-right">{{field.label_tag}}</label>
|
||
|
<div class="col-md-6">
|
||
|
{{field}}
|
||
|
{% for error in field.errors %}
|
||
|
<p style="color: red">{{ error }}</p>
|
||
|
{% endfor %}
|
||
|
</div>
|
||
|
</div>
|
||
|
{% endfor %}
|
||
|
<div class="col-md-6 offset-md-4">
|
||
|
<button type="submit" class="btn btn-primary">
|
||
|
Register
|
||
|
</button>
|
||
|
<a href='{{ request.scheme }}://{{ request.META.HTTP_HOST }}/login'>Masz ju konto? Zaloguj się!</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</main>
|
||
|
{% endblock %}
|