blob: 91288eea2d83f17b2b10d9bca25a2b6d3cfaa09b [file] [log] [blame]
ahmedba98a7862010-12-19 20:21:17 +00001<?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
ahmedb7f5981d2010-12-19 20:25:31 +000011 <!-- Entitlement Section -->
12 <groupbox width="300px" height="100px">
ahmedba98a7862010-12-19 20:21:17 +000013 <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 -->
ahmedb7f5981d2010-12-19 20:25:31 +000037 <groupbox width="300px" height="100px">
ahmedba98a7862010-12-19 20:21:17 +000038 <caption label="HR Notice" style="font-size:12px;font-weight:bold;"/>
ahmedb7f5981d2010-12-19 20:25:31 +000039 <vbox id="hrNoticeView" style="margin-top:3px; margin-left:3px" apply="com.ellisdon.portal.mv.controller.VacationHRNoticeViewControllor">
ahmedba98a7862010-12-19 20:21:17 +000040 <!--
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>
ahmedb7f5981d2010-12-19 20:25:31 +000058 <label style="font-size:12px;" value="As of 01-Jan-2010 you had "/>
ahmedba98a7862010-12-19 20:21:17 +000059 <style dynamic="true">
60 .mylbl {
61 border: 1px solid black;
62 padding-left:10px;
63 padding-right:10px;
64 }
65 </style>
ahmedb7f5981d2010-12-19 20:25:31 +000066 <label sclass="mylbl" id="lblCarryForwardDays" style="font-size:12px;font-weight:bold;color:red;" width="30px" value="0" />
ahmedba98a7862010-12-19 20:21:17 +000067 <label style="font-size:12px;" value=" days vacation carried forward. This vacation needs to be taken by"/>
68 </div>
69 </hbox>
ahmedb7f5981d2010-12-19 20:25:31 +000070 <label style="font-size:12px;" value="01-Jul-2012."/>
ahmedba98a7862010-12-19 20:21:17 +000071 </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" />
ahmedb7f5981d2010-12-19 20:25:31 +000087 <datebox id="fromDate" cols="16" format="yyyy/MM/dd" constraint="no empty"/>
ahmedba98a7862010-12-19 20:21:17 +000088 </row>
89
90 <row>
91 <label value="To" width="150px" />
ahmedb7f5981d2010-12-19 20:25:31 +000092 <datebox id="toDate" cols="16" format="yyyy/MM/dd" constraint="no empty"/>
ahmedba98a7862010-12-19 20:21:17 +000093 </row>
94
95 <row>
96 <label value="Days taken" width="150px" />
ahmedb440eb1e2010-12-20 05:27:36 +000097 <div>
98 <spinner id="daysTaken" value="1" constraint="no negative, no empty" />
99 <checkbox id="halfDayCheck" label="Half Day"/>
100 </div>
ahmedba98a7862010-12-19 20:21:17 +0000101 </row>
102
103 <row>
104 <label value="Comments" width="150px" />
ahmedb440eb1e2010-12-20 05:27:36 +0000105 <textbox id="comments" value="" width="350px" maxlength="45" />
ahmedba98a7862010-12-19 20:21:17 +0000106 </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>