{% extends "base.html" %} {% from "_macros.html" import option_field, secret_field, number_field, env_label, env_label_existing %} {% block title %}{{ t("新建目标") if mode == "create" else t("编辑目标") }} · {{ product_name }}{% endblock %} {% block container_class %} container--form{% endblock %} {% block content %} {% set connection_rows = option_rows | selectattr("section", "equalto", "connection") | list %} {% set connection_secrets = secret_rows | selectattr("section", "equalto", "connection") | list %} {% set scope_rows = option_rows | selectattr("section", "equalto", "scope") | list %} {% set advanced_rows = option_rows | selectattr("section", "equalto", "advanced") | list %} {% set advanced_secrets = secret_rows | selectattr("section", "equalto", "advanced") | list %} {% set advanced_open = (advanced_rows | selectattr("error") | list | length) or (advanced_secrets | selectattr("error") | list | length) or (common_rows | selectattr("error") | list | length) %}
{{ t(spec.label) }} · {{ t("配置连接、密钥与只读范围。") }}