{% extends 'users/base.html' %} {% load helpers %} {% load form_helpers %} {% block title %}User Preferences{% endblock %} {% block content %}
{% csrf_token %} {# Built-in preferences #} {% for group, fields in form.fieldsets %}
{{ group }}
{% for name in fields %} {% render_field form|getfield:name %} {% endfor %}
{% endfor %} {# Plugin preferences #} {% with plugin_fields=form.plugin_fields %} {% if plugin_fields %}
Plugins
{% for name in plugin_fields %} {% render_field form|getfield:name %} {% endfor %}
{% endif %} {% endwith %} {# Table configurations #}
Table Configurations
{% if request.user.config.data.tables %}
{% for table, prefs in request.user.config.data.tables.items %} {% endfor %}
Table Ordering Columns
{{ table }} {{ prefs.ordering|join:", "|placeholder }} {{ prefs.columns|join:", "|placeholder }}
{% else %}

None found

{% endif %}
Cancel
{% endblock %}