Initial commit
This commit is contained in:
33
templates/registration/login.html
Normal file
33
templates/registration/login.html
Normal file
@@ -0,0 +1,33 @@
|
||||
{% extends "base.html" %}
|
||||
{% load url from future %}
|
||||
{% comment %}
|
||||
Main page to authenticate users.
|
||||
{% endcomment %}
|
||||
|
||||
{% block head %}
|
||||
<title>TipPy | Login</title>
|
||||
{% endblock %}
|
||||
|
||||
{% block nav %}
|
||||
{% include "nav_login.html" with ls=ls season=season %}
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
{% if form.errors %}
|
||||
<div class="row">
|
||||
<p>Benutzename und Passwort passen nicht zusammen. Bitte versuche es noch einmal.</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<form class="form-signin" role="form" method="post" action="{% url 'django.contrib.auth.views.login' %}">
|
||||
<h2 class="form-signin-heading">Bitte melde dich an</h2>
|
||||
{% csrf_token %}
|
||||
<input class="form-control" type="text" autofocus="" required="" name="{{form.username.html_name}}" placeholder="Anmeldename" />
|
||||
<input class="form-control" type="password" required="" placeholder="Passwort" name="{{form.password.html_name}}" />
|
||||
<button class="btn btn-lg btn-primary btn-block" type="submit">Anmelden</button>
|
||||
<input type="hidden" name="next" value="{{ next }}" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
22
templates/registration/password_change_done.html
Normal file
22
templates/registration/password_change_done.html
Normal file
@@ -0,0 +1,22 @@
|
||||
{% extends "base.html" %}
|
||||
{% load i18n static %}
|
||||
|
||||
{% block title %}{% trans 'Password change successful' %}{% endblock %}
|
||||
|
||||
{% block nav %}
|
||||
{% include "nav.html" with ls=ls season=season %}
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
|
||||
|
||||
<div id="content-main">
|
||||
<div class="row">
|
||||
<div class="col-md-5">
|
||||
<h3>{% trans 'Password change successful' %}</h3>
|
||||
<p>{% trans 'Your password was changed.' %}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
59
templates/registration/password_change_form.html
Normal file
59
templates/registration/password_change_form.html
Normal file
@@ -0,0 +1,59 @@
|
||||
{% extends "base.html" %}
|
||||
{% load i18n static %}
|
||||
|
||||
{% block title %}{% trans 'Password change' %}{% endblock %}
|
||||
|
||||
{% block nav %}
|
||||
{% include "nav.html" with ls=ls season=season %}
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<div id="content-main">
|
||||
<div>
|
||||
{% if form.errors %}
|
||||
<p class="errornote">
|
||||
{% if form.errors.items|length == 1 %}
|
||||
{% trans "Please correct the error below." %}
|
||||
{% else %}
|
||||
{% trans "Please correct the errors below." %}
|
||||
{% endif %}</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-5">
|
||||
<h2 class="form-signin-heading">{% trans 'Password change' %}</h2>
|
||||
<p>{% trans "Please enter your old password, for security's sake, and then enter your new password twice so we can verify you typed it in correctly." %}</p>
|
||||
<form class="form-horizontal" action="" method="post">{% csrf_token %}
|
||||
<div class="form-group">
|
||||
{{ form.old_password.errors }}
|
||||
<label for="id_old_password" class="col-sm-4 control-label required">{% trans 'Old password' %}</label>
|
||||
<div class="col-sm-5">
|
||||
<input id="id_old_password" name="old_password" class="form-control" type="password" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
{{ form.new_password1.errors }}
|
||||
<label for="id_new_password1" class="col-sm-4 control-label required">{% trans 'New password' %}</label>
|
||||
<div class="col-sm-5">
|
||||
<input id="id_new_password1" name="new_password1" class="form-control" type="password" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
{{ form.new_password2.errors }}
|
||||
<label for="id_new_password2" class="col-sm-4 control-label required">{% trans 'Password (again)' %}</label>
|
||||
<div class="col-sm-5">
|
||||
<input id="id_new_password2" name="new_password2" class="form-control" type="password" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<button type="submit" class="btn btn-default">{% trans 'Change my password' %}</button>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">document.getElementById("id_old_password").focus();</script>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
80
templates/registration/profile.html
Normal file
80
templates/registration/profile.html
Normal file
@@ -0,0 +1,80 @@
|
||||
{% extends "base.html" %}
|
||||
{% load i18n static %}
|
||||
|
||||
{% block title %}{% trans 'Password change' %}{% endblock %}
|
||||
|
||||
{% block nav %}
|
||||
{% include "nav.html" with ls=ls season=season %}
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<div id="content-main">
|
||||
<div>
|
||||
{% if form.errors %}
|
||||
<p class="errornote">
|
||||
{% if form.errors.items|length == 1 %}
|
||||
{% trans "Please correct the error below." %}
|
||||
</p><p>{{ form.errors }}
|
||||
{% else %}
|
||||
{% trans "Please correct the errors below." %}
|
||||
{% endif %}</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-5">
|
||||
<h2 class="form-signin-heading">{% trans 'Edit Profile' %}</h2>
|
||||
{% if img %}
|
||||
<p><img border="0" alt="Profile Pic" src="{{ img }}" /></p>
|
||||
{% endif %}
|
||||
<form class="form-horizontal" action="" method="post" enctype="multipart/form-data">{% csrf_token %}
|
||||
<div class="form-group">
|
||||
<label for="{{ profile_form.avatar.id_for_label }}" class="col-sm-4 control-label required">Avatar</label>
|
||||
<div class="col-sm-5">
|
||||
{% if img %}
|
||||
<img src="/media/{{ img }}" /><br />
|
||||
<input id="avatar-clear_id" name="avatar-clear" type="checkbox" />
|
||||
<label for="avatar-clear_id">Zurücksetzen</label><br />
|
||||
Ändern: <input id="id_avatar" name="avatar" type="file" />
|
||||
{% else %}
|
||||
<input id="id_avatar" name="avatar" type="file" />
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="{{ user_form.first_name.id_for_label }}" class="col-sm-4 control-label required">Vorname</label>
|
||||
<div class="col-sm-5">
|
||||
{{ user_form.first_name }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="{{ user_form.last_name.id_for_label }}" class="col-sm-4 control-label required">Nachname</label>
|
||||
<div class="col-sm-5">
|
||||
{{ user_form.last_name }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="{{ user_form.email.id_for_label }}" class="col-sm-4 control-label required">E-Mail</label>
|
||||
<div class="col-sm-5">
|
||||
{{ user_form.email }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<button type="submit" class="btn btn-default">{% trans 'Update' %}</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
{% if debug %}
|
||||
<div class="row">
|
||||
<div class="col-md-5">
|
||||
<h2 class="form-signin-heading">{% trans 'Debug' %}</h2>
|
||||
{% for line in debug %}
|
||||
<p>{{ line }}</p>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
22
templates/registration/profile_change_done.html
Normal file
22
templates/registration/profile_change_done.html
Normal file
@@ -0,0 +1,22 @@
|
||||
{% extends "base.html" %}
|
||||
{% load i18n static %}
|
||||
|
||||
{% block title %}{% trans 'Profile change successful' %}{% endblock %}
|
||||
|
||||
{% block nav %}
|
||||
{% include "nav.html" with ls=ls season=season %}
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
|
||||
|
||||
<div id="content-main">
|
||||
<div class="row">
|
||||
<div class="col-md-5">
|
||||
<h3>{% trans 'Profile change successful' %}</h3>
|
||||
<p>{% trans 'Your profile was changed.' %}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user