2016-06-21 16:37:18 +02:00
<?xml version="1.0" encoding="UTF-8"?>
2023-01-04 18:28:10 +01:00
<!DOCTYPE overlay PUBLIC "-//EGroupware GmbH//eTemplate 2.0//EN" "https://www.egroupware.org/etemplate2.0.dtd">
2016-06-21 16:37:18 +02:00
<!-- $Id: edit.xet 52376 2015-04-01 20:03:04Z nathangray $ -->
<overlay>
<template id="timesheet.view.general" template="" lang="" group="0" version="1.7.002">
<grid width="100%">
<columns>
<column width = "120"/>
<column/>
</columns>
<rows>
<row>
2023-01-04 18:28:10 +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" onlyApp="projectmanager" placeholder="None"></et2-link-entry>
</et2-hbox>
<et2-hbox disabled="@pm_integration=full" span="all">
<et2-textbox id="ts_project" maxlength="80" placeholder="@ts_project_blur"></et2-textbox>
</et2-hbox>
2016-06-21 16:37:18 +02:00
</row>
<row disabled="@ts_viewtype">
2023-01-04 18:28:10 +01:00
<et2-description value="Unitprice" for="ts_unitprice"></et2-description>
<et2-hbox disabled="@pm_integration=none" >
<et2-number id="ts_unitprice" span="all" width="30%"></et2-number>
2016-06-21 16:37:18 +02:00
<projectmanager-pricelist id="pl_id" width="70%" onchange="window.app.timesheet.et2.getWidgetById('ts_unitprice').set_value(this.options[this.selectedIndex].text.lastIndexOf('(') < 0 ? '' : this.options[this.selectedIndex].text.slice(this.options[this.selectedIndex].text.lastIndexOf('(')+1,-1));" options="None"/>
2023-01-04 18:28:10 +01:00
</et2-hbox>
2016-06-21 16:37:18 +02:00
</row>
<row class="row" disabled="!@ts_viewtype">
2023-01-04 18:28:10 +01:00
<et2-description value="comment"></et2-description>
<et2-textarea id="ts_description_short" rows="5" cols="50"></et2-textarea>
2016-06-21 16:37:18 +02:00
</row>
<row class="row" disabled="@ts_viewtype">
2023-01-04 18:28:10 +01:00
<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>
2016-06-21 16:37:18 +02:00
</row>
<row class="row" disabled="@ts_viewtype">
2023-01-04 18:28:10 +01:00
<et2-description value="Category" for="cat_id"></et2-description>
<et2-select-cat span="all" id="cat_id" application="timesheet" emptyLabel="None"></et2-select-cat>
2016-06-21 16:37:18 +02:00
</row>
</rows>
</grid>
</template>
<template id="timesheet.view.notes" template="" lang="" group="0" version="1.5.001">
2023-01-04 18:28:10 +01:00
<et2-textarea id="ts_description" rows="9" cols="70" height="250" resizeRatio="0"></et2-textarea>
2016-06-21 16:37:18 +02:00
</template>
<template id="timesheet.view.customfields" template="" lang="" group="0" version="1.5.001">
2023-02-06 16:31:14 +01:00
<customfields type_filter="@info_type" />
2016-06-21 16:37:18 +02:00
</template>
<template id="timesheet.view.ownership" template="" lang="" group="0" version="16.1.00">
<grid width="100%">
<columns>
<column width = "120"/>
<column/>
</columns>
<rows>
<row>
2023-01-04 18:28:10 +01:00
<et2-description value="User" for="ts_owner"></et2-description>
<et2-select id="ts_owner" noLang="1"></et2-select>
2016-06-21 16:37:18 +02:00
</row>
2017-01-17 18:34:10 +01:00
<row>
2023-01-04 18:28:10 +01:00
<et2-description></et2-description>
<et2-date-time id="ts_created" readonly="true" align="left"></et2-date-time>
2017-01-17 18:34:10 +01:00
</row>
2016-06-21 16:37:18 +02:00
<row disabled="!@ts_modified">
2023-01-04 18:28:10 +01:00
<et2-description value="Last modified"></et2-description>
<et2-select-account id="ts_modifier" readonly="true"></et2-select-account>
2016-06-21 16:37:18 +02:00
</row>
<row>
2023-01-04 18:28:10 +01:00
<et2-description></et2-description>
<et2-date-time id="ts_modified" readonly="true" align="left"></et2-date-time>
2016-06-21 16:37:18 +02:00
</row>
</rows>
</grid>
</template>
<template id="timesheet.view" template="" lang="" group="0" version="1.9.002">
<grid border="1" width="100%">
<columns>
<column width = "120"/>
<column/>
</columns>
<rows>
<row disabled="@hidebuttons" class="dialogHeadbar" >
2023-01-04 18:28:10 +01:00
<et2-hbox span="all" width="100%">
<et2-button statustext="Saves this entry and add a new one" id="button[save_new]" image="save_new"></et2-button>
<et2-button statustext="Applies the changes made" id="button[apply]" image="apply"></et2-button>
<et2-button statustext="Delete this entry" id="button[delete]" onclick="et2_dialog.confirm(widget,'Delete this entry','Delete')" image="delete"></et2-button>
<et2-number id="ts_id" readonly="true" class="entry_id" precision="0"></et2-number>
</et2-hbox>
2016-06-21 16:37:18 +02:00
</row>
<row disabled="!@showsearchbuttons" class="dialogHeadbar">
2023-01-04 18:28:10 +01:00
<et2-hbox span="all" width="100%">
<et2-button label="Search" id="button[search]" image="search"></et2-button>
<et2-button label="Cancel" id="button[cancelsearch]" image="cancel"></et2-button>
</et2-hbox>
2016-06-21 16:37:18 +02:00
</row>
<row disabled="@ts_viewtype">
2023-01-04 18:28:10 +01:00
<et2-description value="Title"></et2-description>
<et2-textbox id="ts_title" maxlength="255" class="et2_required" tabindex="1" placeholder="@ts_title_blur"></et2-textbox>
2016-06-21 16:37:18 +02:00
</row>
<row>
2023-01-04 18:28:10 +01:00
<et2-description value="Date"></et2-description>
<et2-date id="ts_start" required="1" ></et2-date>
2016-06-21 16:37:18 +02:00
</row>
<row>
2023-01-04 18:28:10 +01:00
<et2-description value="Starttime"></et2-description>
<et2-date-timeonly id="start_time" dataFormat="H:i"></et2-date-timeonly>
2016-06-21 16:37:18 +02:00
</row>
<row>
2023-01-04 18:28:10 +01:00
<et2-description value="Duration" for="ts_duration"></et2-description>
<et2-date-duration id="ts_duration" ></et2-date-duration>
2016-06-21 16:37:18 +02:00
</row>
<row>
2023-01-04 18:28:10 +01:00
<et2-description value="or endtime" class="et2_noWrap"></et2-description>
<et2-date-timeonly id="end_time" dataFormat="H:i"></et2-date-timeonly>
2016-06-21 16:37:18 +02:00
</row>
<row>
2023-01-04 18:28:10 +01:00
<et2-description value="Status"></et2-description>
<et2-select statustext="select a status of the timesheet" id="ts_status" emptyLabel="please select"></et2-select>
2016-06-21 16:37:18 +02:00
</row>
<row>
2023-01-19 12:20:17 +01:00
<et2-vbox span="all" width="100%">
<et2-details id="notes" summary="Description">
2016-06-21 16:37:18 +02:00
<template id="timesheet.view.notes"/>
2023-01-19 12:20:17 +01:00
</et2-details>
<et2-details id="general" summary="Details">
2016-06-21 16:37:18 +02:00
<template id="timesheet.view.general"/>
2023-01-19 12:20:17 +01:00
</et2-details>
<et2-details id="customfields" summary="Custom Fields">
2016-06-21 16:37:18 +02:00
<template id="timesheet.view.customfields"/>
2023-01-19 12:20:17 +01:00
</et2-details>
<et2-details id="ownership" summary="Ownership">
2016-06-21 16:37:18 +02:00
<template id="timesheet.view.ownership"/>
2023-01-19 12:20:17 +01:00
</et2-details>
</et2-vbox>
2016-06-21 16:37:18 +02:00
</row>
</rows>
</grid>
</template>
2023-01-04 18:28:10 +01:00
</overlay>