From fca10c326453b3f0938b2746fe41da294c61a71c Mon Sep 17 00:00:00 2001 From: Alexander Limi Date: Wed, 17 Mar 2010 00:26:23 +0000 Subject: [PATCH] Replaced the existing radiobutton-based boolean widget with the standard single checkbox Plone version. svn path=/plone.app.z3cform/trunk/; revision=35017 --- docs/HISTORY.txt | 5 ++++ plone/app/z3cform/configure.zcml | 13 ++++++++++ plone/app/z3cform/templates/singlecheckbox.pt | 24 +++++++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 plone/app/z3cform/templates/singlecheckbox.pt diff --git a/docs/HISTORY.txt b/docs/HISTORY.txt index 9e653c35..84497035 100644 --- a/docs/HISTORY.txt +++ b/docs/HISTORY.txt @@ -4,8 +4,13 @@ Changelog 0.5 - unreleased ---------------- +* Replaced the existing radiobutton-based boolean widget with the standard + single checkbox Plone version. + [limi] + * Add @@ploneform-render-widget view, so that the widget chrome can be customized for particular widget types. + [davisagli] * Added slots to the ``titlelessform`` macro. See ``README.txt`` in ``plone.z3cform`` for details. diff --git a/plone/app/z3cform/configure.zcml b/plone/app/z3cform/configure.zcml index 7b8f6432..cbca939d 100644 --- a/plone/app/z3cform/configure.zcml +++ b/plone/app/z3cform/configure.zcml @@ -33,6 +33,13 @@ template="templates/widget.pt" permission="zope.Public" /> + @@ -85,4 +92,10 @@ z3c.form.interfaces.IFormLayer" /> + + diff --git a/plone/app/z3cform/templates/singlecheckbox.pt b/plone/app/z3cform/templates/singlecheckbox.pt new file mode 100644 index 00000000..99d2b97e --- /dev/null +++ b/plone/app/z3cform/templates/singlecheckbox.pt @@ -0,0 +1,24 @@ +
+ + + +
field description
+ +
+ Error +
+ +