whynot-design/adapters/django/templates/whynot/_field_row.html

11 lines
543 B
HTML
Raw Normal View History

2026-05-25 19:32:22 +02:00
{# Field row — label / value (+ optional aside).
{% include "whynot/_field_row.html" with label="Learning question" value=prototype.learning_question %}
{% include "whynot/_field_row.html" with label="Target" value=prototype.target aside="2026-04-01" %}
For arbitrary value markup, write <wn-field-row> inline and slot children. #}
<wn-field-row label="{{ label }}"{% if stacked %} stacked{% endif %}{% if narrow %} narrow{% endif %}>
{{ value }}
{% if aside %}<span slot="aside">{{ aside }}</span>{% endif %}
</wn-field-row>