1 | <?xml version="1.0"?> |
---|
2 | <!-- $Id: index.xet 24276 2007-07-10 07:35:18Z ralfbecker $ --> |
---|
3 | <overlay> |
---|
4 | <template id="timesheet.index.dates" template="" lang="" group="0" version="1.2.001"> |
---|
5 | <hbox rows="1" cols="1" class="custom_hide"> |
---|
6 | <description value="Start"/> |
---|
7 | <date id="startdate"/> |
---|
8 | <description value="End"/> |
---|
9 | <date id="enddate" statustext="Leave it empty for a full week"/> |
---|
10 | </hbox> |
---|
11 | <styles> |
---|
12 | .custom_hide { visibility: hidden; } |
---|
13 | </styles> |
---|
14 | </template> |
---|
15 | <template id="timesheet.index.add" template="" lang="" group="0" version="1.3.001"> |
---|
16 | <button label="Add" id="add" onclick="window.open(egw::link('/index.php','menuaction=timesheet.uitimesheet.edit'),'_blank','dependent=yes,width=600,height=400,scrollbars=yes,status=yes'); return false;"/> |
---|
17 | </template> |
---|
18 | <template id="timesheet.index.rows" template="" lang="" group="0" version="1.3.002"> |
---|
19 | <grid width="100%"> |
---|
20 | <columns> |
---|
21 | <column width="15%"/> |
---|
22 | <column width="50%"/> |
---|
23 | <column/> |
---|
24 | <column/> |
---|
25 | <column disabled="@ts_viewtype"/> |
---|
26 | <column disabled="@ts_viewtype"/> |
---|
27 | <column disabled="@ts_viewtype"/> |
---|
28 | <column disabled="@no_owner_col"/> |
---|
29 | <column/> |
---|
30 | </columns> |
---|
31 | <rows> |
---|
32 | <row class="th"> |
---|
33 | <nextmatch-sortheader label="Date" id="ts_start"/> |
---|
34 | <grid spacing="1" padding="1"> |
---|
35 | <columns> |
---|
36 | <column/> |
---|
37 | </columns> |
---|
38 | <rows> |
---|
39 | <row disabled="@pm_integration=full"> |
---|
40 | <nextmatch-filterheader options="All projects" id="ts_project" no_lang="1"/> |
---|
41 | </row> |
---|
42 | <row disabled="!@pm_integration=full"> |
---|
43 | <nextmatch-customfilter options="projectmanager-select,All projects" id="pm_id" onchange="1"/> |
---|
44 | </row> |
---|
45 | <row> |
---|
46 | <nextmatch-sortheader label="Title" id="ts_title"/> |
---|
47 | </row> |
---|
48 | </rows> |
---|
49 | </grid> |
---|
50 | <nextmatch-sortheader label="Category" id="cat_id"/> |
---|
51 | <vbox> |
---|
52 | <nextmatch-sortheader label="Duration" id="ts_duration"/> |
---|
53 | <date-duration id="duration" options=",h,,,1" readonly="true"/> |
---|
54 | </vbox> |
---|
55 | <vbox options="0,0"> |
---|
56 | <nextmatch-sortheader label="Quantity" id="ts_quantity"/> |
---|
57 | <textbox type="float" id="quantity" readonly="true" precision="3"/> |
---|
58 | </vbox> |
---|
59 | <nextmatch-sortheader label="Price" id="ts_unitprice"/> |
---|
60 | <vbox> |
---|
61 | <nextmatch-sortheader label="Total" id="ts_total"/> |
---|
62 | <textbox type="float" id="price" readonly="true" precision="2"/> |
---|
63 | </vbox> |
---|
64 | <nextmatch-filterheader id="ts_owner" options="User" no_lang="1" class="$cont[ownerClass]"/> |
---|
65 | <description value="Actions" class="noPrint"/> |
---|
66 | </row> |
---|
67 | <row class="$row_cont[class]"> |
---|
68 | <date-time id="${row}[ts_start]" readonly="true" options=",8"/> |
---|
69 | <vbox> |
---|
70 | <link id="${row}[ts_link]" no_lang="1"/> |
---|
71 | <description id="${row}[ts_title]" no_lang="1" class="$row_cont[titleClass]"/> |
---|
72 | <description id="${row}[ts_description]" no_lang="1"/> |
---|
73 | </vbox> |
---|
74 | <menulist class="noWrap"> |
---|
75 | <menupopup type="select-cat" readonly="true" id="${row}[cat_id]"/> |
---|
76 | </menulist> |
---|
77 | <date-duration id="${row}[ts_duration]" readonly="true" options=",h,,,1"/> |
---|
78 | <textbox type="float" id="${row}[ts_quantity]" no_lang="1" precision="3" readonly="true"/> |
---|
79 | <description no_lang="1" id="${row}[ts_unitprice]"/> |
---|
80 | <textbox type="float" no_lang="1" id="${row}[ts_total]" precision="2" readonly="true"/> |
---|
81 | <menulist class="$cont[ownerClass]"> |
---|
82 | <menupopup type="select-account" id="${row}[ts_owner]" readonly="true"/> |
---|
83 | </menulist> |
---|
84 | <hbox class="noPrint"> |
---|
85 | <button image="view" label="View" id="view[$row_cont[ts_id]]" onclick="window.open(egw::link('/index.php','menuaction=timesheet.uitimesheet.view&ts_id=$row_cont[ts_id]'),'_blank','dependent=yes,width=600,height=400,scrollbars=yes,status=yes'); return false;" statustext="View this entry"/> |
---|
86 | <button image="edit" label="Edit" id="edit[$row_cont[ts_id]]" statustext="Edit this entry" onclick="window.open(egw::link('/index.php','menuaction=timesheet.uitimesheet.edit&ts_id=$row_cont[ts_id]'),'_blank','dependent=yes,width=600,height=400,scrollbars=yes,status=yes'); return false;"/> |
---|
87 | <button image="delete" label="Delete" id="delete[$row_cont[ts_id]]" statustext="Delete this entry" onclick="return confirm('Delete this entry');"/> |
---|
88 | </hbox> |
---|
89 | </row> |
---|
90 | </rows> |
---|
91 | </grid> |
---|
92 | </template> |
---|
93 | <template id="timesheet.index" template="" lang="" group="0" version="1.3.002"> |
---|
94 | <grid width="100%"> |
---|
95 | <columns> |
---|
96 | <column/> |
---|
97 | </columns> |
---|
98 | <rows> |
---|
99 | <row disabled="!@msg"> |
---|
100 | <description span="all" class="redItalic" no_lang="1" id="msg" align="center"/> |
---|
101 | </row> |
---|
102 | <row disabled="1"> |
---|
103 | <hbox> |
---|
104 | <template id="timesheet.index.dates"/> |
---|
105 | <template id="timesheet.index.add" align="right"/> |
---|
106 | </hbox> |
---|
107 | </row> |
---|
108 | <row> |
---|
109 | <nextmatch id="nm" options="timesheet.index.rows"/> |
---|
110 | </row> |
---|
111 | <row class="noPrint"> |
---|
112 | <button label="Add" id="add" onclick="window.open(egw::link('/index.php','menuaction=timesheet.uitimesheet.edit'),'_blank','dependent=yes,width=600,height=400,scrollbars=yes,status=yes'); return false;"/> |
---|
113 | </row> |
---|
114 | <row> |
---|
115 | <button label="Export" onclick="timesheet_export(); return false;" id="export"/> |
---|
116 | </row> |
---|
117 | </rows> |
---|
118 | </grid> |
---|
119 | </template> |
---|
120 | </overlay> |
---|