Package: rt.calendarinandout
Provides anArchetypes widgetthat allows toadd and remove datesusing the fancyjquery.ui.datepicker pluginTable of contentsUsageConfigurationScreenshotsInstallationTODOCreditsAuthorsChangelog1.2.0 (2014-02-19)1.1.0 (2013-10-30)1.0.3 (2012-05-02)1.0.2 (2012-02-23)1.0.1 (2011-10-04)1.0.0 (2011-02-07)1.0.0-rc3 (2010-11-19)1.0.0-rc2 (2010-09-15)1.0.0-rc1 (Unreleased)UsageThe widget stores the information in to a LinesField archetype field.
To use it just add a field like this in your archetype schema:fromProducts.Archetypes.atapiimportLinesFieldfromrt.calendarinandout.widgetimportCalendarInAndOutWidgetLinesField('dates',widget=CalendarInAndOutWidget(label=u"Dates",description=u"Enter the dates in the form yyyy-mm-dd.",),)Then you can start enjoyng this widget!ConfigurationYou can use following additional widget options:auto_addInstead of showing an “add date” button/icon, automatically add the date
when selected on the calendar. Default is true.allow_duplicateAllow the selection of the same date more and more times. Default is false.ScreenshotsThe widget when no date is selectedData can be entered manually or clicking. If you click the calendar a nice datepicker will popupClicking the plus the date will be added to the selected values, the red cross will remove the dateYou can also set theauto_addoption for not displaying any “plus” icon, and add the date to the list
when a date is selected.Add and remove all the dates you wantWith JavaScript disabled the widget is still fully functional, falling back to a normal textarea where
you can insert dates manuallyIn view the dates are rendered as an unordered listInstallationYou can easily includert.calendarinandoutin your buildout by adding
it in both in the eggs and zcml sections:eggs=...
     rt.calendarinandout
     ...After then, re-run your buildout, restart your instance and activate the rt.calendarinandout
add-on.TODOComplete internazionalizationAdd an option to trigger the client side validation of the added date formatGives to developer a way to control date format usedSome artwork will be a nice plus :)Refactor JavaScript to not use global namespaceCreditsDeveloped with the support of:Rete Civica Mo-Net - Comune di ModenaRegione Emilia RomagnaAll of them supports thePloneGov initiative.AuthorsThis product was developed by RedTurtle Technology team.Changelog1.2.0 (2014-02-19)Plone 4.3 supported while dropped Plone 3Activate jQueryUI datepicker when installed [keul]Include icons in the product itself for Plone 4.3 compatibility [keul]All images loaded from site root, to be cache friendly [keul]Changed default value ofauto_addto true [keul]HTML sanitize: removed duplicated id that origin validation errors [keul]Accessibility fixes: the widget can now be used with keyboard [keul]1.1.0 (2013-10-30)removed any deprecated reference tojq[keul]do not pollute global namespace anymore [keul]fixed disabled optionallow_duplicate[keul]whenauto_addoption is used, automatically clear
the new date field [keul]code cleanup1.0.3 (2012-05-02)Egg changes as we moved to github [keul]Enabled adding a date also with “enter” key [cekk]1.0.2 (2012-02-23)Fix problem with widget activation on IE [lucabel]1.0.1 (2011-10-04)fix the problem with duplicate widgets in one schema [amleczko]1.0.0 (2011-02-07)No more fix the the collective.js.jqueryui version; leave this to buildouts [keul]removed “strip” non-standard method, replaced with a custom “.trim” method [keul]added the “auto_add” option, for automatically add dates to the field when
they are selected [keul]1.0.0-rc3 (2010-11-19)In view dates are rendered in an unordered listAdded documentation1.0.0-rc2 (2010-09-15)Fixed Javascript docstrings [keul]Removed unused locales directory [keul]Removed unused widget parameter “dateformat” [keul]Some relative URL are now absolute, not breaking browser cache [keul]1.0.0-rc1 (Unreleased)Initial release