{% extends "cms/admin_home.html" %} {% load i18n sekizai_tags crispy_forms_tags admin_static %} {% block extra_js %} {% addtoblock "js" %} {% endaddtoblock %} {# Needed to get the admin success page autocomplete to function #} {% if section.name == "general" or section.name == "registration" %} {% addtoblock "js" %} {% endaddtoblock %} {% endif %} {% endblock %} {% block extra_css %} {% addtoblock "css" %} {% endaddtoblock %} {% endblock %} {% block content %}

{% trans "Site Settings" %}{% if section %}: {{ section.verbose_name }}{% endif %}

{% include "dynamic_preferences/sections_bootstrap.html" with sections=registry.sections %}

{% if section %}
{% csrf_token %} {{ form|crispy }}
{% addtoblock "js" %} {{ form.media }} {% endaddtoblock %} {% endif %} {# Autocomplete for currency codes and symbols #} {% if section.name == 'general' %} {% addtoblock "js" %} {% endaddtoblock %} {% endif %} {% endblock %}