mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-23 22:59:30 +00:00
Cleanup of the Reddit app, now uses Class views
This commit is contained in:
19
app/reddit/templates/reddit/add.html
Normal file
19
app/reddit/templates/reddit/add.html
Normal 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 %}
|
||||
12
app/reddit/templates/reddit/delete.html
Normal file
12
app/reddit/templates/reddit/delete.html
Normal 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 %}
|
||||
Reference in New Issue
Block a user