Files
miem_workers/app/templates/council_warning.html
T
codex e08c30848f
CI / test (pull_request) Successful in 9m30s
CI / Fingerprint diagnostics (production deployment temporarily disabled) (pull_request) Has been skipped
perf: load council publications on demand and reduce database payload
2026-10-09 16:23:55 +03:00

11 lines
806 B
HTML

{% if article.warnings[field] %}
<span class="council__warning" data-warning>
{% set warning_id = 'warning-' ~ employee_id ~ '-' ~ article.edit_key ~ '-' ~ field %}
<button class="council__warning-button" type="button" aria-label="Уточнение: {{ label }}" aria-expanded="false" aria-describedby="{{ warning_id }}">
<svg width="18" height="18" viewBox="0 0 24 24" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="9"/><path d="M12 6v8"/><circle cx="12" cy="18" r=".5" fill="currentColor"/></svg>
</button>
<span class="council__tooltip" role="tooltip" id="{{ warning_id }}" hidden>{{ article.warnings[field]|unique|join('. ') }}</span>
<noscript><span>{{ article.warnings[field]|unique|join('. ') }}</span></noscript>
</span>
{% endif %}