{% extends "admin/dj_control_room/base.html" %} {% load i18n static dcr_icons %} {% block panel_content %}
{# Page header — icon, name, status badge, description, open button #}
{% dcr_icon panel.icon %}

{{ panel.name }}

{% if is_configured %} {% trans "INSTALLED" %} {% elif is_installed %} {% trans "SETUP" %} {% else %} {% trans "NOT INSTALLED" %} {% endif %}

{{ panel.description }}

{% if is_configured and panel_url %} {% endif %}
{# Features — only shown when panel metadata includes a features list #} {% if panel.features %}

{% trans "What's included" %}

{% for feature in panel.features %}
{% include "admin/dj_control_room/partials/icon_check.html" with stroke="var(--dcr-color-success)" stroke_width="2.5" svg_class="dcr-flex-none dcr-feature-icon" %} {{ feature }}
{% endfor %}
{% endif %} {# Installation steps #}

{% trans "Installation" %}

    {# Step 1 — pip install #}
  1. {% if is_installed %}{% include "admin/dj_control_room/partials/icon_check.html" %}{% else %}1{% endif %}

    {% trans "Install the package" %}

    {% trans "Add the panel to your project via pip." %} pip install {{ panel.package }}
  2. {# Step 2 — INSTALLED_APPS #}
  3. {% if is_in_installed_apps %}{% include "admin/dj_control_room/partials/icon_check.html" %}{% else %}2{% endif %}

    {% trans "Add to INSTALLED_APPS" %}

    {% trans "Register the app in your Django settings." %} INSTALLED_APPS = [ # ... "{{ panel_app_name }}", ]
  4. {# Step 3 — URLs #}
  5. {% if panel_url %}{% include "admin/dj_control_room/partials/icon_check.html" %}{% else %}3{% endif %}

    {% trans "Add URLs to urls.py" %}

    {% trans "Wire up the panel's URL routes." %} urlpatterns = [ # ... path("{{ panel_url_prefix }}/", include("{{ panel_app_name }}.urls")), ]
  6. {# Step 4 — Restart #}
  7. {% if is_configured %}{% include "admin/dj_control_room/partials/icon_check.html" %}{% else %}4{% endif %}

    {% trans "Restart & visit the admin" %}

    {% blocktrans with name=panel.name %}Restart your Django server and navigate to the Control Room. {{ name }} will appear automatically.{% endblocktrans %}

{% if panel.docs_url %}
{% trans "View full documentation" %} ↗
{% endif %}
{% block panel_scripts %} {% endblock %} {% endblock panel_content %}