mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Updated templates
This commit is contained in:
@@ -3,19 +3,6 @@
|
||||
{% block title %}Blacklist User{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
function confirmPost()
|
||||
{
|
||||
var agree=confirm("Are you sure you want to blacklist {{ u.username }}?");
|
||||
if (agree)
|
||||
return true ;
|
||||
else
|
||||
return false ;
|
||||
}
|
||||
// -->
|
||||
</script>
|
||||
|
||||
<p>This form will blacklist the listed user below. It'll process all entries for the user and blacklist the following:</p>
|
||||
<ul>
|
||||
<li>EVE API Keys</li>
|
||||
@@ -24,12 +11,12 @@ return false ;
|
||||
<li>Reddit Accounts</li>
|
||||
</ul>
|
||||
|
||||
<form action="" method="post">
|
||||
<form action="{% url hr.views.blacklist_user u.id %}" method="post">
|
||||
<table>
|
||||
<tr><th><label>User:</label></th><td>{{ u.username }}</td></tr>
|
||||
{{ form.as_table }}
|
||||
</table>
|
||||
{% csrf_token %}
|
||||
<input type="submit" value="Blacklist" onClick="return confirmPost()" />
|
||||
<input type="submit" value="Blacklist" />
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user