{% extends 'dlux/base.html' %} {% load static %} {% block title %}{{ DLUX_STRINGS.options_title }}{% endblock %} {% block extra_head %} {% include "dlux/forms/assets_head.html" %} {% endblock %} {% block content %}

{{ DLUX_STRINGS.options_title }}

{% if show_system_diagnostics or user.is_superuser %}

{{ DLUX_STRINGS.admin_panel_title|default:'Admin panel' }}

{{ DLUX_STRINGS.admin_panel_desc|default:'System status, updates, backups, and configuration.' }}

{% if show_system_diagnostics %}
{{ DLUX_STRINGS.system_info }}
{{ DLUX_STRINGS.storage }}
{{ disk_used }}GB / {{ disk_total }}GB
{{ DLUX_STRINGS.server_time }} {{ server_time_backend_display }}
{{ DLUX_STRINGS.python_version }} {{ python_version }}
{{ DLUX_STRINGS.django_version }} {{ django_version }}
{{ DLUX_STRINGS.admin_panel_more_details|default:'More system details' }}
{% if decrypter_version %} {% endif %} {% if drf_service %} {% endif %} {% if api_service %} {% endif %} {% if db_service %} {% endif %} {% if cache_service %} {% endif %} {% if email_service %} {% endif %} {% if celery_service %} {% endif %}
{{ DLUX_STRINGS.os_info }}: {{ os_info }}
{{ DLUX_STRINGS.decrypter_version }}: {{ decrypter_version }}
{{ DLUX_STRINGS.drf_version }}: {{ drf_service.version }}
{{ DLUX_STRINGS.api_status }}:
{{ api_service.label }}
{% if api_service.url %} {% endif %} {% if api_service.note %}
{{ api_service.note }}
{% endif %}
{{ DLUX_STRINGS.database }}:
{{ db_service.detail }} {{ db_service.label }}
{% if db_service.note %}
{{ db_service.note }}
{% endif %}
{{ DLUX_STRINGS.cache }}:
{{ cache_service.detail }} {{ cache_service.label }}
{% if cache_service.note %}
{{ cache_service.note }}
{% endif %}
{{ DLUX_STRINGS.email_label|default:"Email" }}:
{{ email_service.detail }}
{% if email_service.note %}
{{ email_service.note }}
{% endif %}
{{ DLUX_STRINGS.tasks }}:
{% if celery_service.detail %} {{ celery_service.detail }} {% endif %} {{ celery_service.label }}
{% if celery_service.note %}
{{ celery_service.note }}
{% endif %}
{{ DLUX_STRINGS.dlux_version }}
{{ DLUX_STRINGS.dlux_update_installed|default:'Installed' }}: v{{ dlux_update_state.active_version|default:version }} {{ DLUX_STRINGS.dlux_update_latest|default:'Latest verified' }}: {% if dlux_update_state.latest_version %}v{{ dlux_update_state.latest_version }}{% else %}—{% endif %}
{{ dlux_update_state.latest_reason }}
{{ DLUX_STRINGS.dlux_update_last_check|default:'Last check' }}:
{% if not dlux_update_state.enabled %}
{{ DLUX_STRINGS.dlux_update_disabled|default:'Inline updates are not enabled for this deployment.' }}
{% endif %} {% if can_manage_dlux_updates %}
{% endif %}
{% endif %} {% if user.is_superuser %}
{{ DLUX_STRINGS.sysbackup_title }}
{% with summary=system_backup_summary %}
{{ DLUX_STRINGS.sysbackup_last_backup }} {% if summary.latest_completed_backup and summary.latest_completed_backup.completed_at %} {{ summary.latest_completed_backup.completed_at|date:'Y-m-d H:i' }} {% elif summary.latest_backup %} {{ summary.latest_backup.created_at|date:'Y-m-d H:i' }} {% else %} {{ DLUX_STRINGS.sysbackup_never }} {% endif %}
{% endwith %} {{ DLUX_STRINGS.sysbackup_open }}
{% endif %}
{% if user.is_superuser %}
{{ DLUX_STRINGS.system_settings_label }}

{{ DLUX_STRINGS.system_settings_desc }}

{{ DLUX_STRINGS.system_settings_export }}
{% endif %}
{% endif %}

{{ DLUX_STRINGS.accessibility }}

{{ DLUX_STRINGS.accessibility_desc }}

{% if config.profile_config.allow_user_home_url %}

{{ DLUX_STRINGS.options_landing_page|default:"Landing page" }}

{{ DLUX_STRINGS.options_landing_page_desc|default:"Where you land after signing in. Leave on system default to use the configured home." }}

{% endif %} {% if config.allow_user_theme_override and DLUX_THEMES|length > 1 or language_picker_enabled %} {% if DLUX_THEMES|length > 5 or LANGUAGES|length > 2 %} {% if config.allow_user_theme_override and DLUX_THEMES|length > 1 %}

{{ DLUX_STRINGS.themes }}

{{ DLUX_STRINGS.themes_desc }}

{% include 'dlux/includes/theme_previews.html' with selected_theme=user_preferences.theme|default:APP_CONFIG.default_theme picker_mode='options' %}
{% endif %} {% if language_picker_enabled %}

{{ DLUX_STRINGS.language }}

{{ DLUX_STRINGS.language_desc }}

{% if LANGUAGES|length > 1 %} {% include 'dlux/includes/language_previews.html' with selected_language=CURRENT_LANG picker_mode='options' languages=LANGUAGES %} {% endif %}
{% endif %} {% else %}
{% if config.allow_user_theme_override and DLUX_THEMES|length > 1 %}

{{ DLUX_STRINGS.themes }}

{{ DLUX_STRINGS.themes_desc }}

{% include 'dlux/includes/theme_previews.html' with selected_theme=user_preferences.theme|default:APP_CONFIG.default_theme picker_mode='options' %}
{% endif %} {% if config.allow_user_theme_override and DLUX_THEMES|length > 1 %} {% if language_picker_enabled %}
{% endif %} {% endif %} {% if language_picker_enabled %}

{{ DLUX_STRINGS.language }}

{{ DLUX_STRINGS.language_desc }}

{% if LANGUAGES|length > 1 %} {% include 'dlux/includes/language_previews.html' with selected_language=CURRENT_LANG picker_mode='options' languages=LANGUAGES %} {% endif %}
{% endif %}
{% endif %} {% endif %} {% if font_picker_enabled %}

{{ DLUX_STRINGS.typography }}

{{ DLUX_STRINGS.typography_desc }}

{% include 'dlux/includes/font_previews.html' with selected_font=active_font option_fonts=option_fonts %}
{% endif %}

{{ DLUX_STRINGS.table_density|default:"Table Density" }}

{{ DLUX_STRINGS.table_density_desc|default:"Control how much vertical space data tables use while you work." }}

{% include 'dlux/includes/table_density_previews.html' with selected_density=user_preferences.table_density|default:APP_CONFIG.default_table_density picker_mode='options' density_choices=DLUX_TABLE_DENSITIES DLUX_STRINGS=DLUX_STRINGS %}

{{ DLUX_STRINGS.form_density|default:"Form Density" }}

{{ DLUX_STRINGS.form_density_desc|default:"Control how much vertical space form fields use while you work." }}

{% include 'dlux/includes/form_density_previews.html' with selected_density=user_preferences.form_density|default:APP_CONFIG.appearance.default_form_density density_choices=DLUX_TABLE_DENSITIES DLUX_STRINGS=DLUX_STRINGS %}

{{ DLUX_STRINGS.modal_size|default:"Modal Size" }}

{{ DLUX_STRINGS.modal_size_desc|default:"Control the width of pop-up dialogs while you work." }}

{% include 'dlux/includes/modal_size_previews.html' with selected_size=user_preferences.modal_size|default:APP_CONFIG.appearance.default_modal_size size_choices=DLUX_MODAL_SIZES DLUX_STRINGS=DLUX_STRINGS %}
{% if navbar.enabled and navbar.allow_user_mode_override %}

{{ DLUX_STRINGS.navbar_options_title }}

{{ DLUX_STRINGS.navbar_options_desc }}

{% include 'dlux/includes/navbar_mode_previews.html' with selected_mode=user_preferences.navbar_mode|default:navbar.default_mode DLUX_STRINGS=DLUX_STRINGS %}
{% endif %} {% if sidebar_enabled and config.sidebar.allow_user_density %}

{{ DLUX_STRINGS.sidebar_density|default:"Sidebar Density" }}

{{ DLUX_STRINGS.sidebar_density_desc|default:"Control how much vertical space the sidebar navigation uses while you work." }}

{% include 'dlux/includes/sidebar_density_previews.html' with selected_density=user_preferences.sidebar_density|default:sidebar_density|default:config.sidebar.density picker_mode='options' density_choices=DLUX_TABLE_DENSITIES DLUX_STRINGS=DLUX_STRINGS %}
{% endif %}

{{ DLUX_STRINGS.autofill }}

{{ DLUX_STRINGS.autofill_desc }}

{% if can_manage_dlux_updates %} {% endif %} {% endblock %} {% block scripts %} {{ block.super }} {% endblock %}