egroupware/timesheet/templates/default/index.xet
2017-01-17 10:34:28 -07:00

105 lines
4.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE overlay PUBLIC "-//Stylite AG//eTemplate 2//EN" "http://www.egroupware.org/etemplate2.dtd">
<!-- $Id$ -->
<overlay>
<template id="timesheet.index.dates" template="" lang="" group="0" version="1.2.001" >
<hbox>
<description value="Start"/>
<date id="startdate" onchange="widget.getParent().getWidgetById('enddate').set_min(widget.getValue());return true;"/>
<description value="End"/>
<date id="enddate" onchange="widget.getParent().getWidgetById('startdate').set_max(widget.getValue());return true;"/>
</hbox>
</template>
<template id="timesheet.index.add" template="" lang="" group="0" version="1.7.001">
<buttononly statustext="Add" id="add" onclick="app.timesheet.add_with_extras(widget,'','$cont[action]','$cont[action_id]');"/>
</template>
<template id="timesheet.index.rows" template="" lang="" group="0" version="1.9.001">
<grid width="100%">
<columns>
<column width="135"/>
<column width="70%"/>
<column width="15%"/>
<column width="60"/>
<column width="60" disabled="@no_ts_quantity"/>
<column width="60" disabled="@no_ts_unitprice"/>
<column width="60" disabled="@no_ts_total"/>
<column width="130" disabled="@no_owner_col"/>
<column width="135"/>
<column width="50"/>
<column width="10%" disabled="@no_ts_status"/>
<column width="15%"/>
</columns>
<rows>
<row class="th">
<nextmatch-sortheader label="Date" id="ts_start"/>
<grid spacing="0" padding="0">
<columns>
<column/>
</columns>
<rows>
<row disabled="@pm_integration=full">
<nextmatch-filterheader id="ts_project" no_lang="1" options="All projects" search="false"/>
</row>
<row disabled="!@pm_integration=full">
<nextmatch-entryheader id="pm_id" no_lang="1" blur="All projects" only_app="projectmanager"/>
</row>
<row>
<nextmatch-customfilter id="linked" options="link-entry"/>
</row>
<row>
<nextmatch-sortheader label="Title" id="ts_title"/>
</row>
</rows>
</grid>
<nextmatch-sortheader label="Category" id="cat_id"/>
<vbox>
<nextmatch-sortheader label="Duration" id="ts_duration"/>
<date-duration id="duration" readonly="true" options=",h,,,1"/>
</vbox>
<vbox>
<nextmatch-sortheader label="Quantity" id="ts_quantity"/>
<textbox type="float" id="quantity" readonly="true" precision="3"/>
</vbox>
<nextmatch-sortheader label="Price" id="ts_unitprice"/>
<vbox>
<nextmatch-sortheader label="Total" id="ts_total"/>
<textbox type="float" id="price" readonly="true" precision="2"/>
</vbox>
<nextmatch-filterheader id="ts_owner" no_lang="1" options="User" class="$cont[ownerClass]"/>
<nextmatch-sortheader label="Created" id="ts_created"/>
<nextmatch-sortheader label="ID" id="ts_id"/>
<nextmatch-filterheader id="ts_status" options="Status"/>
<nextmatch-customfields id="customfields"/>
</row>
<row class="$row_cont[cat_id] $row_cont[class]">
<date-time id="${row}[ts_start]" readonly="true" options=",8"/>
<vbox>
<link id="${row}[ts_link]" no_lang="1"/>
<description id="${row}[ts_title]" no_lang="1" class="ts_title $row_cont[titleClass]"/>
<description id="${row}[ts_description]" class="ts_description" no_lang="1"/>
</vbox>
<menulist class="noWrap">
<menupopup type="select-cat" id="${row}[cat_id]" readonly="true"/>
</menulist>
<date-duration id="${row}[ts_duration]" readonly="true" options=",h,,,1" align="right"/>
<textbox type="float" id="${row}[ts_quantity]" no_lang="1" readonly="true" precision="3"/>
<description id="${row}[ts_unitprice]" no_lang="1"/>
<textbox type="float" id="${row}[ts_total]" no_lang="1" readonly="true" precision="2"/>
<menulist class="$cont[ownerClass]">
<menupopup type="select-account" id="${row}[ts_owner]" readonly="true"/>
</menulist>
<date-time id="${row}[ts_created]" readonly="true"/>
<description id="${row}[ts_id]"/>
<menulist>
<menupopup id="${row}[ts_status]" readonly="true"/>
</menulist>
<customfields-list id="$row" readonly="true"/>
</row>
</rows>
</grid>
</template>
<template id="timesheet.index" template="" lang="" group="0" version="1.9.001">
<nextmatch id="nm" options="timesheet.index.rows" header_left="timesheet.index.add" header_right="timesheet.index.dates"/>
</template>
</overlay>