{% extends "dashboard.html" %}
{% block content %}
{% set config_editable = config_template or not config_method or is_editable_method(config_method) %}
{% if (not config_editable) or is_readonly %}
{% else %}
{% for service in services %}
{% endfor %}
{% for config_type, data in config_types.items() %}
{% endfor %}
{% endif %}
{% if config_template %}
{% endif %}
.conf
{% set draft_toggle_disabled = config_name and not is_editable_method(config_method) %}
{% set save_tooltip_key = 'tooltip.disabled_readonly' if user_readonly else ('tooltip.disabled_db_readonly' if is_readonly else ('tooltip.disabled_by_method' if not config_editable else '')) %}
{% set save_tooltip_options = '{"method": "' ~ config_method ~ '"}' if not config_editable and not is_readonly else '{}' %}
{% set editor_tooltip_key = 'tooltip.disabled_readonly' if user_readonly else ('tooltip.disabled_db_readonly' if is_readonly else ('tooltip.disabled_by_method' if not config_editable else '')) %}
{% set editor_tooltip_options = '{"method": "' ~ config_method ~ '"}' if not config_editable and not is_readonly else '{}' %}