An archetype widget that allows to add and removedates using the fancy jquery.ui.datepicker plugin
Project description
Introduction
rt.calendarinandout provides an archetype widget that allows to add and remove dates using the fancy jquery.ui.datepicker plugin
Usage
The widget stores the information in to a LinesField archetype field. To use it just add a field like this in your archetype schema:
from Products.Archetypes.atapi import LinesField from rt.calendarinandout.widget import CalendarInAndOutWidget LinesField( 'dates', widget = CalendarInAndOutWidget( label=u"Dates", description=u"Enter the dates in the form yyyy-mm-dd.", ), )
Then you can start enjoyng this widget!
Screenshots
The widget when no date is selected
Data can be entered manually or clicking. If you click the calendar a nice datepicker will popup
Clicking the plus the date will be added to the selected values, the red cross will remove the date
Add and remove all the dates you want
With javascript disabled the widget is still fully functional, falling back to a normal textarea where you can insert dates manually
In view the dates are rendered as an unordered list
Add this egg to your buildout
Direct installation
You can easily include rt.calendarinandout in your buildout by adding it in both in the eggs and zcml sections:
eggs=... rt.calendarinandout ... zcml=... rt.calendarinandout ...
Triggering the installation from your own egg
If you are developing your own egg you can make it depend on rt.calendarinandout by following those three steps: * add rt.calendarinandout it in the install_requires section of the setup.py of your egg:
install_requires=[... 'rt.calendarinandout' ...]
add the dependency in your egg profiles/default/metadata.xml file:
<?xml version="1.0"?> <metadata> <version>...</version> <dependencies> <dependency>profile-rt.calendarinandout:default</dependency> </dependencies> </metadata>
add the dependency in the configure.zcml at the root of your package, including this line:
<include package="rt.calendarinandout" />
Credits
Developed with the support of Comune di Modena; Comune di Modena supports the PloneGov initiative.
Changelog
1.0.0-rc3 (2010-11-19)
In view dates are rendered in an unordered list
Added documentation
1.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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file rt.calendarinandout-1.0.0-rc3.tar.gz
.
File metadata
- Download URL: rt.calendarinandout-1.0.0-rc3.tar.gz
- Upload date:
- Size: 18.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b861f9c3723cdc49ac78fdbc9d660700490f657c57e407d853aecbfca764103b |
|
MD5 | c5e505b33191e68f8b17636fe2003391 |
|
BLAKE2b-256 | 0962d9648db0b74f8d49cf013448acfed2bd81afed91a4b7dc9d67a63db02ee5 |