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

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