2005-12-19 05:23:14 +01:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<!-- $Id$ -->
|
|
|
|
<overlay>
|
2006-03-21 23:18:29 +01:00
|
|
|
<template id="timesheet.index.dates" template="" lang="" group="0" version="1.2.001">
|
|
|
|
<hbox data="" rows="1" cols="1" class="custom_hide">
|
|
|
|
<description value="Start"/>
|
2006-03-27 00:11:58 +02:00
|
|
|
<date id="startdate"/>
|
2006-03-21 23:18:29 +01:00
|
|
|
<description value="End"/>
|
|
|
|
<date id="enddate" statustext="Leave it empty for a full week"/>
|
|
|
|
</hbox>
|
|
|
|
<styles>
|
|
|
|
.custom_hide { visibility: hidden; }
|
|
|
|
</styles>
|
|
|
|
</template>
|
2005-12-19 05:23:14 +01:00
|
|
|
<template id="timesheet.index.rows" template="" lang="" group="0" version="0.1.001">
|
|
|
|
<grid width="100%">
|
|
|
|
<columns>
|
|
|
|
<column width="15%"/>
|
|
|
|
<column width="50%"/>
|
|
|
|
<column/>
|
|
|
|
<column/>
|
|
|
|
<column/>
|
|
|
|
<column/>
|
|
|
|
<column disabled="@no_owner_col"/>
|
|
|
|
<column/>
|
|
|
|
</columns>
|
|
|
|
<rows>
|
|
|
|
<row class="th">
|
|
|
|
<nextmatch-sortheader label="Date" id="ts_start"/>
|
|
|
|
<vbox no_lang="1">
|
|
|
|
<nextmatch-filterheader options="Project" id="ts_project" no_lang="1"/>
|
|
|
|
<nextmatch-sortheader label="Title" id="ts_title"/>
|
|
|
|
</vbox>
|
|
|
|
<vbox>
|
|
|
|
<nextmatch-sortheader label="Duration" id="ts_duration"/>
|
|
|
|
<date-duration id="duration" options=",h,,,1" readonly="true"/>
|
|
|
|
</vbox>
|
|
|
|
<nextmatch-sortheader label="Quantity" id="ts_quantity"/>
|
|
|
|
<nextmatch-sortheader label="Price" id="ts_unitprice"/>
|
|
|
|
<vbox>
|
|
|
|
<nextmatch-sortheader label="Total" id="ts_total"/>
|
2006-03-27 14:20:06 +02:00
|
|
|
<textbox type="float" id="price" readonly="true" size=",2"/>
|
2005-12-19 05:23:14 +01:00
|
|
|
</vbox>
|
2006-03-27 14:20:06 +02:00
|
|
|
<nextmatch-filterheader id="ts_owner" options="User" no_lang="1" class="$cont[ownerClass]"/>
|
2006-03-27 00:11:58 +02:00
|
|
|
<description value="Actions" class="noPrint"/>
|
2005-12-19 05:23:14 +01:00
|
|
|
</row>
|
2006-03-27 00:11:58 +02:00
|
|
|
<row class="$row_cont[class]">
|
2005-12-19 05:23:14 +01:00
|
|
|
<date-time id="${row}[ts_start]" readonly="true" options=",8"/>
|
|
|
|
<vbox>
|
|
|
|
<link id="${row}[ts_link]" no_lang="1"/>
|
2006-03-27 00:11:58 +02:00
|
|
|
<description id="${row}[ts_title]" no_lang="1" class="$row_cont[titleClass]"/>
|
2005-12-19 05:23:14 +01:00
|
|
|
<description id="${row}[ts_description]" no_lang="1"/>
|
|
|
|
</vbox>
|
2006-03-27 00:11:58 +02:00
|
|
|
<date-duration id="${row}[ts_duration]" readonly="true" options=",h,,,1"/>
|
2006-03-27 14:20:06 +02:00
|
|
|
<textbox type="float" id="${row}[ts_quantity]" no_lang="1" size=",3" readonly="true"/>
|
2005-12-19 05:23:14 +01:00
|
|
|
<description no_lang="1" id="${row}[ts_unitprice]"/>
|
2006-03-27 14:20:06 +02:00
|
|
|
<textbox type="float" no_lang="1" id="${row}[ts_total]" size=",2" readonly="true"/>
|
|
|
|
<menulist span=",$cont[ownerClass]">
|
2005-12-19 05:23:14 +01:00
|
|
|
<menupopup type="select-account" id="${row}[ts_owner]" readonly="true"/>
|
|
|
|
</menulist>
|
2006-03-27 00:11:58 +02:00
|
|
|
<hbox class="noPrint">
|
2005-12-19 05:23:14 +01:00
|
|
|
<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"/>
|
|
|
|
<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;"/>
|
|
|
|
<button image="delete" label="Delete" id="delete[$row_cont[ts_id]]" statustext="Delete this entry" onclick="return confirm('Delete this entry');"/>
|
|
|
|
</hbox>
|
|
|
|
</row>
|
|
|
|
</rows>
|
|
|
|
</grid>
|
|
|
|
</template>
|
2006-03-21 23:18:29 +01:00
|
|
|
<template id="timesheet.index" template="" lang="" group="0" version="1.2.001">
|
2005-12-19 05:23:14 +01:00
|
|
|
<grid width="100%">
|
|
|
|
<columns>
|
|
|
|
<column/>
|
|
|
|
</columns>
|
|
|
|
<rows>
|
|
|
|
<row disabled="!@msg">
|
|
|
|
<description span="all" class="redItalic" no_lang="1" id="msg" align="center"/>
|
|
|
|
</row>
|
2006-03-21 23:18:29 +01:00
|
|
|
<row disabled="1">
|
|
|
|
<template align="right" id="timesheet.index.dates"/>
|
|
|
|
</row>
|
2005-12-19 05:23:14 +01:00
|
|
|
<row>
|
|
|
|
<nextmatch id="nm" options="timesheet.index.rows"/>
|
|
|
|
</row>
|
2006-03-27 00:11:58 +02:00
|
|
|
<row class="noPrint">
|
2005-12-19 05:23:14 +01:00
|
|
|
<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;"/>
|
|
|
|
</row>
|
|
|
|
</rows>
|
|
|
|
</grid>
|
|
|
|
</template>
|
|
|
|
</overlay>
|