Package: collective.z3cform.html5widgets
IntroductionThis addon provide the following HTML5 widgets:colorcontenteditable (+wysiwyg)datalistdatedatetimedatetime-localemailmonthnumberpasswordrangesearchteltimeurlweekStatus: youngTODOless copy/paste where it’s possibleadd testsadd support of datalistadd contenteditable widget for Text and TextLineHow to installThis addon can be installed has any other addons. please follow officialdocumentation. It doesn’t provide any profile, so you juste have to add it
to your zope install.If you want to support theses widgets on incapable browser you must consider
using polyfill.Some addons which provide polyfills:collective.js.webshimsWidgets review & supportdatalistcolorUse it with zope.schema.ASCIILine field:from zope import schema
from zope import interface
from z3c.form import form, field
from collective.z3cform.html5widgets.widget_color import ColorFieldWidget
class ExampleSchema(interface.Interface):
    color = schema.ASCIILine(title=u"Color", required=False)
class ExampleForm(form.Form):
    fields = field.Fields(ExampleSchema)
    fields['color'].widgetFactory = ColorFieldWidgetcontenteditablebrowsers supports:Chrome: 4.0+Safari: 3.1+Safari mobile: 5.0+Firefox: 3.5+Opera: 9.0+Opera mini/mobile: N/AInternet Explore: 5.5 (sic)Android: 3.0+Example:from zope import schema
from zope import interface
from z3c.form import form, field
class ExampleSchema(interface.Interface):
    pass
class ExampleForm(form.Form):
    fields = field.Fields(ExampleSchema)dateExample:from zope import schema
from zope import interface
from z3c.form import form, field

class ExampleSchema(interface.Interface):
    date = schema.Date(title=u"Date (created)", required=False)

class ExampleForm(form.Form):
    fields = field.Fields(ExampleSchema)datetimeExample:from zope import schema
from zope import interface
from z3c.form import form, field
class ExampleSchema(interface.Interface):
    datetime = schema.Datetime(title=u"Date time (modified)", required=False)
class ExampleForm(form.Form):
    fields = field.Fields(ExampleSchema)datetime-localExample:from zope import schema
from zope import interface
from z3c.form import form, field
class ExampleSchema(interface.Interface):
    datetime = schema.Datetime(title=u"Date time (modified)", required=False)
class ExampleForm(form.Form):
    fields = field.Fields(ExampleSchema)emailExample:from zope import schema
from zope import interface
from z3c.form import form, field
from collective.z3cform.html5widgets.widget_email import EmailFieldWidget
class ExampleSchema(interface.Interface):
    email = schema.ASCIILine(title=u"Email", required=False)
class ExampleForm(form.Form):
    fields = field.Fields(ExampleSchema)
    fields['email'].widgetFactory = EmailFieldWidgetmonthExample:from zope import schema
from zope import interface
from z3c.form import form, field
from collective.z3cform.html5widgets.widget_month import MonthFieldWidget
class ExampleSchema(interface.Interface):
    month = schema.Date(title=u"Month", required=False)
class ExampleForm(form.Form):
    fields = field.Fields(ExampleSchema)
    fields['month'].widgetFactory = MonthFieldWidgetnumberExample:from zope import schema
from zope import interface
from z3c.form import form, field
from collective.z3cform.html5widgets.widget_number import NumberFieldWidget
class ExampleSchema(interface.Interface):
    number = schema.Int(title=u"Number", required=False)
class ExampleForm(form.Form):
    fields = field.Fields(ExampleSchema)
    fields['number'].widgetFactory = NumberFieldWidgetpasswordExample:from zope import schema
from zope import interface
from z3c.form import form, field
class ExampleSchema(interface.Interface):
    password = schema.Password(title=u"Password", required=False)
class ExampleForm(form.Form):
    fields = field.Fields(ExampleSchema)rangeExample:from zope import schema
from zope import interface
from z3c.form import form, field
from collective.z3cform.html5widgets.widget_range import RangeFieldWidget
class ExampleSchema(interface.Interface):
    range = schema.Int(title=u"Range", required=False)
class ExampleForm(form.Form):
    fields = field.Fields(ExampleSchema)
    fields['range'].widgetFactory = RangeFieldWidgetsearchExample:from zope import schema
from zope import interface
from z3c.form import form, field
from collective.z3cform.html5widgets.widget_search import SearchFieldWidget
class ExampleSchema(interface.Interface):
    search = schema.TextLine(title=u"Search", required=False)
class ExampleForm(form.Form):
    fields = field.Fields(ExampleSchema)
    fields['search'].widgetFactory = SearchFieldWidgettelExample:from zope import schema
from zope import interface
from z3c.form import form, field
from collective.z3cform.html5widgets.widget_tel import TelFieldWidget
class ExampleSchema(interface.Interface):
    tel = schema.ASCIILine(title=u"Telephone", required=False)
class ExampleForm(form.Form):
    fields = field.Fields(ExampleSchema)
    fields['tel'].widgetFactory = TelFieldWidgettimeExample:from zope import schema
from zope import interface
from z3c.form import form, field
class ExampleSchema(interface.Interface):
    time = schema.Time(title=u"Time", required=False)
class ExampleForm(form.Form):
    fields = field.Fields(ExampleSchema)urlExample:from zope import schema
from zope import interface
from z3c.form import form, field
class ExampleSchema(interface.Interface):
    url = schema.URI(title=u"URL", required=False)
class ExampleForm(form.Form):
    fields = field.Fields(ExampleSchema)weekExample:from zope import schema
from zope import interface
from z3c.form import form, field
from collective.z3cform.html5widgets.widget_week import WeekFieldWidget
class ExampleSchema(interface.Interface):
    week = schema.Date(title=u"Week", required=False)
class ExampleForm(form.Form):
    fields = field.Fields(ExampleSchema)
    fields['week'].widgetFactory = WeekFieldWidgetCreditsCompaniesPlanet Makina CorpusContact Makina CorpusPeopleJeanMichel FRANCOIS aka toutpt <toutpt@gmail.com>Changelog0.1 (2013-03-21)Package created using templer
[JeanMichel aka toutpt]