{# Log settings in three levels (Hani #1 2026-10-24): Settings › Logs for all ecosystems, then an ecosystem, then a device. A value equal to the level above follows it; a different one overrides it for this level and the ones below. #} {% macro log_levels_form(v, parent, action, scope, csrf, reset_action=none, can_edit=true, names=none) %} {% set names = names or {'portal': 'all ecosystems (Settings › Logs)', 'ecosystem': 'its ecosystem', 'device': 'this device'} %} {% set s = v %} {% macro origin(field) %}{% if v.get('from') %}{{ 'Set here' if v['from'][field] == scope else 'From ' ~ names[v['from'][field]] }}{% endif %}{% endmacro %} {% if can_edit %}
{% if reset_action and v.get('from') and scope in v['from'].values() %}{% endif %} {% else %}