version 0.2.0 replaces fromer version!
This commit is contained in:
10
adapters/django/templates/whynot/_field_row.html
Normal file
10
adapters/django/templates/whynot/_field_row.html
Normal file
@@ -0,0 +1,10 @@
|
||||
{# 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>
|
||||
Reference in New Issue
Block a user