Add basic "helptext" support for forms2
This commit is contained in:
parent
c20fdf4450
commit
8041c085f6
2 changed files with 35 additions and 5 deletions
|
@ -32,9 +32,9 @@ ${h.csrf_token(request)}
|
|||
<div class="field">
|
||||
${field.serialize()|n}
|
||||
</div>
|
||||
## % if 'instructions' in field.metadata:
|
||||
## <span class="instructions">${field.metadata['instructions']}</span>
|
||||
## % endif
|
||||
% if form.has_helptext(field.name):
|
||||
<span class="instructions">${form.render_helptext(field.name)}</span>
|
||||
% endif
|
||||
</div>
|
||||
|
||||
## % if not _focus_rendered and (fieldset.focus is True or fieldset.focus is field):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue