ahmedb | a98a786 | 2010-12-19 20:21:17 +0000 | [diff] [blame] | 1 | <?page title="My Vacation" ?>
|
| 2 | <?init class="com.ellisdon.portal.mv.controller.VacationPortletInitiator" ?>
|
| 3 | <?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
| 4 | <zk>
|
| 5 | <window id="winVacation" title="My Vacation" border="normal" width="680px" height="620px" style="margin-top:3px;"
|
| 6 | apply="com.ellisdon.portal.mv.controller.VacationWindowViewController">
|
| 7 | <caption label="" style="font-size:12px;font-weight:bold;"/>
|
| 8 | <vlayout spacing="15px">
|
| 9 | <hbox spacing="5px" style="margin-top:3px; margin-left:5px">
|
| 10 |
|
ahmedb | 7f5981d | 2010-12-19 20:25:31 +0000 | [diff] [blame] | 11 | <!-- Entitlement Section -->
|
| 12 | <groupbox width="300px" height="100px">
|
ahmedb | a98a786 | 2010-12-19 20:21:17 +0000 | [diff] [blame] | 13 | <caption label="Entitelment" style="font-size:12px;font-weight:bold;"/>
|
| 14 | <vbox id="entView" style="margin-top:3px; margin-left:3px" apply="com.ellisdon.portal.mv.controller.VacationEntitelmentViewControllor">
|
| 15 | <div>
|
| 16 | <label style="font-size:12px;font-weight:bold;" value="Yearly Entitlement : "/>
|
| 17 | <listbox id="listEntDays" rows="1" mold="select" style="font-size:12px">
|
| 18 | <listitem label="15" value="15" />
|
| 19 | <listitem label="20" value="20" />
|
| 20 | <listitem label="25" value="25" />
|
| 21 | <listitem label="30" value="30" />
|
| 22 | <listitem label="35" value="35" />
|
| 23 | </listbox>
|
| 24 | <label style="font-size:12px;" value="Days"/>
|
| 25 | </div>
|
| 26 | <div style="margin-top:10px">
|
| 27 | <label style="font-size:12px;" value="Last Updated : "/>
|
| 28 | <label id="lbEntUpdate" style="font-size:12px;" value=""/>
|
| 29 | </div>
|
| 30 | <div>
|
| 31 | <button id="btnEntUpdate" label="Update Entitlement"/>
|
| 32 | </div>
|
| 33 | </vbox>
|
| 34 | </groupbox>
|
| 35 |
|
| 36 | <!-- HR Notice Section -->
|
ahmedb | 7f5981d | 2010-12-19 20:25:31 +0000 | [diff] [blame] | 37 | <groupbox width="300px" height="100px">
|
ahmedb | a98a786 | 2010-12-19 20:21:17 +0000 | [diff] [blame] | 38 | <caption label="HR Notice" style="font-size:12px;font-weight:bold;"/>
|
ahmedb | 7f5981d | 2010-12-19 20:25:31 +0000 | [diff] [blame] | 39 | <vbox id="hrNoticeView" style="margin-top:3px; margin-left:3px" apply="com.ellisdon.portal.mv.controller.VacationHRNoticeViewControllor">
|
ahmedb | a98a786 | 2010-12-19 20:21:17 +0000 | [diff] [blame] | 40 | <!--
|
| 41 | <hbox>
|
| 42 | <div>
|
| 43 | <label style="font-size:12px;font-weight:bold;" value="Balance to Date : "/>
|
| 44 | <style dynamic="true">
|
| 45 | .mylbl {
|
| 46 | border: 1px solid black;
|
| 47 | padding-left:10px;
|
| 48 | padding-right:10px;
|
| 49 | }
|
| 50 | </style>
|
| 51 | <label sclass="mylbl" id="lblBalanceDays" style="font-size:12px;font-weight:bold;color:red;" width="30px" value="10" />
|
| 52 | <label style="font-size:12px;" value="Days"/>
|
| 53 | </div>
|
| 54 | </hbox>
|
| 55 | -->
|
| 56 | <hbox style="margin-top:10px">
|
| 57 | <div>
|
ahmedb | 7f5981d | 2010-12-19 20:25:31 +0000 | [diff] [blame] | 58 | <label style="font-size:12px;" value="As of 01-Jan-2010 you had "/>
|
ahmedb | a98a786 | 2010-12-19 20:21:17 +0000 | [diff] [blame] | 59 | <style dynamic="true">
|
| 60 | .mylbl {
|
| 61 | border: 1px solid black;
|
| 62 | padding-left:10px;
|
| 63 | padding-right:10px;
|
| 64 | }
|
| 65 | </style>
|
ahmedb | 7f5981d | 2010-12-19 20:25:31 +0000 | [diff] [blame] | 66 | <label sclass="mylbl" id="lblCarryForwardDays" style="font-size:12px;font-weight:bold;color:red;" width="30px" value="0" />
|
ahmedb | a98a786 | 2010-12-19 20:21:17 +0000 | [diff] [blame] | 67 | <label style="font-size:12px;" value=" days vacation carried forward. This vacation needs to be taken by"/>
|
| 68 | </div>
|
| 69 | </hbox>
|
ahmedb | 7f5981d | 2010-12-19 20:25:31 +0000 | [diff] [blame] | 70 | <label style="font-size:12px;" value="01-Jul-2012."/>
|
ahmedb | a98a786 | 2010-12-19 20:21:17 +0000 | [diff] [blame] | 71 | </vbox>
|
| 72 | </groupbox>
|
| 73 | </hbox>
|
| 74 |
|
| 75 | <!-- Vacation Entry Section -->
|
| 76 | <groupbox id="vacEntry" width="635px" height="180px" style="margin-left:5px" apply="com.ellisdon.portal.mv.controller.VacationEntryViewController">
|
| 77 | <caption label="Take Vacation" style="font-size:12px;font-weight:bold;"/>
|
| 78 | <div style="margin-top:3px" >
|
| 79 | <grid fixedLayout="true">
|
| 80 | <columns>
|
| 81 | <column label="Type" width="150px" />
|
| 82 | <column label="Content" />
|
| 83 | </columns>
|
| 84 | <rows>
|
| 85 | <row>
|
| 86 | <label value="From" width="150px" />
|
ahmedb | 7f5981d | 2010-12-19 20:25:31 +0000 | [diff] [blame] | 87 | <datebox id="fromDate" cols="16" format="yyyy/MM/dd" constraint="no empty"/>
|
ahmedb | a98a786 | 2010-12-19 20:21:17 +0000 | [diff] [blame] | 88 | </row>
|
| 89 |
|
| 90 | <row>
|
| 91 | <label value="To" width="150px" />
|
ahmedb | 7f5981d | 2010-12-19 20:25:31 +0000 | [diff] [blame] | 92 | <datebox id="toDate" cols="16" format="yyyy/MM/dd" constraint="no empty"/>
|
ahmedb | a98a786 | 2010-12-19 20:21:17 +0000 | [diff] [blame] | 93 | </row>
|
| 94 |
|
| 95 | <row>
|
| 96 | <label value="Days taken" width="150px" />
|
ahmedb | 440eb1e | 2010-12-20 05:27:36 +0000 | [diff] [blame^] | 97 | <div>
|
| 98 | <spinner id="daysTaken" value="1" constraint="no negative, no empty" />
|
| 99 | <checkbox id="halfDayCheck" label="Half Day"/>
|
| 100 | </div>
|
ahmedb | a98a786 | 2010-12-19 20:21:17 +0000 | [diff] [blame] | 101 | </row>
|
| 102 |
|
| 103 | <row>
|
| 104 | <label value="Comments" width="150px" />
|
ahmedb | 440eb1e | 2010-12-20 05:27:36 +0000 | [diff] [blame^] | 105 | <textbox id="comments" value="" width="350px" maxlength="45" />
|
ahmedb | a98a786 | 2010-12-19 20:21:17 +0000 | [diff] [blame] | 106 | </row>
|
| 107 |
|
| 108 | </rows>
|
| 109 | </grid>
|
| 110 | </div>
|
| 111 |
|
| 112 | <div id="UpdateClear" style="padding-top:10px">
|
| 113 | <hbox>
|
| 114 | <div >
|
| 115 | <button id="save" label="Save" width="100px"/>
|
| 116 | <button id="reset" label="Reset" style="margin-left:3px" width="100px"/>
|
| 117 | </div>
|
| 118 | </hbox>
|
| 119 | </div>
|
| 120 | </groupbox>
|
| 121 |
|
| 122 | <!-- Vacation History Section -->
|
| 123 | <groupbox width="635px" height="190px" style="margin-left:5px">
|
| 124 | <caption label="Vacation History" style="font-size:12px;font-weight:bold;"/>
|
| 125 | <div id="divVacHistory" style="margin-top:3px" apply="com.ellisdon.portal.mv.controller.VacationHistoryViewController">
|
| 126 | <grid id="gridVacHistory" fixedLayout="true" height="170px">
|
| 127 | <columns>
|
| 128 | <column label="From" width="80px"/>
|
| 129 | <column label="To" width="80px"/>
|
| 130 | <column label="Days Taken" width="75px" align="center"/>
|
| 131 | <column label="Not Taken" width="70px" align="center"/>
|
| 132 | <column label="Comments" width="215px"/>
|
| 133 | <column label="Action" width="90px" align="center"/>
|
| 134 | </columns>
|
| 135 | </grid>
|
| 136 | </div>
|
| 137 | </groupbox>
|
| 138 |
|
| 139 | </vlayout>
|
| 140 | </window>
|
| 141 | </zk> |