feat(templates): add _macros.html with config_field macro

This commit is contained in:
mwiegand 2026-05-17 21:00:01 +02:00
parent 5ca3db4a6e
commit 7963b69cb3
No known key found for this signature in database

View file

@ -0,0 +1,10 @@
{# Reusable field-cell for the server-detail config grid and any future
key/value layouts. `value` is rendered as-is (caller can pass safe
HTML via `|safe` if needed). `editable` is a flag the caller may
use to switch rendering — currently informational only. #}
{% macro config_field(label, value, editable=False) %}
<div class="config-field">
<div class="config-field-label">{{ label }}</div>
<div class="config-field-value">{{ value }}</div>
</div>
{% endmacro %}