Reorganise the file structure into a project tree

This commit is contained in:
2011-03-11 12:58:50 +00:00
parent 58b1691638
commit 3686aa7523
226 changed files with 7 additions and 5 deletions

34
app/templates/404.html Normal file
View File

@@ -0,0 +1,34 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="robots" content="nofollow" />
<title>Dredd.it: 404 (Page not found)</title>
<style type="text/css">
body { background: #151515 url('/static/img/b0rtb0rtb0rt.png') top left repeat-x; color: #fff; font-family: Verdana, Arial, sans-serif; font-size: 1.5em; text-align: center; }
a, a:hover, a:active, a:visited { color: #ea7500; }
.navigation ul, .navigation ul li { list-style: none; margin: 0; padding: 0; display: block; }
.navigation ul li { display: inline; margin: 0 1em; }
@media screen {
h1 { width: 415px; height: 230px; margin: 120px auto 40px auto; }
h1 a { display: block; width: 415px; height: 230px; background: transparent url('/static/img/404.png') top left no-repeat; text-indent:100000px; white-space:nowrap; overflow: hidden; }
}
</style>
</head>
<body>
<h1><a href="http://dredd.it">Dredd.it: 404 (Page not found)</a></h1>
<div class="navigation">
<ul>
<li><a href="http://forum.dredd.it">forum</a></li>
<li><a href="http://killedby.dredd.it">killboard</a></li>
<li><a href="http://wiki.dredd.it">wiki</a></li>
<li><a href="http://reddit.com/r/evedreddit">reddit</a></li>
</ul>
</div>
</body>
</html>

3
app/templates/500.html Normal file
View File

@@ -0,0 +1,3 @@
<img src="/static/img/ganked.jpg">
<p>Oops, it seems the server got ganked, CONCORD have been informed.</p>

View File

@@ -0,0 +1,19 @@
{% extends "base.html" %}
{% block title %}External Service Account Password Reset{% endblock %}
{% block content %}
<p>This service will reset your password for account {{ acc.service_uid }} on {{ acc.service }}. If you wish to continue please click the link
below.</p>
<form action="{% url sso.views.service_reset serviceid %}" method="post">
<table>
{{ form.as_table }}
{% csrf_token %}
</table>
<br />
<input type="submit" value="Reset Account" />
</form>
{% endblock %}

53
app/templates/base.html Normal file
View File

@@ -0,0 +1,53 @@
{% load installed %}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang="en">
<head>
<title>TEST Auth</title>
<link rel="stylesheet" href="/static/css/style.css" type="text/css" media="screen">
{% block HeadTag %}{% endblock %}
</head>
<body>
<div id="container">
<div id="header">
<h1>TEST Auth Gateway - {% block title %}{% endblock %}</h1>
</div>
<div id="navigation">
<ul>
{% if request.user %}
<li><a href="{% url sso.views.profile %}">Profile</a></li>
{% if "groups"|installed %}
<li><a href="{% url groups.views.group_list %}">Groups</a></li>
{% endif %}
{% if "hr"|installed %}
<li><a href="{% url hr.views.index %}">HR</a></li>
{% endif %}
<li><a href="{% url eve_api.views.eveapi_character %}">Characters</a></li>
{% if request.user.is_staff %}
<li><a href="{% url sso.views.user_lookup %}">Lookup User</a></li>
<li><a href="/admin/">Admin</a></li>
{% endif %}
<li><a href="{% url django.contrib.auth.views.logout %}">Logout</a></li>
{% else %}
<li><a href="{% url django.contrib.auth.views.login %}">Login</a></li>
{% endif %}
</ul>
</div>
<div id="content">
{% if messages %}
<ul id="messagelist">
{% for message in messages %}
<li>{{ message }}</li>
{% endfor %}
</ul>
{% endif %}
{% block content %}{% endblock %}
</div>
<div id="footer">
&nbsp;
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,14 @@
{% extends "base.html" %}
{% block title %}Create a Membership Request{% endblock %}
{% block content %}
<p>Please fill in a reason why you like to be a member of this group and any supporting evidence as requested by the group adminship</p>
<form action="{% url groups.views.create_request groupid %}" method="post">
<table>
{{ form.as_table }}
</table>
<input type="submit" value="Create Request" />
</form>
{% endblock %}

View File

@@ -0,0 +1,45 @@
{% extends "base.html" %}
{% block content %}
<h2>{{ group.name }}</h2>
<h3>Members</h3>
{% if group.user_set.all %}
<table>
<tr><th>Member Username</th><th>Characters</th><th>Status</th><th>Actions</th></tr>
{% for user, chars, status in member_list %}
<tr><td><a href="{% url sso.views.user_view user.username %}">{{ user.username }}</a></td>
<td>{{ chars }}</td>
<td>{{ status }}</td>
<td><a href="{% url groups.views.kick_member group.id user.id %}">Kick Member</a>
{% if request.user.is_superuser %}&nbsp;<a href="{% url groups.views.promote_member group.id user.id %}">Toggle Admin</a>{% endif %}</td>
</tr>
{% endfor %}
</table>
{% else %}
<b>This group has no members</b>
{% endif %}
<h3>Membership Requests</h3>
{% if requests %}
<table>
<tr><th>Username</th><th>Reason</th><th>Status</th><th>Created Date</th><th>Actions</th></tr>
{% for req in requests %}
<tr><td><a href="{% url sso.views.user_view req.user.username %}">{{ req.user }}</a></td>
<td>{{ req.reason }}</td>
<td>{{ req.get_status_description }}</td>
<td>{{ req.created_date }}</td>
<td><a href="{% url groups.views.accept_request req.id %}">Accept</a>&nbsp;
<a href="{% url groups.views.reject_request req.id %}">Reject</a></td>
</tr>
{% endfor %}
</table>
{% else %}
<b>This group has no outstanding requests</b>
{% endif %}
{% endblock %}

View File

@@ -0,0 +1,26 @@
{% extends "base.html" %}
{% block content %}
<h1>Groups List</h1>
<p>This is the list of your current groups, and groups you can request to be a member of.</p>
<table>
{% if group_list %}
<tr><th>Group Name</th><th>Description</th><th>Status</th><th>Actions</th></tr>
{% for id, group, description, status, requestable, fixed, pending in group_list %}
<tr><td>{{ group }}</td>
<td>{{ description }}</td>
<td>{% if pending %}Request Pending{% else %}{% if status %}{{ status }}{% endif %}{% endif %}</td>
<td>{% ifequal status None %}{% if requestable %}<a href="{% url groups.views.create_request id %}">Request Membership</a>{% endif %}{% endifequal %}
{% if not fixed and status %}<a href="{% url groups.views.kick_member id request.user.id %}">Leave</a>&nbsp;{% endif %}
{% if status == 'Admin' or request.user.is_superuser %}{% if not fixed %}<a href="{% url groups.views.admin_group id %}">Admin</a>{% endif %}{% endif %}</td>
</tr>
{% endfor %}
</table>
{% else %}
<b>No groups are available.</b>
{% endif %}
{% endblock %}

View File

12
app/templates/off.html Normal file
View File

@@ -0,0 +1,12 @@
<html>
<head>
<title>Auth is down</title>
</head>
<body>
<center><p><img src="/static/img/shutdown.jpg" /></p>
<p>Auth is down, Matalok is probably breaking something</p></center>
</body>
</html>

View File

@@ -0,0 +1,19 @@
{% extends "base.html" %}
{% block title %}OAuth Access Authorization{% endblock %}
{% block content %}
<h1>Access Authorization</h1>
<p>You have come here because you are in the process of allowing a external application to access your private Auth data. If you are not, then please close this window. Otherwise, please confirm below if you wish to give access to your private Auth data. This can be revoked at any time from the main Auth panel.</p>
<form action="{% url piston.authentication.oauth_user_auth %}" method="POST">
<table>
{{ form.as_table }}
</table>
{% csrf_token %}
<button type="submit">Confirm</button>
</form>
{% endblock %}

View 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 %}

View 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

View File

@@ -0,0 +1 @@
Dreddit Auth Gateway Account Validation

View 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 %}

View 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 %}

View 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 %}

View 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 %}

View 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 %}

View File

@@ -0,0 +1,19 @@
{% extends "base.html" %}
{% block title %}External Auth API Services Password Reset{% endblock %}
{% block content %}
<p>This service will reset your password for all External Auth API Services. If you wish to continue please enter a new
password below.</p>
<form action="{% url sso.views.set_apipasswd %}" method="post">
<table>
{{ form.as_table }}
</table>
<br />
{% csrf_token %}
<input type="submit" value="Reset Account" />
</form>
{% endblock %}

View File

@@ -0,0 +1,8 @@
<html>
<head><title>Dredd.it Auth Gateway</title></head>
<body bgcolor="#2F383D" link="#ffffff" vlink="#ffffff">
<center><img src="/static/img/dreddit_logo.jpg"><br/>
<a color="white" href="{% url registration.auth_login %}">Login</a></center>
</body>
</html>

View File

@@ -0,0 +1,15 @@
{% extends "base.html" %}
{% block title %}User Lookup List{% endblock %}
{% block content %}
<p>More than one user was found matching your criteria:</p>
<ul>
{% for user in users %}
<li><a href="{% url sso.views.user_view user.username %}">{{ user.username }}</a></li>
{% endfor %}
</ul>
{% endblock %}

View File

@@ -0,0 +1,113 @@
{% extends "base.html" %}
{% load naturaltimediff %}
{% load installed %}
{% block content %}
<h1>{{user.username}}'s Profile</h1>
<b>Username:</b> {{ user.username }}<br/>
<b>Email:</b> {{ user.email }}<br/>
<b>Groups:</b> {{ user.groups.all|join:", " }}<br/>
<a href="{% url sso.views.refresh_access user.id %}">Update Access</a><br/>
{% if is_admin %}
<br/>
<h2>Service Accounts</h2>
{% if services %}
<table>
<tr><th>Service</th><th>Username</th><th>Active</th></tr>
{% for acc in services %}
<tr><td>{{ acc.service }}</td>
<td>{{ acc.service_uid }}</td>
<td>{% if acc.active %}Yes{% else %}No{% endif %}</td>
</tr>
{% endfor %}
</table>
{% endif %}
<br/>
{% if user.application_set.all %}
<h2>Applications</h2>
<table>
<tr><th>ID</th><th>Character</th><th>Applied To</th><th>Status</th></tr>
{% for app in user.application_set.all %}
<tr><td><a href="{% url hr.views.view_application app.id %}">{{ app.id }}</a></td>
<td>{{ app.character }}</td>
<td>{{ app.corporation }}</td>
<td>{{ app.get_status_display }}</td></tr>
{% endfor %}
</table>
{% endif %}
{% if user.recommendation_set.all %}
<br />
<h2>Recommendations</h2>
<table>
<tr><th>Recommended Application</th><th>Recommendation Character</th><th>Recommendation Date</th></tr>
{% for rec in user.recommendation_set.all %}
<tr><td><a href="{% url hr.views.view_application rec.application.id %}">{{ rec.application.character.name }}</a></td>
<td>{{ rec.user_character }}</td>
<td>{{ rec.recommendation_date }}</td></tr>
{% endfor %}
</table>
{% endif %}
<br/>
<h2>Eve API Keys</h2>
{% if user.eveaccount_set.all %}
<table>
<thead>
<tr><th>User ID</th><th>API Key</th><th>Description</th><th>Type</th><th>Active</th><th>Last Updated</th></tr>
</thead>
<tbody>
{% for acc in user.eveaccount_set.all %}
<tr><td>{{ acc.api_user_id }}</td>
<td>{{ acc.api_key }}</td>
<td>{{ acc.description }}</td>
<td>{{ acc.get_api_keytype_display }}</td>
<td>{{ acc.get_api_status_display }}</td>
<td>{{ acc.api_last_updated|naturaltimediff }}</td>
</tr>
</tbody>
{% endfor %}
</table>
{% endif %}
<br/>
{% if user.eveaccount_set.all %}
<table>
<tr><th>Character Name</th><th>Corp</th></tr>
{% for acc in user.eveaccount_set.all %}
<tr><th colspan=2>Account {{ acc.api_user_id }}</th></tr>
{% for char in acc.characters.all %}
<tr><td><a href="{% url eve_api.views.eveapi_character char.id %}">{{ char.name }}</a></td>
<td>{{ char.corporation }}</td>
</tr>
{% endfor %}
{% endfor %}
</table>
{% endif %}
{% if "reddit"|installed %}
<br/>
<h2>Reddit Accounts</h2>
{% if user.redditaccount_set.all %}
<table>
<thead>
<tr><th>Username</th><th>Created Date</th><th>Validated</th></tr>
</thead>
<tbody>
{% for acc in user.redditaccount_set.all %}
<tr><td><a href="http://reddit.com/user/{{ acc.username }}/">{{ acc.username }}</a></td>
<td>{{ acc.date_created }}</td>
<td>{% if acc.validated %}Yes{% else %}No{% endif %}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{% endif %}
{% endif %}
{% endblock %}

View File

@@ -0,0 +1,13 @@
{% extends "base.html" %}
{% block title %}User Lookup{% endblock %}
{% block content %}
<form action="{% url sso.views.user_lookup %}" method="post">
<table>
{{ form.as_table }}
</table>
<br />
<input type="submit" value="Lookup" />
</form>
{% endblock %}

View File

@@ -0,0 +1,152 @@
{% extends "base.html" %}
{% load naturaltimediff %}
{% load installed %}
{% block title %}Your Profile{% endblock %}
{% block content %}
<script type="text/javascript" src="/media/js/jquery.min.js"></script>
<script type="text/javascript">
function refresh_apikey(key) {
$("#api-status-" + key).html("<center><img src='/static/img/spinner.gif'/></center>");
$("#api-time-" + key).html("<center><img src='/static/img/spinner.gif'/></center>");
$.getJSON("/eve/eveapi/refresh/" + key + "/", function(json) {
$("#api-time-" + json[0].fields.api_user_id).html("a moment ago");
switch(json[0].fields.api_status) {
case 0:
$("#api-status-" + json[0].fields.api_user_id).html("Unknown");
break;
case 1:
$("#api-status-" + json[0].fields.api_user_id).html("OK");
break;
case 2:
$("#api-status-" + json[0].fields.api_user_id).html("Other Error");
break;
case 3:
$("#api-status-" + json[0].fields.api_user_id).html("Account Expired");
break;
default:
$("#api-status-" + json[0].fields.api_user_id).html("Error");
break;
}
});
}
</script>
<h1>Your Profile</h1>
<p>
<b>Username:</b> {{ user.username }}<br/>
<b>Email:</b> {{ user.email }}<br/>
<b>Groups:</b> {{ user.groups.all|join:", " }}<br/>
<a href="{% url sso.views.refresh_access %}">Update Access</a><br/>
</p>
<h2>External API Auth Services</h2>
<p>To reset your External API Auth Services password, which is used to access tools and websites which use Auth's API, click the link below</p>
<p><a href="{% url sso.views.set_apipasswd %}">Reset External API Auth Services Password</a></p>
{% if user.eveaccount_set.all %}
<h2>External non-API Service Accounts</h2>
<p>This is a list of all your current non-api external service accounts, to
create a login for a service click the Add Service link</p>
{% if user.serviceaccount_set.all %}
<table>
<thead>
<tr><th>Service</th><th>Username</th><th>URL</th><th>Active</th><th>Actions</th></tr>
</thead>
<tbody>
{% for acc in user.serviceaccount_set.all %}
<tr><td>{{ acc.service }}</td>
<td>{{ acc.service_uid }}</td>
<td><a href="{{ acc.service.url }}">{{ acc.service.url }}</a></td>
<td>{% if acc.active %}Yes{% else %}No{% endif %}</td>
<td>
{% if acc.active %}
{% if acc.service.settings.require_password %}<a href="{% url sso.views.service_reset acc.id %}">Reset</a>&nbsp;/&nbsp;{% endif %}
<a href="{% url sso.views.service_del acc.id %}">Delete</a>
{% if acc.service.provide_login %}
&nbsp;/&nbsp;<a href="{% url sso.views.service_login acc.id %}">Login</a>
{% endif %}
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
<p>
<a href="{% url sso.views.service_add %}">Add Service</a>
</p>
<br/>
{% endif %}
<h2>Eve API Keys</h2>
<p>Adding an Eve API key will allow you to access any services allowed for your
corporation. Limited keys are accepted for service validation. API keys
are stored for on-going authentication. As the assigned owner of a key you may
remove them at any time, but this may affect any existing services you have
setup.</p>
{% if user.eveaccount_set.all %}
<table>
<thead>
<tr><th>User ID</th><th>API Key</th><th>Description</th><th>Type</th><th>Active</th><th>Last Updated</th><th>Actions</th></tr>
</thead>
<tbody>
{% for acc in user.eveaccount_set.all %}
<tr><td>{{ acc.api_user_id }}</td>
<td>{{ acc.api_key }}</td>
<td>{{ acc.description }}</td>
<td>{{ acc.get_api_keytype_display }}</td>
<td id="api-status-{{ acc.api_user_id }}">{{ acc.get_api_status_display }}</td>
<td id="api-time-{{ acc.api_user_id }}">{{ acc.api_last_updated|naturaltimediff }}</td>
<td><a href="javascript:refresh_apikey({{ acc.api_user_id }})">Refresh</a>,&nbsp;
<a href="{% url eve_api.views.eveapi_log acc.api_user_id %}">Logs</a>,&nbsp;
<a href="{% url eve_api.views.eveapi_del acc.api_user_id %}">Delete</a></td>
</tr>
</tbody>
{% endfor %}
</table>
{% endif %}
<p>
<a href="{% url eve_api.views.eveapi_add %}">Add a Eve API key</a>
</p>
<br/>
{% if "reddit"|installed %}
<h2>Reddit Accounts</h2>
<p>This is a list of all your current linked Reddit accounts</p>
{% if user.redditaccount_set.all %}
<p>To validate your Reddit account, login on Reddit then click the link next to the account, fill in some text in the message and click send.</p>
<table>
<thead>
<tr><th>Username</th><th>Created Date</th><th>Validated</th></tr>
</thead>
<tbody>
{% for acc in user.redditaccount_set.all %}
<tr><td>{{ acc.username }}</td>
<td>{{ acc.date_created }}</td>
<td>{% if acc.validated %}Yes{% else %}No (<a href="http://www.reddit.com/message/compose/?to=DredditVerification&subject=Validation%3a%20{{user.username}}" target="_blank">Validate</a>){% endif %}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
<p>
<a href="{% url reddit.views.reddit_add %}">Add a Reddit account</a>
</p>
{% endif %}
<p>If you encounter any errors during using this service, copy the massive
error message into <a href="http://pastebin.com/">Pastebin</a> and give
Matalok/Aevum Decessus a good kicking on IRC/Jabber/Email or on the Forums.</p>
{% endblock %}

View File

@@ -0,0 +1,25 @@
{% extends "base.html" %}
{% block title %}Add External Service Account{% endblock %}
{% block content %}
<p>To add a service to your account, select the service from the list
below
then provide select a username you wish to use create the account for<br/>
<br/>
For details on how to connect to each service, please consult the <a
href="http://wiki.dredd.it">wiki</a></p>
<p>If you are missing some services, please check that your API key is
up to date, if so use the "Refresh" function.</p>
<form action="{% url sso.views.service_add serviceid %}" method="post">
<table>
{{ form.as_table }}
</table>
<br />
<input type="submit" value="Create Account" />
{% csrf_token %}
</form>
<br/>
{% endblock %}

View File

@@ -0,0 +1,25 @@
{% extends "base.html" %}
{% block title %}External Service Account{% endblock %}
{% block content %}
{% if error %}
<div style="border: 1px solid #FF0000; background: #FF7D7D; width: 100%; text-align: center;">
<b>Error:</b> Your account has not been created. Either you already have a user on this service or a error has occured. If you think
this is incorrect please raise a bug on the tracker.
</div>
{% else %}
<p>Your account on {{ acc.service }} has been created. Your login details are as follows:</p>
<table>
<tr><td>Service:</td><td>{{ acc.service.name }}</td></tr>
<tr><td>Service URL:</td><td><a href="{{ acc.service.url }}">{{ acc.service.url }}</a></td></tr>
{% for key,value in ret.items %}
<tr><td>{{ key|title }}:</td><td>{{ value|safe }}</td></tr>
{% endfor %}
</table>
<p><a href="{% url sso.views.profile %}">Return to your profile page</a></p>
{% endif %}
{% endblock %}

View File

@@ -0,0 +1,17 @@
{% extends "base.html" %}
{% block title %}External Service Account{% endblock %}
{% block content %}
<p><b>Warning</b>: This will delete your account on {{ acc.service.name }}, you will no longer be able to login and in some situtations unable to
create a new account until fixed by a Sysop. If you are having issues logging in then please <b>use the password reset function first!</b></p>
<p>If you are sure, then please click confirm</p>
<form action="{% url sso.views.service_del acc.id %}" method="post">
{% csrf_token %}
<input name="confirm-delete" type="hidden" value="1"/>
<input type="submit" value="Confirm Delete" />
</form>
{% endblock %}

View File

@@ -0,0 +1,25 @@
{% extends "base.html" %}
{% block title %}Add External Service Account{% endblock %}
{% block content %}
<p>To add a service to your account, select the service from the list
below
then provide select a username you wish to use create the account for<br/>
<br/>
For details on how to connect to each service, please consult the <a
href="http://wiki.dredd.it">wiki</a></p>
<p>If you are missing some services, please check that your API key is
up to date, if so use the "Refresh" function.</p>
<form action="{% url sso.views.service_add %}" method="post">
<table>
{{ form.as_table }}
</table>
<br />
<input type="submit" value="Create Account" />
{% csrf_token %}
</form>
<br/>
{% endblock %}

View File

@@ -0,0 +1,13 @@
{% extends "base.html" %}
{% block title %}External Service Account{% endblock %}
{% block content %}
<p>You have no services available to add to your account</p>
<p>If this is unexpected, please check that your API key is correct. If
you have recently joined a corporation, then please use the "Refresh"
option on your API key</p>
<p><a href="{% url sso.views.profile %}">Return to your Profile</a></p>
{% endblock %}

View File

@@ -0,0 +1,18 @@
{% extends "base.html" %}
{% block title %}External Service Account Password Reset{% endblock %}
{% block content %}
<p>This service will reset your password for account {{ acc.service_uid }} on {{ acc.service }}. If you wish to continue please click the link
below.</p>
<form action="{% url sso.views.service_reset serviceid %}" method="post">
<table>
{{ form.as_table }}
</table>
{% csrf_token %}
<input type="submit" value="Reset Account" />
</form>
{% endblock %}

View File

@@ -0,0 +1,21 @@
{% extends "base.html" %}
{% block title %}External Service Account{% endblock %}
{% block content %}
{% if error %}
<div style="border: 1px solid #FF0000; background: #FF7D7D; width: 100%; text-align: center;">
<b>Error:</b> A error occured resetting your account. Please raise a issue with the Web Team
</div>
{% else %}
<p>Your account on {{ acc.service }} has been reset. Your login details are as follows:</p>
<table>
<tr><td>Username:</td><td>{{ acc.service_uid }}</td></tr>
<tr><td>Password:</td><td>{{ passwd }}</td></tr>
</table>
<p><a href="{% url sso.views.profile %}">Return to your profile page</a></p>
{% endif %}
{% endblock %}