-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from plone/fix-64
fixes #64: SingleCheckBoxFieldWidget does not render value in view mode
- Loading branch information
Showing
12 changed files
with
295 additions
and
17 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
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
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,21 @@ | ||
<html xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:tal="http://xml.zope.org/namespaces/tal" | ||
tal:omit-tag=""> | ||
<span tal:attributes="id view/id; | ||
class view/klass; | ||
style view/style; | ||
title view/title; | ||
lang view/lang; | ||
onclick view/onclick; | ||
ondblclick view/ondblclick; | ||
onmousedown view/onmousedown; | ||
onmouseup view/onmouseup; | ||
onmouseover view/onmouseover; | ||
onmousemove view/onmousemove; | ||
onmouseout view/onmouseout; | ||
onkeypress view/onkeypress; | ||
onkeydown view/onkeydown; | ||
onkeyup view/onkeyup"> | ||
<span tal:content="python:view.displayValue[0] if view.displayValue else ''" /> | ||
</span> | ||
</html> |
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,36 @@ | ||
<html xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:tal="http://xml.zope.org/namespaces/tal" | ||
tal:omit-tag=""> | ||
<span class="option" | ||
tal:repeat="item view/items"> | ||
<input id="" name="" value="" class="hidden-widget" title="" | ||
tabindex="" accesskey="" | ||
type="hidden" | ||
tal:attributes="id item/id; | ||
name item/name; | ||
class view/klass; | ||
value item/value; | ||
style view/style; | ||
title view/title; | ||
lang view/lang; | ||
onclick view/onclick; | ||
ondblclick view/ondblclick; | ||
onmousedown view/onmousedown; | ||
onmouseup view/onmouseup; | ||
onmouseover view/onmouseover; | ||
onmousemove view/onmousemove; | ||
onmouseout view/onmouseout; | ||
onkeypress view/onkeypress; | ||
onkeydown view/onkeydown; | ||
onkeyup view/onkeyup; | ||
disabled view/disabled; | ||
tabindex view/tabindex; | ||
onfocus view/onfocus; | ||
onblur view/onblur; | ||
onchange view/onchange; | ||
readonly view/readonly; | ||
alt view/alt; | ||
accesskey view/accesskey; | ||
onselect view/onselect" /> | ||
</span> | ||
</html> |
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,86 @@ | ||
<html xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:tal="http://xml.zope.org/namespaces/tal" | ||
tal:omit-tag="" | ||
tal:define="items view/items; | ||
items python:list(items); | ||
single_checkbox python:len(items) == 1"> | ||
<span tal:attributes="id view/id" | ||
tal:omit-tag="single_checkbox" | ||
tal:condition="python:len(items) > 0"> | ||
<span class="option" | ||
tal:repeat="item items" | ||
tal:attributes="id python:single_checkbox and view.id or None"> | ||
<input type="checkbox" id="" name="" class="" alt="" title="" | ||
tabindex="" disabled="" readonly="" accesskey="" value="" | ||
checked="checked" | ||
tal:condition="item/checked" | ||
tal:attributes="id item/id; | ||
name item/name; | ||
class view/klass; | ||
value item/value; | ||
style view/style; | ||
title view/title; | ||
lang view/lang; | ||
onclick view/onclick; | ||
ondblclick view/ondblclick; | ||
onmousedown view/onmousedown; | ||
onmouseup view/onmouseup; | ||
onmouseover view/onmouseover; | ||
onmousemove view/onmousemove; | ||
onmouseout view/onmouseout; | ||
onkeypress view/onkeypress; | ||
onkeydown view/onkeydown; | ||
onkeyup view/onkeyup; | ||
disabled view/disabled; | ||
tabindex view/tabindex; | ||
onfocus view/onfocus; | ||
onblur view/onblur; | ||
onchange view/onchange; | ||
readonly view/readonly; | ||
alt view/alt; | ||
accesskey view/accesskey; | ||
onselect view/onselect" | ||
/><input id="" name="" class="" alt="" title="" tabindex="" | ||
disabled="" readonly="" accesskey="" value="" | ||
type="checkbox" | ||
tal:condition="not:item/checked" | ||
tal:attributes="id item/id; | ||
name item/name; | ||
class view/klass; | ||
value item/value; | ||
style view/style; | ||
title view/title; | ||
lang view/lang; | ||
onclick view/onclick; | ||
ondblclick view/ondblclick; | ||
onmousedown view/onmousedown; | ||
onmouseup view/onmouseup; | ||
onmouseover view/onmouseover; | ||
onmousemove view/onmousemove; | ||
onmouseout view/onmouseout; | ||
onkeypress view/onkeypress; | ||
onkeydown view/onkeydown; | ||
onkeyup view/onkeyup; | ||
disabled view/disabled; | ||
tabindex view/tabindex; | ||
onfocus view/onfocus; | ||
onblur view/onblur; | ||
onchange view/onchange; | ||
readonly view/readonly; | ||
alt view/alt; | ||
accesskey view/accesskey; | ||
onselect view/onselect" /> | ||
<label for="" | ||
tal:attributes="for item/id"> | ||
<span class="label" tal:content="item/label">Label</span> | ||
<span class="required horizontal" | ||
title="Required" | ||
tal:condition="item/required" | ||
i18n:attributes="title title_required;"> </span> | ||
<span class="formHelp" tal:content="item/description">Description</span> | ||
</label> | ||
</span> | ||
</span> | ||
<input name="field-empty-marker" type="hidden" value="1" | ||
tal:attributes="name string:${view/name}-empty-marker" /> | ||
</html> |
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
Oops, something went wrong.
87bbebe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@agitator Jenkins CI reporting about code analysis
See the full report here: http://jenkins.plone.org/job/package-plone.app.z3cform/39/violations
Follow these instructions to reproduce it locally.