2015-02-17 10:55:05 +01:00
<?xml version="1.0" encoding="UTF-8"?>
2023-01-01 18:49:31 +01:00
<!DOCTYPE overlay PUBLIC "-//EGroupware GmbH//eTemplate 2.0//EN" "https://www.egroupware.org/etemplate2.0.dtd">
2005-12-19 05:23:14 +01:00
<overlay>
2009-10-26 09:17:06 +01:00
<template id="timesheet.edit.general" template="" lang="" group="0" version="1.7.002">
2014-12-05 18:29:41 +01:00
<grid width="100%" >
2005-12-19 05:23:14 +01:00
<columns>
2016-04-11 14:31:18 +02:00
<column width="92"/>
<column width="185"/>
2014-03-12 09:43:35 +01:00
<column width="30"/>
2016-04-11 14:31:18 +02:00
<column width="92" disabled="@ts_viewtype"/>
<column width="105" disabled="@ts_viewtype"/>
2014-03-11 10:59:35 +01:00
<column width="30"/>
2016-04-11 14:31:18 +02:00
<column width="50"/>
2005-12-19 05:23:14 +01:00
</columns>
<rows>
2014-03-11 10:59:35 +01:00
<row>
2023-01-01 18:49:31 +01:00
<et2-description value="Project" for="ts_project"></et2-description>
<et2-hbox disabled="@pm_integration=none">
<et2-link-entry id="pm_id" onchange="app.timesheet.pm_id_changed" width="99%" onlyApp="projectmanager" placeholder="None"></et2-link-entry>
</et2-hbox>
<et2-description></et2-description>
<et2-hbox disabled="@pm_integration=full" span="all">
<et2-textbox id="ts_project" maxlength="80" placeholder="@ts_project_blur"></et2-textbox>
</et2-hbox>
2014-03-11 10:59:35 +01:00
</row>
<row disabled="@ts_viewtype">
2023-01-01 18:49:31 +01:00
<et2-description value="Unitprice" for="ts_unitprice"></et2-description>
<et2-hbox disabled="@pm_integration=none" >
2022-10-13 18:50:28 +02:00
<projectmanager-pricelist id="pl_id" class="et2_fullWidth"
2023-04-06 00:42:50 +02:00
onchange="let option = this.select_options.find(e=>e.value == this.value) || {label:''};window.app.timesheet.et2.getWidgetById('ts_unitprice').set_value(option.label.lastIndexOf('(') < 0 ? '' : option.label.slice(option.label.lastIndexOf('(')+1,-1));"
2022-10-13 18:50:28 +02:00
emptyLabel="None"/>
2023-01-01 18:49:31 +01:00
</et2-hbox>
<et2-description></et2-description>
<et2-hbox disabled="@pm_integration=none">
<et2-number id="ts_unitprice" span="all"></et2-number>
</et2-hbox>
2008-08-04 14:48:01 +02:00
</row>
<row class="row" disabled="!@ts_viewtype">
2023-01-01 18:49:31 +01:00
<et2-description value="comment"></et2-description>
2023-06-23 18:43:07 +02:00
<et2-textarea id="ts_description_short" rows="5" cols="50"></et2-textarea>
<et2-description></et2-description>
<et2-description></et2-description>
<et2-description></et2-description>
</row>
<row class="row" disabled="@ts_viewtype">
<et2-description value="Quantity" for="ts_quantity"></et2-description>
<et2-number statustext="empty if identical to duration" id="ts_quantity" precision="3" placeholder="@ts_quantity_blur"></et2-number>
<et2-description></et2-description>
</row>
<row class="row" disabled="@ts_viewtype">
<et2-description value="Category" for="cat_id"></et2-description>
<et2-select-cat span="all" id="cat_id" application="timesheet" emptyLabel="None"></et2-select-cat>
</row>
</rows>
2005-12-19 05:23:14 +01:00
</grid>
</template>
2008-08-04 14:48:01 +02:00
<template id="timesheet.edit.notes" template="" lang="" group="0" version="1.5.001">
2023-01-01 18:49:31 +01:00
<et2-textarea id="ts_description" rows="9" cols="70"></et2-textarea>
2005-12-19 05:23:14 +01:00
</template>
<template id="timesheet.edit.links" template="" lang="" group="0" version="0.1.001">
2014-12-05 18:29:41 +01:00
<grid width="100%" overflow="auto">
2005-12-19 05:23:14 +01:00
<columns>
2014-03-11 10:59:35 +01:00
<column width="99%"/>
2005-12-19 05:23:14 +01:00
</columns>
<rows>
<row class="row" disabled="@status_only">
2023-01-01 18:49:31 +01:00
<et2-link-to id="link_to"></et2-link-to>
2005-12-19 05:23:14 +01:00
</row>
<row class="th">
2023-01-01 18:49:31 +01:00
<et2-description value="Existing links"></et2-description>
2005-12-19 05:23:14 +01:00
</row>
2014-03-11 10:59:35 +01:00
<row class="row_off" >
2023-01-01 18:49:31 +01:00
<et2-link-list id="link_to"></et2-link-list>
2005-12-19 05:23:14 +01:00
</row>
</rows>
</grid>
</template>
2008-10-15 18:37:23 +02:00
<template id="timesheet.edit.customfields" template="" lang="" group="0" version="1.5.001">
2023-01-01 18:49:31 +01:00
<et2-box width="100%" overflow="auto">
2014-12-05 18:29:41 +01:00
<customfields class="et2_fullWidth"/>
2023-01-01 18:49:31 +01:00
</et2-box>
2008-08-04 14:48:01 +02:00
</template>
2009-09-10 10:20:27 +02:00
<template id="timesheet.edit.history" template="" lang="" group="0" version="1.7.001">
2015-02-25 17:30:49 +01:00
<historylog id="history"/>
2009-09-10 10:20:27 +02:00
</template>
2022-09-30 19:06:47 +02:00
<template id="timesheet.edit.events" template="" lang="" group="0" version="0.1.001">
<grid width="100%" overflow="auto" id="events">
<columns>
<column/>
<column/>
<column/>
2022-10-06 09:03:51 +02:00
<column/>
<column/>
2022-09-30 19:06:47 +02:00
</columns>
<rows>
<row class="th">
2023-01-01 18:49:31 +01:00
<et2-description value="Time"></et2-description>
<et2-description value="Recorded"></et2-description>
<et2-description value="Type"></et2-description>
<et2-description value="Duration"></et2-description>
<et2-description value="Sum"></et2-description>
2022-09-30 19:06:47 +02:00
</row>
2023-02-06 14:42:02 +01:00
<row id="timesheet-events::$row_cont[tse_id]">
<et2-date-time id="${row}[tse_time]" readonly="true" class="et2_clickable" onclick="app.timesheet.editEventTime"></et2-date-time>
2023-01-01 18:49:31 +01:00
<et2-date-time id="${row}[tse_timestamp]" readonly="true"></et2-date-time>
<et2-select id="${row}[tse_type]" readonly="true"></et2-select>
<et2-date-duration id="${row}[time]" readonly="true" displayFormat="h:m" dataFormat="s"></et2-date-duration>
<et2-date-duration id="${row}[total]" readonly="true" displayFormat="h:m" dataFormat="s"></et2-date-duration>
2022-09-30 19:06:47 +02:00
</row>
</rows>
</grid>
</template>
2023-02-06 14:42:02 +01:00
<template id="timesheet.edit.events.change" template="" lang="" group="0" version="1.7.002">
<et2-date-time id="time" required="true"/>
</template>
2012-10-22 20:31:11 +02:00
<template id="timesheet.edit" template="" lang="" group="0" version="1.9.002">
2005-12-19 05:23:14 +01:00
<grid width="100%">
<columns>
2016-04-11 14:31:18 +02:00
<column width="100"/>
<column width="185"/>
2014-03-12 09:43:35 +01:00
<column width="30"/>
2016-04-11 14:31:18 +02:00
<column width="100"/>
<column width="105"/>
2014-03-11 10:59:35 +01:00
<column width="30"/>
2022-08-10 15:27:51 +02:00
<column width="30"/>
2005-12-19 05:23:14 +01:00
</columns>
<rows>
2014-03-11 19:06:54 +01:00
<row disabled="@ts_viewtype" class="dialogHeader">
2023-01-01 18:49:31 +01:00
<et2-description value="Title" for="ts_title"></et2-description>
<et2-textbox id="ts_title" maxlength="255" class="et2_required" tabindex="1" span="4" placeholder="@ts_title_blur"></et2-textbox>
<et2-number id="ts_id" readonly="true" precision="0"></et2-number>
<et2-appicon src="timesheet"></et2-appicon>
2005-12-19 05:23:14 +01:00
</row>
2014-03-11 14:13:50 +01:00
<row class="dialogHeader2">
2023-01-01 18:49:31 +01:00
<et2-description value="Date" for="ts_start"></et2-description>
<et2-date id="ts_start" required="1"></et2-date>
<et2-description></et2-description>
<et2-description value="Starttime"></et2-description>
2023-04-25 21:18:55 +02:00
<et2-date-timeonly id="start_time" freeMinuteEntry="true"></et2-date-timeonly>
2005-12-19 05:23:14 +01:00
</row>
2014-03-11 19:06:54 +01:00
<row class="row dialogHeader3">
2023-03-20 21:55:16 +01:00
<et2-description value="Duration" for="ts_duration"></et2-description>
<et2-date-duration id="ts_duration" displayFormat="hm"
onchange="app.timesheet.update_quantity"></et2-date-duration>
<et2-description></et2-description>
<et2-description value="or endtime" class="et2_noWrap"></et2-description>
2023-04-25 21:18:55 +02:00
<et2-date-timeonly id="end_time" freeMinuteEntry="true"></et2-date-timeonly>
2023-03-20 21:55:16 +01:00
</row>
2005-12-19 05:23:14 +01:00
<row>
2023-01-01 18:49:31 +01:00
<et2-tabbox id="tabs" class="et2_nowrap" width="100%" span="all" tabHeight="200">
2005-12-19 05:23:14 +01:00
<tabs>
2014-03-11 10:59:35 +01:00
<tab id="notes" label="Description"/>
<tab id="general" label="Details"/>
2011-08-24 09:18:59 +02:00
<tab id="links" label="Links"/>
<tab id="customfields" label="Custom Fields"/>
<tab id="history" label="History"/>
2022-09-30 19:06:47 +02:00
<tab id="events" label="Events"/>
2005-12-19 05:23:14 +01:00
</tabs>
2014-01-17 09:10:46 +01:00
<tabpanels class="dialog-main-timeframe">
2005-12-19 05:23:14 +01:00
<template id="timesheet.edit.notes"/>
2014-03-11 10:59:35 +01:00
<template id="timesheet.edit.general"/>
2005-12-19 05:23:14 +01:00
<template id="timesheet.edit.links"/>
2008-08-04 14:48:01 +02:00
<template id="timesheet.edit.customfields"/>
2009-09-10 10:20:27 +02:00
<template id="timesheet.edit.history"/>
2022-09-30 19:06:47 +02:00
<template id="timesheet.edit.events"/>
2005-12-19 05:23:14 +01:00
</tabpanels>
2023-01-01 18:49:31 +01:00
</et2-tabbox>
2005-12-19 05:23:14 +01:00
</row>
2014-03-11 14:13:50 +01:00
<row class="dialogOperators">
2023-01-01 18:49:31 +01:00
<et2-description value="User" for="ts_owner"></et2-description>
<et2-select id="ts_owner" span="2" noLang="1"></et2-select>
<et2-description value="Status" disabled="@no_ts_status"></et2-description>
<et2-select span="3" statustext="select a status of the timesheet" id="ts_status" disabled="@no_ts_status" emptyLabel="please select"></et2-select>
2014-03-11 10:59:35 +01:00
</row>
2021-04-13 21:28:56 +02:00
<row class="dialogOperators">
2023-01-01 18:49:31 +01:00
<et2-description value="Last modified"></et2-description>
<et2-hbox span="3">
<et2-select-account id="ts_modifier" readonly="true"></et2-select-account>
<et2-date-time id="ts_modified" readonly="true" align="left" disabled="!@ts_modified"></et2-date-time>
</et2-hbox>
<et2-hbox>
<et2-description value="Created"></et2-description>
<et2-date-time id="ts_created" readonly="true" align="left"></et2-date-time>
</et2-hbox>
2005-12-19 05:23:14 +01:00
</row>
2014-03-11 14:13:50 +01:00
<row class="dialogFooterToolbar">
2023-01-01 18:49:31 +01:00
<et2-hbox orient="0" span="all">
<et2-hbox>
<et2-button hideOnReadonly="true" statustext="Edit this entry" label="Edit" id="button[edit]" image="edit"></et2-button>
<et2-button hideOnReadonly="true" statustext="Saves this entry and add a new one" label="Save & New" id="button[save_new]" image="save_new"></et2-button>
<et2-button hideOnReadonly="true" statustext="Saves the changes made" label="Save" id="button[save]" image="save"></et2-button>
<et2-button hideOnReadonly="true" statustext="Applies the changes made" label="Apply" id="button[apply]" image="apply"></et2-button>
<et2-button statustext="closes the window without saving the changes" label="Cancel" id="button[cancel]" onclick="window.close();" image="cancel"></et2-button>
2005-12-19 05:23:14 +01:00
<html id="js"/>
2023-01-01 18:49:31 +01:00
</et2-hbox>
<et2-button hideOnReadonly="true" align="right" statustext="Delete this entry" label="Delete" id="button[delete]" onclick="et2_dialog.confirm(widget,'Delete this entry','Delete')" image="delete"></et2-button>
<et2-button hideOnReadonly="true" align="right" statustext="Restore this entry" label="Undelete" id="button[undelete]" image="undelete"></et2-button>
</et2-hbox>
2005-12-19 05:23:14 +01:00
</row>
</rows>
</grid>
</template>
2023-02-06 14:42:02 +01:00
</overlay>