2020-05-06 13:25:17 -04:00
|
|
|
{% extends 'users/base.html' %}
|
2020-04-24 09:23:58 -04:00
|
|
|
{% load helpers %}
|
|
|
|
|
|
|
|
{% block title %}User Preferences{% endblock %}
|
|
|
|
|
|
|
|
{% block usercontent %}
|
2020-04-24 10:29:06 -04:00
|
|
|
{% if preferences %}
|
|
|
|
<form method="post" action="">
|
|
|
|
{% csrf_token %}
|
|
|
|
<table class="table table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th><input type="checkbox" class="toggle" title="Toggle all"></th>
|
|
|
|
<th>Preference</th>
|
|
|
|
<th>Value</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for key, value in preferences.items %}
|
|
|
|
<tr>
|
|
|
|
<td class="min-width"><input type="checkbox" name="pk" value="{{ key }}"></td>
|
2020-05-06 13:25:17 -04:00
|
|
|
<td><samp>{{ key }}</samp></td>
|
|
|
|
<td><samp>{{ value }}</samp></td>
|
2020-04-24 10:29:06 -04:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<button type="submit" class="btn btn-danger">
|
2020-11-06 14:49:14 -05:00
|
|
|
<span class="mdi mdi-trash-can-outline" aria-hidden="true"></span> Clear Selected
|
2020-04-24 10:29:06 -04:00
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
{% else %}
|
|
|
|
<h3 class="text-muted text-center">No preferences found</h3>
|
|
|
|
{% endif %}
|
2020-04-24 09:23:58 -04:00
|
|
|
{% endblock %}
|