Cleanup of the Reddit app, now uses Class views

This commit is contained in:
2011-09-09 14:20:13 +01:00
parent 0b6d97e2f6
commit 8f914a98ac
7 changed files with 102 additions and 56 deletions

View File

@@ -0,0 +1,19 @@
{% extends "base.html" %}
{% block title %}Add Reddit Account{% endblock %}
{% block content %}
<h1>Add Reddit Account</h1>
<p>This will bind a Reddit account to your Auth Gateway login, this is usually required for application to the
corporation</p>
<p>Please note, you will be forever tied to this account and posts and comments made on this account will be checked
on from time to time</p>
<form action="{% url reddit-addaccount %}" method="post">
<table>
{{ form.as_table }}
</table>
{% csrf_token %}
<br />
<input type="submit" value="Add Account" />
</form>
{% endblock %}

View File

@@ -0,0 +1,12 @@
{% extends "base.html" %}
{% block title %}Delete Reddit Account{% endblock %}
{% block content %}
<h1>Delete Reddit Account</h1>
<p>Do you wish to delete the Reddit account {{ account.username }} from Auth?</p>
<form action="{% url reddit-delaccount account.id %}" method="post">
<input type="submit" value="Delete Account" />
{% csrf_token %}
</form>
{% endblock %}