At channelAustin (www.channelaustin.org), we have a policy in place stating that a producer cannot make a reservation for equipment more than 21 days in advance of the intended reservation date. So the request is to add a feature to MERCI to enable administrators to place limits of how far in advance a reservation can be made.

Comments

civicpixel’s picture

JQuery's UI Date Picker has a limitation option...

http://jqueryui.com/demos/datepicker/#min-max

I think the easiest way to do this is going to be to add the limit as a variable to MERCI and then add that when the calendar is loaded.

<script type="text/javascript">
	$(function() {
		$("#datepicker").datepicker({minDate: -20, maxDate: '+1M +10D'});
	});
	</script>

This is just a quick first step because a savvy user could disable javascript and enter the date by hand to bypass the restriction. That probably wouldn't happen in Austin, but it would definitely happen in the university environments I've worked in. Eventually, the validation need to be added to the module as well.

kreynen’s picture

Status: Active » Fixed

latest commit to CVS resolves this

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.