forked from expo/troggle
52 lines
1.3 KiB
HTML
52 lines
1.3 KiB
HTML
{% extends 'base.html' %}
|
|
|
|
{% block content %}
|
|
<!-- this overrides the django.contrib.auth default form
|
|
and it must be placed in
|
|
troggle/templates/login/register.html
|
|
because magic
|
|
|
|
This is because Django is Opinionated and does lots of Invisible Defaults
|
|
see
|
|
https://docs.djangoproject.com/en/5.0/topics/auth/customizing/#using-a-custom-user-model-when-starting-a-project
|
|
-->
|
|
<script>
|
|
function myFunction() {
|
|
var x = document.getElementById("id_password1");
|
|
if (x.type === "password") {
|
|
x.type = "text";
|
|
} else {
|
|
x.type = "password";
|
|
}
|
|
var x = document.getElementById("id_password2");
|
|
if (x.type === "password") {
|
|
x.type = "text";
|
|
} else {
|
|
x.type = "password";
|
|
}
|
|
}
|
|
</script>
|
|
<div class='middle'>
|
|
<h2>User registration - for a personal login to Troggle</h2>
|
|
</div>
|
|
<h3>Register a password and your email</h3>
|
|
<!--using template login/register.html -->
|
|
<p>For previous expoers, your username must be your id as listed on the <a href='/people'>past expoers list</a>
|
|
<div style='width: 40%' align="right">
|
|
<form method="post" accept-charset="utf-8">{% csrf_token %}
|
|
{{form.as_p}}
|
|
|
|
<div class='align-right'>
|
|
<input type="checkbox" checked name="visible" onclick="myFunction()">Make Passwords visible
|
|
|
|
<br /><br /><input type="submit" value="Register →">
|
|
</div>
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% endblock %}
|