Skip to content

Commit

Permalink
feat(#2): ✨ move field description between label and widget
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasmassmann committed Dec 19, 2021
1 parent 57022d5 commit 6d4311f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
<span i18n:translate="" tal:replace="python:widget.label">label</span>
</b>

<input type="text" tal:replace="structure python:widget.render()"
metal:define-slot="widget" />

<div tal:define="description python: getattr(widget, 'description', widget.field.description)"
i18n:translate=""
tal:content="structure description"
Expand All @@ -36,6 +33,9 @@
help text
</div>

<input type="text" tal:replace="structure python:widget.render()"
metal:define-slot="widget" />

<div tal:condition="error"
tal:replace="structure python:error.render() or False">
Error
Expand Down

0 comments on commit 6d4311f

Please sign in to comment.