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

10 lines
543 B
HTML

{# 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>