mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-25 07:39:28 +00:00
Reorganise the file structure into a project tree
This commit is contained in:
19
app/templates/registration/activate.html
Normal file
19
app/templates/registration/activate.html
Normal file
@@ -0,0 +1,19 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% load i18n %}
|
||||
|
||||
{% block content %}
|
||||
{% if account %}
|
||||
<p>{% with account.username as username %}
|
||||
Thank you for registering!<br />
|
||||
From now on, you can login with your username ({{ username }}).<br/>
|
||||
<br/>
|
||||
<a href="{% url sso.views.profile %}">Back</a>
|
||||
{% endwith %}
|
||||
</p>
|
||||
{% else %}
|
||||
<p>Either the link was invalid, or you didn't activate your account within {{ expiration_days }} days after the registration. Please register again.</p>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
13
app/templates/registration/activation_email.txt
Normal file
13
app/templates/registration/activation_email.txt
Normal file
@@ -0,0 +1,13 @@
|
||||
{% load i18n %}
|
||||
Hello,
|
||||
|
||||
someone registered to {{ site }} and specified this EMail address. If this is correct, please follow this link to activate the account:
|
||||
|
||||
https://{{ site|slice:":-1" }}{% url registration_activate activation_key=activation_key %}
|
||||
|
||||
In case you didn't register, please ignore this Mail. The account will be deleted in {{ expiration_days }} days and you will not receive any more mail from us.
|
||||
|
||||
Regards,
|
||||
|
||||
Matalok
|
||||
Auth Gateway Admin
|
||||
1
app/templates/registration/activation_email_subject.txt
Normal file
1
app/templates/registration/activation_email_subject.txt
Normal file
@@ -0,0 +1 @@
|
||||
Dreddit Auth Gateway Account Validation
|
||||
17
app/templates/registration/imprint.html
Normal file
17
app/templates/registration/imprint.html
Normal file
@@ -0,0 +1,17 @@
|
||||
{% load mumble_extras %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block Headline %}{% trans "Imprint" %}{% endblock %}
|
||||
|
||||
{% block Content %}
|
||||
<div class="rahmen">
|
||||
<p>
|
||||
This is <a href="http://bitbucket.org/Svedrin/mumble-django/">Mumble-Django</a>, a Murmur config application for <a href="http://www.djangoproject.com/" target="_blank">Django</a> that configures a Mumble server. It is able to create and remove server instances, start/stop them, and configure them.<br />
|
||||
<br />
|
||||
Furthermore, registered Django users can sign up for user accounts on the configured vservers and change their registration names and passwords, and Django admins can manage server admins through the webinterface.<br />
|
||||
<br />
|
||||
It is being developed by Michael "Svedrin" Ziegler.
|
||||
</p>
|
||||
<p>All JavaScript elements were implemented using <a href="http://www.extjs.com/" target="_blank">the ExtJS JavaScript library.</a></p>
|
||||
</div>
|
||||
{% endblock %}
|
||||
37
app/templates/registration/login.html
Normal file
37
app/templates/registration/login.html
Normal file
@@ -0,0 +1,37 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
{% load i18n %}
|
||||
{% block HeadTag %}
|
||||
<script type="text/javascript">
|
||||
Ext.onReady( function(){
|
||||
Ext.fly("id_username").focus();
|
||||
} );
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
{% block Content %}
|
||||
|
||||
<h2>Login</h2>
|
||||
|
||||
{% if form.errors %}
|
||||
<p>Username or password don't exist or are not correct. Please try again.</p>
|
||||
{% endif %}
|
||||
|
||||
<form method="post" action=".">
|
||||
<table>
|
||||
<tr><td>{{ form.username.label_tag }}</td><td>{{ form.username }}</td></tr>
|
||||
<tr><td>{{ form.password.label_tag }}</td><td>{{ form.password }}</td></tr>
|
||||
</table>
|
||||
<br />
|
||||
{% csrf_token %}
|
||||
<input type="submit" value="login" />
|
||||
<input type="hidden" name="next" value="{{ next }}" />
|
||||
</form>
|
||||
<ul>
|
||||
<li>No Login? You can <a href="{% url registration.views.register %}">sign up!</a></li>
|
||||
<li>Forgot the password? You can <a href="{% url django.contrib.auth.views.password_reset %}">reset it!</a></li>
|
||||
</ul>
|
||||
{% endblock %}
|
||||
|
||||
{% endblock %}
|
||||
11
app/templates/registration/logout.html
Normal file
11
app/templates/registration/logout.html
Normal file
@@ -0,0 +1,11 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %}Logged out{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h3>You have been logged out.</h3>
|
||||
<p>Thank you for visiting.
|
||||
</p>
|
||||
{% endblock %}
|
||||
10
app/templates/registration/registration_complete.html
Normal file
10
app/templates/registration/registration_complete.html
Normal file
@@ -0,0 +1,10 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% load i18n %}
|
||||
|
||||
{% block content %}
|
||||
<p>Thank you for registering.
|
||||
In order to prohibit misuse, you need to activate your account before you can use it. We sent an EMail with further instructions to the address you specified, please follow the link in that email to activate your account.
|
||||
</p>
|
||||
{% endblock %}
|
||||
|
||||
19
app/templates/registration/registration_form.html
Normal file
19
app/templates/registration/registration_form.html
Normal file
@@ -0,0 +1,19 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %}Create Account{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h2>Create Account</h2>
|
||||
<p>Please fill in the following form.</p>
|
||||
|
||||
<form method="post" action=".">
|
||||
<table>
|
||||
{{ form }}
|
||||
{% csrf_token %}
|
||||
</table>
|
||||
<br />
|
||||
<input type="submit" value="{% trans "Create Account" %}" />
|
||||
</form>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user