diff options
author | James Taylor <user234683@users.noreply.github.com> | 2020-10-22 15:00:06 -0700 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2020-10-22 15:00:06 -0700 |
commit | 9f1b69d22f6ad691a3c679d6fdda5d4cae1369a4 (patch) | |
tree | 2bfab77b4df9daa8da88c0ca13f296f1103456ce /youtube | |
parent | 5f4884dce8e3eb3215ee8b97469a741310669083 (diff) | |
download | yt-local-9f1b69d22f6ad691a3c679d6fdda5d4cae1369a4.tar.lz yt-local-9f1b69d22f6ad691a3c679d6fdda5d4cae1369a4.tar.xz yt-local-9f1b69d22f6ad691a3c679d6fdda5d4cae1369a4.zip |
Organize settings into categories
Diffstat (limited to 'youtube')
-rw-r--r-- | youtube/templates/settings.html | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/youtube/templates/settings.html b/youtube/templates/settings.html index 5d1df5f..19817dd 100644 --- a/youtube/templates/settings.html +++ b/youtube/templates/settings.html @@ -27,8 +27,10 @@ {% block main %} <form method="POST" class="settings-form"> - <ul class="settings-list"> - {% for setting_name, setting_info, value in settings %} + {% for categ in categories %} + <h2>{{ categ|capitalize }}</h2> + <ul class="settings-list"> + {% for setting_name, setting_info, value in settings_by_category[categ] %} {% if not setting_info.get('hidden', false) %} <li class="setting-item"> {% if 'label' is in(setting_info) %} @@ -59,7 +61,8 @@ </li> {% endif %} {% endfor %} - </ul> + </ul> + {% endfor %} <input type="submit" value="Save settings"> </form> {% endblock main %} |