Add simple_field()
def for base falafel template
hopefully this is a useful abstraction which will allow for smoother transition to Buefy-style fields, when the time comes?
This commit is contained in:
parent
4c3dc6362c
commit
079680d72e
|
@ -363,3 +363,16 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</%def>
|
</%def>
|
||||||
|
|
||||||
|
<%def name="simple_field(label, value)">
|
||||||
|
## TODO: keep this? only used by personal profile view currently
|
||||||
|
## (although could be useful for any readonly scenario)
|
||||||
|
<div class="field-wrapper">
|
||||||
|
<div class="field-row">
|
||||||
|
<label>${label}</label>
|
||||||
|
<div class="field">
|
||||||
|
${'' if value is None else value}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</%def>
|
||||||
|
|
Loading…
Reference in a new issue