[WTF CVS] wtf/templates/pages/reports ooo_calendar.tmpl,NONE,1.1
Brought to you by:
gryphonshafer
|
From: Gryphon S. <gry...@us...> - 2007-01-02 23:13:33
|
Update of /cvsroot/wtf-tracker/wtf/templates/pages/reports In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv17860/templates/pages/reports Added Files: ooo_calendar.tmpl Log Message: Changes to support the addition of feature request 1618513: vacation scheduler and OOO calendar --- NEW FILE: ooo_calendar.tmpl --- <tmpl_include name="header.tmpl"> <h2><tmpl_var name="title"></h2> <form method="get" action="<tmpl_var name="root_url">/view/reports/calendar"> <div style="width: 190px; padding-right: 10px; float: left; text-align: right"> <label> Start date: <input type="text" name="date_start" id="date_start" value="<tmpl_var name="date_start">" style="width: 80px" /> <img src="<tmpl_var name="root_url">/static/calendar.gif" id="calendar_trigger_start" style="cursor: pointer" alt="Select start date" title="Select start date" onmouseover="this.style.background='red';this.style.border='red'" onmouseout="this.style.background='';this.style.border=''" /> </label> <br /> <label> End date: <input type="text" name="date_end" id="date_end" value="<tmpl_var name="date_end">" style="width: 80px" /> <img src="<tmpl_var name="root_url">/static/calendar.gif" id="calendar_trigger_end" style="cursor: pointer" alt="Select end date" title="Select end date" onmouseover="this.style.background='red';this.style.border='red'" onmouseout="this.style.background='';this.style.border=''" /> </label> <br /> </div> <br style="clear: both" /> <input type="submit" value="View OOO Calendar" style="margin-top: 5px; margin-left: 40px" /> <script type="text/javascript"> try { Calendar.setup({ inputField : "date_start", ifFormat : "%Y-%m-%d", button : "calendar_trigger_start", singleClick : true, showsTime : false }); Calendar.setup({ inputField : "date_end", ifFormat : "%Y-%m-%d", button : "calendar_trigger_end", singleClick : true, showsTime : false }); } catch (e) {} </script> </form> <tmpl_if name="ooo_data"> <tmpl_loop name="ooo_data"> <h4 class="tight"><tmpl_var name="date"></h4> <ul> <tmpl_loop name="ooo_entries"> <li> <tmpl_var name="employee"> (<tmpl_if name="vacation">Vacation<tmpl_else>Sick</tmpl_if>) </li> </tmpl_loop> </ul> </tmpl_loop> <tmpl_else> <p> There is no out-of-office (OOO) data within the specified range. Adjust the range to view OOO data. </p> </tmpl_if> <tmpl_include name="footer.tmpl"> |