Here are some code snippets dealing with a JQuery date select plugin and Gantry.
field shipped {
is datetime;
label Shipped;
html_form_type text;
html_form_display_size 10;
html_form_class `date-picker`;
html_form_optional 1;
}
{
display_size => 10,
name => 'shipped',
class => 'date-picker',
optional => 1,
label => 'Shipped',
type => 'text',
is => 'datetime',
},
snippet from from the site wrapper
<script src="[% self.doc_rootp %]/js/jquery.js"
charset="utf-8" type="text/javascript"></script>
<script src="[% self.doc_rootp %]/js/datePicker.js"
charset="utf-8" type="text/javascript"></script>
<script>
$(document).ready(init);
function init() {
$.datePicker.setDateFormat('mdy','/');
$('input#shipped').datePicker();
}
</script>
<input type="text" name="shipped" id="shipped" value="" />
Nice script..that helps me