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">
2006-09-12 12:37:13 +02:00
<hbox rows="1" cols="1" class="custom_hide">
2006-03-21 23:18:29 +01:00
<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>
2006-09-12 12:37:13 +02:00
<template id="timesheet.index.add" template="" lang="" group="0" version="1.3.001">
2008-10-07 10:57:09 +02:00
<button label="Add" id="add" onclick="window.open(egw::link('/index.php','menuaction=timesheet.timesheet_ui.edit'),'_blank','dependent=yes,width=600,height=400,scrollbars=yes,status=yes'); return false;"/>
2006-09-12 12:37:13 +02:00
</template>
2009-03-23 10:53:03 +01:00
<template id="timesheet.index.rows" template="" lang="" group="0" version="1.7.001">
2005-12-19 05:23:14 +01:00
<grid width="100%">
<columns>
<column width="15%"/>
<column width="50%"/>
<column/>
2006-09-12 12:37:13 +02:00
<column/>
2009-03-23 10:53:03 +01:00
<column disabled="@no_ts_quantity"/>
<column disabled="@no_ts_unitprice"/>
<column disabled="@no_ts_total"/>
2005-12-19 05:23:14 +01:00
<column disabled="@no_owner_col"/>
2009-03-23 10:53:03 +01:00
<column disabled="@no_ts_status"/>
2005-12-19 05:23:14 +01:00
<column/>
2008-10-15 18:37:23 +02:00
<column/>
2005-12-19 05:23:14 +01:00
</columns>
<rows>
<row class="th">
<nextmatch-sortheader label="Date" id="ts_start"/>
2009-03-23 10:53:03 +01:00
<grid spacing="0" padding="0">
2006-09-12 17:21:23 +02:00
<columns>
<column/>
</columns>
<rows>
<row disabled="@pm_integration=full">
<nextmatch-filterheader options="All projects" id="ts_project" no_lang="1"/>
</row>
<row disabled="!@pm_integration=full">
<nextmatch-customfilter options="projectmanager-select,All projects" id="pm_id" onchange="1"/>
</row>
<row>
<nextmatch-sortheader label="Title" id="ts_title"/>
</row>
</rows>
</grid>
2007-07-10 09:34:30 +02:00
<nextmatch-sortheader label="Category" id="cat_id"/>
2005-12-19 05:23:14 +01:00
<vbox>
<nextmatch-sortheader label="Duration" id="ts_duration"/>
<date-duration id="duration" options=",h,,,1" readonly="true"/>
</vbox>
2007-07-10 09:34:30 +02:00
<vbox options="0,0">
<nextmatch-sortheader label="Quantity" id="ts_quantity"/>
<textbox type="float" id="quantity" readonly="true" precision="3"/>
</vbox>
2005-12-19 05:23:14 +01:00
<nextmatch-sortheader label="Price" id="ts_unitprice"/>
<vbox>
<nextmatch-sortheader label="Total" id="ts_total"/>
2006-09-12 12:37:13 +02:00
<textbox type="float" id="price" readonly="true" precision="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]"/>
2009-03-23 10:53:03 +01:00
<nextmatch-filterheader id="ts_status" onchange="1" options="All status"/>
2008-10-15 18:37:23 +02:00
<nextmatch-customfields id="customfields" readonly="true"/>
2009-03-23 10:53:03 +01:00
<hbox class="noPrint">
<description value="Actions" class="noPrint" align="right"/>
<button label="Check all" image="check" id="check_all" needed="1" statustext="Check all" onclick="toggle_all(this.form,form::name('checked[]')); return false;"/>
</hbox>
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"/>
2009-03-23 10:53:03 +01:00
<vbox options="0,0">
2005-12-19 05:23:14 +01:00
<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-09-12 12:37:13 +02:00
<menulist class="noWrap">
<menupopup type="select-cat" readonly="true" id="${row}[cat_id]"/>
</menulist>
2006-03-27 00:11:58 +02:00
<date-duration id="${row}[ts_duration]" readonly="true" options=",h,,,1"/>
2006-09-12 12:37:13 +02:00
<textbox type="float" id="${row}[ts_quantity]" no_lang="1" precision="3" readonly="true"/>
2005-12-19 05:23:14 +01:00
<description no_lang="1" id="${row}[ts_unitprice]"/>
2006-09-12 12:37:13 +02:00
<textbox type="float" no_lang="1" id="${row}[ts_total]" precision="2" readonly="true"/>
<menulist class="$cont[ownerClass]">
2005-12-19 05:23:14 +01:00
<menupopup type="select-account" id="${row}[ts_owner]" readonly="true"/>
</menulist>
2009-03-23 10:53:03 +01:00
<menulist>
<menupopup id="${row}[ts_status]" readonly="true"/>
</menulist>
2008-10-15 18:37:23 +02:00
<customfields-list id="$row" readonly="true"/>
2009-03-23 10:53:03 +01:00
<hbox class="noPrint" align="right">
2008-10-07 10:57:09 +02:00
<button image="view" label="View" id="view[$row_cont[ts_id]]" onclick="window.open(egw::link('/index.php','menuaction=timesheet.timesheet_ui.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.timesheet_ui.edit&ts_id=$row_cont[ts_id]'),'_blank','dependent=yes,width=600,height=400,scrollbars=yes,status=yes'); return false;"/>
2005-12-19 05:23:14 +01:00
<button image="delete" label="Delete" id="delete[$row_cont[ts_id]]" statustext="Delete this entry" onclick="return confirm('Delete this entry');"/>
2009-03-23 10:53:03 +01:00
<checkbox options="$row_cont[ts_id]" id="checked[]" statustext="Select multiple contacts for a further action"/>
2005-12-19 05:23:14 +01:00
</hbox>
</row>
</rows>
</grid>
</template>
2009-03-23 10:53:03 +01:00
<template id="timesheet.index" template="" lang="" group="0" version="1.7.001">
2005-12-19 05:23:14 +01:00
<grid width="100%">
<columns>
<column/>
2009-03-23 10:53:03 +01:00
<column/>
2005-12-19 05:23:14 +01:00
</columns>
<rows>
<row disabled="!@msg">
<description span="all" class="redItalic" no_lang="1" id="msg" align="center"/>
2009-03-23 10:53:03 +01:00
<description/>
2005-12-19 05:23:14 +01:00
</row>
2006-03-21 23:18:29 +01:00
<row disabled="1">
2006-09-12 12:37:13 +02:00
<hbox>
2009-03-23 10:53:03 +01:00
<template id="dates"/>
<template id="add" align="right"/>
2006-09-12 12:37:13 +02:00
</hbox>
2009-03-23 10:53:03 +01:00
<description/>
2006-03-21 23:18:29 +01:00
</row>
2005-12-19 05:23:14 +01:00
<row>
2009-03-23 10:53:03 +01:00
<nextmatch id="nm" options="timesheet.index.rows" span="all"/>
2005-12-19 05:23:14 +01:00
</row>
2006-03-27 00:11:58 +02:00
<row class="noPrint">
2008-10-07 10:57:09 +02:00
<button label="Add" id="add" onclick="window.open(egw::link('/index.php','menuaction=timesheet.timesheet_ui.edit'),'_blank','dependent=yes,width=600,height=400,scrollbars=yes,status=yes'); return false;"/>
2009-03-23 10:53:03 +01:00
<hbox align="right">
<checkbox id="use_all" label="whole query" onchange="if (this.checked==true && !confirm('Apply the action on the whole query, NOT only the shown contacts!!!')) this.checked=false;" statustext="Apply the action on the whole query, NOT only the shown contacts!!!"/>
<menulist>
<menupopup onchange="do_action(this);" options="Select an action or timesheet you want to modify..." no_lang="1" id="action" statustext="Select an action or timesheet to modify"/>
</menulist>
<button image="arrow_ltr" label="Check all" id="check_all" statustext="Check all" onclick="toggle_all(this.form,form::name('nm[rows][checked][]')); return false;" needed="1" class="checkAllArrow"/>
</hbox>
2005-12-19 05:23:14 +01:00
</row>
2008-03-09 08:33:42 +01:00
<row disabled="1">
2007-07-10 09:34:30 +02:00
<button label="Export" onclick="timesheet_export(); return false;" id="export"/>
2009-03-23 10:53:03 +01:00
<description/>
2007-07-10 09:34:30 +02:00
</row>
2005-12-19 05:23:14 +01:00
</rows>
</grid>
</template>
</overlay>