implement admin panel
This commit is contained in:
@@ -30,12 +30,13 @@
|
||||
</form></td>
|
||||
<td><form method="POST" action="/update-user">
|
||||
<input type="hidden" name="userid" value="{{ user["userid"] }}" />
|
||||
<input type="checkbox" name="is_admin" value="true" {% if user["is_admin"] %}checked{% endif %} />
|
||||
<button type="submit">update admin</button>
|
||||
<input type="hidden" name="is_admin" value="{% if user["is_admin"] %}false{% else %}true{% endif %}" />
|
||||
<input type="checkbox" disabled {% if user["is_admin"] %}checked{% endif %} />
|
||||
<button type="submit">toggle admin</button>
|
||||
</form></td>
|
||||
<td><form method="POST" action="/update-user">
|
||||
<input type="hidden" name="userid" value="{{ user["userid"] }}" />
|
||||
<input type="email" name="email" placeholder="email" />
|
||||
<input type="email" name="email" placeholder="email" value="{{ user["email"] }}"/>
|
||||
<button type="submit">update email</button>
|
||||
</form></td>
|
||||
<td><form method="POST" action="/delete-user">
|
||||
|
||||
Reference in New Issue
Block a user