Cleanup of templates to use {% url %} for locations, instead of using hardcoded locations

This commit is contained in:
2010-04-23 15:34:58 +01:00
parent c4631f3dbb
commit daaee6cc3c
22 changed files with 41 additions and 75 deletions

View File

@@ -18,7 +18,7 @@ this is incorrect please raise a bug on the tracker.
<tr><td>Password:</td><td>{{ acc.password }}</td></tr>
</table>
<p><a href="/profile">Return to your profile page</a></p>
<p><a href="{% url sso.views.profile %}">Return to your profile page</a></p>
{% endif %}
{% endblock %}

View File

@@ -8,7 +8,7 @@ create a new account until fixed by a Sysop. If you are having issues logging in
<p>If you are sure, then please click confirm</p>
<form action="/profile/del/service/{{ acc.id }}/" method="post">
<form action="{% url sso.views.service_del acc.id %}/" method="post">
<input name="confirm-delete" type="hidden" value="1"/>
<input type="submit" value="Confirm Delete" />
</form>

View File

@@ -8,7 +8,7 @@ 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>
<form action="/profile/add/service" method="post">
<form action="{% url sso.views.service_add %}" method="post">
<table>
{{ form.as_table }}
</table>

View File

@@ -5,5 +5,5 @@
{% block content %}
<p>You have no services available to add to your account</p>
<p><a href="/profile">Return to your Profile</a></p>
<p><a href="{% url sso.views.profile %}">Return to your Profile</a></p>
{% endblock %}

View File

@@ -7,7 +7,7 @@
<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="/profile/reset/service/{{ serviceid }}/" method="post">
<form action="{% url sso.views.service_reset serviceid %}/" method="post">
<table>
{{ form.as_table }}
</table>

View File

@@ -15,7 +15,7 @@
<tr><td>Password:</td><td>{{ passwd }}</td></tr>
</table>
<p><a href="/profile">Return to your profile page</a></p>
<p><a href="{% url sso.views.profile %}">Return to your profile page</a></p>
{% endif %}
{% endblock %}