Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replaced the existing radiobutton-based boolean widget with the standard
single checkbox Plone version. svn path=/plone.app.z3cform/trunk/; revision=35017
- Loading branch information
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<div | ||
tal:define="widget context; | ||
hidden python:widget.mode == 'hidden'; | ||
error widget/error; | ||
error_class python:error and ' error' or ''; | ||
fieldname_class string:kssattr-fieldname-${widget/name};" | ||
tal:attributes="class string:field z3cformInlineValidation ${fieldname_class}${error_class}; | ||
id string:formfield-${widget/id};"> | ||
|
||
<input type="text" tal:replace="structure widget/render" /> | ||
|
||
<div class="formHelp" | ||
tal:define="description widget/field/description" | ||
i18n:translate="" | ||
tal:content="description" | ||
tal:condition="python:description and not hidden" | ||
>field description</div> | ||
|
||
<div class="fieldErrorBox" | ||
tal:content="structure error/render|nothing"> | ||
Error | ||
</div> | ||
|
||
</div> |