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:
25
app/templates/sso/serviceaccount/add.html
Normal file
25
app/templates/sso/serviceaccount/add.html
Normal 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 %}
|
||||
25
app/templates/sso/serviceaccount/created.html
Normal file
25
app/templates/sso/serviceaccount/created.html
Normal 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 %}
|
||||
17
app/templates/sso/serviceaccount/deleteconfirm.html
Normal file
17
app/templates/sso/serviceaccount/deleteconfirm.html
Normal 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 %}
|
||||
|
||||
25
app/templates/sso/serviceaccount/index.html
Normal file
25
app/templates/sso/serviceaccount/index.html
Normal 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 %}
|
||||
13
app/templates/sso/serviceaccount/noneavailable.html
Normal file
13
app/templates/sso/serviceaccount/noneavailable.html
Normal 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 %}
|
||||
18
app/templates/sso/serviceaccount/reset.html
Normal file
18
app/templates/sso/serviceaccount/reset.html
Normal 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 %}
|
||||
21
app/templates/sso/serviceaccount/resetcomplete.html
Normal file
21
app/templates/sso/serviceaccount/resetcomplete.html
Normal 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 %}
|
||||
Reference in New Issue
Block a user