redoing admin a bit
parent
4c5a2bc1d6
commit
bd3661c063
@ -0,0 +1,37 @@
|
||||
{% extends 'includes/base.html' %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<h1>admins</h1>
|
||||
<p>
|
||||
Add a homie to be an admin. <br />
|
||||
Admins can manage other admins as well as hide artwork, <br />
|
||||
approve/reject artwork, ban artists, and verify artists.
|
||||
</p>
|
||||
<form method="post" action="">
|
||||
{{ admin_form.csrf_token }}
|
||||
<div class="row">
|
||||
<div class="two columns">
|
||||
{{ admin_form.handle }}
|
||||
</div>
|
||||
<div class="two columns">
|
||||
<input class="button-primary" type="submit" value="Submit">
|
||||
</div>
|
||||
</div>
|
||||
<ul>
|
||||
{%- for field, errors in admin_form.errors.items() %}
|
||||
<li>{{ ', '.join(errors) }}</li>
|
||||
{%- endfor %}
|
||||
</ul>
|
||||
</form>
|
||||
<ul>
|
||||
{% for admin in admins %}
|
||||
<li><h6>{{ admin.handle }} - <a href="?remove={{ admin.handle }}">remove</a></h6></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
@ -0,0 +1,36 @@
|
||||
{% extends 'includes/base.html' %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<h1>artists</h1>
|
||||
<p>
|
||||
Verified artists will skip the queue <br />
|
||||
and have their artwork displayed immediately.
|
||||
</p>
|
||||
<form method="post" action="">
|
||||
{{ artist_form.csrf_token }}
|
||||
<div class="row">
|
||||
<div class="two columns">
|
||||
{{ artist_form.handle }}
|
||||
</div>
|
||||
<div class="two columns">
|
||||
<input class="button-primary" type="submit" value="Submit">
|
||||
</div>
|
||||
</div>
|
||||
<ul>
|
||||
{%- for field, errors in artist_form.errors.items() %}
|
||||
<li>{{ ', '.join(errors) }}</li>
|
||||
{%- endfor %}
|
||||
</ul>
|
||||
</form>
|
||||
<ul>
|
||||
{% for artist in artists %}
|
||||
<li><h6>{{ artist.handle }} - <a href="?unverify={{ artist.handle }}">remove</a></h6></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
Loading…
Reference in New Issue