{% extends "admin/change_form.html" %} {% load i18n static %} {% block stylesheets %} {{ block.super }} {% endblock %} {% block javascripts %} {{ block.super }} {{ gte_i18n|json_script:"gte-i18n" }} {{ gte_sources|json_script:"gte-sources" }} {{ gte_prop_types|json_script:"gte-prop-types" }} {{ gte_font_picker|json_script:"gte-font-picker" }} {% endblock %} {# grappelli.cleanInputTypes() turns color/range/number inputs into text inputs; the editor needs them. #} {% block js_clean_input_types %}{% endblock %} {% block object-tools-items %} {% if original and not revert and not recover %} {% if original.is_site_default %}
  • ★ {% translate "Site default" %}
  • {% elif gte_privileged and original.is_shared %}
  • {% csrf_token %}
  • {% endif %} {% if gte_trying == original.pk %}
  • {% csrf_token %}
  • {% else %}
  • {% csrf_token %}
  • {% endif %}
  • {% translate "Export" %}
  • {% endif %} {{ block.super }} {% endblock %} {% block form_top %} {% if revert %}

    ↺ {% translate "This is an older version of the theme, shown in the live preview. Press Save to restore it." %}

    {% elif recover %}

    ↺ {% translate "This is a deleted theme. Press Save to recover it." %}

    {% endif %} {% endblock %} {% block field_sets %} {{ block.super }} {% if add or has_change_permission %}
    {# Simple mode: seed colours #}

    {% translate "Pick a few base colours; every other colour of the admin is derived from them. Empty = Grappelli's colour. Dark mode follows the light accent colours automatically unless you set them." %}

    {% for seed in gte_seeds %} {% endfor %}
    {% translate "Light mode" %}{% translate "Dark mode" %}
    {{ seed.label }} {% include "grappelli_theme_editor/editor/color_input.html" with kind="seed" key=seed.key mode="light" default=seed.light %} {% include "grappelli_theme_editor/editor/color_input.html" with kind="seed" key=seed.key mode="dark" default=seed.dark auto=seed.derive_dark %}
    {# Components: shapes, shadows, bars #} {# Icons & labels #} {# Fonts & global scales: the model fields are moved here by editor.js #} {# Advanced: every --grp-* token #} {# Load parts from another theme #}
    {% else %}

    {% url 'grappelli_theme_editor:my-theme' as me_url %}{% blocktranslate %}This is a shared theme. To change it for yourself, use “Customise a copy” on the Appearance page.{% endblocktranslate %}

    {% endif %} {% endblock %}