Added delete confirmation for services. Generally cleanup of service views

This commit is contained in:
2010-03-23 10:49:12 +00:00
parent 596cc0bab4
commit fa4a084292
3 changed files with 39 additions and 18 deletions

View File

@@ -9,13 +9,13 @@
this is incorrect please raise a bug on the tracker.
</div>
{% else %}
<p>Your account on {{ account.service }} has been created. Your login details are as follows:</p>
<p>Your account on {{ acc.service }} has been created. Your login details are as follows:</p>
<table>
<tr><td>Service:</td><td>{{ account.service.name }}</td></tr>
<tr><td>Service URL:</td><td><a href="{{ account.service.url }}">{{ account.service.url }}</a></td></tr>
<tr><td>Username:</td><td>{{ account.service_uid }}</td></tr>
<tr><td>Password:</td><td>{{ account.password }}</td></tr>
<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>
<tr><td>Username:</td><td>{{ acc.service_uid }}</td></tr>
<tr><td>Password:</td><td>{{ acc.password }}</td></tr>
</table>
<p><b>Warning:</b> You password is random, please either note it down or once logged into the service change it to something you

View File

@@ -0,0 +1,16 @@
{% 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="/profile/del/service/{{ acc.id }}/" method="post">
<input name="confirm-delete" type="hidden" value="1"/>
<input type="submit" value="Confirm Delete" />
</form>
{% endblock %}