Update template js to et2

This commit is contained in:
Nathan Gray 2013-08-26 18:30:58 +00:00
parent db7d12af4b
commit cb22a93104
2 changed files with 32 additions and 34 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,20 +1,16 @@
<?xml version="1.0"?>
<!-- $Id$ -->
<overlay>
<template id="infolog.index.dates" template="" lang="" group="0" version="1.7.001">
<hbox class="custom_hide">
<description value="Start"/>
<date id="startdate"/>
<description value="End"/>
<date statustext="Leave it empty for a full week" id="enddate"/>
</hbox>
<template id="infolog.index.header_left" template="" lang="" group="0" version="1.0.1.001">
<description value="InfoLog" class="headertext bold"/>
<styles>.bold { font-weight: bold; }</styles>
</template>
<template id="infolog.index.header_right" template="" lang="" group="0" version="1.7.001">
<template id="infolog.index.header_right" template="" lang="" group="0" version="1.9.001">
<hbox>
<description value="Add:" class="headertext"/>
<button statustext="Add a new ToDo" label="ToDo" id="add[task]" onclick="window.open(egw::link('/index.php','menuaction=infolog.infolog_ui.edit&amp;type=task&amp;action=$cont[action]&amp;action_id=$cont[action_id]&amp;cat_id=$cont[cat_id]'),'_blank','dependent=yes,width=750,height=600,scrollbars=yes,status=yes'); return false;" image="task"/>
<button statustext="Add a new Phonecall" label="Phonecall" id="add[phone]" onclick="window.open(egw::link('/index.php','menuaction=infolog.infolog_ui.edit&amp;type=phone&amp;action=$cont[action]&amp;action_id=$cont[action_id]&amp;cat_id=$cont[cat_id]'),'_blank','dependent=yes,width=750,height=600,scrollbars=yes,status=yes'); return false;" image="phone"/>
<button statustext="Add a new Note" label="Note" id="add[note]" onclick="window.open(egw::link('/index.php','menuaction=infolog.infolog_ui.edit&amp;type=note&amp;action=$cont[action]&amp;action_id=$cont[action_id]&amp;cat_id=$cont[cat_id]'),'_blank','dependent=yes,width=750,height=600,scrollbars=yes,status=yes'); return false;" image="note"/>
<button statustext="Add a new ToDo" label="ToDo" id="add[task]" onclick="egw.open('','infolog','add',{type:'task',action: '$cont[action]',action_id:'$cont[action_id]',cat_id:widget.getRoot().getWidgetById('cat_id').getValue()})" image="task"/>
<button statustext="Add a new Phonecall" label="Phonecall" id="add[phone]" onclick="egw.open('','infolog','add',{type:'phone',action: '$cont[action]',action_id:'$cont[action_id]',cat_id:widget.getRoot().getWidgetById('cat_id').getValue()})" image="phone"/>
<button statustext="Add a new Note" label="Note" id="add[note]" onclick="egw.open('','infolog','add',{type:'note',action: '$cont[action]',action_id:'$cont[action_id]',cat_id:widget.getRoot().getWidgetById('cat_id').getValue()})" image="note"/>
</hbox>
</template>
<template id="infolog.index.rows" template="" lang="" group="0" version="1.9.005">
@ -65,11 +61,11 @@
<nextmatch-sortheader label="Enddate" id="info_enddate"/>
<nextmatch-sortheader label="Date completed" id="info_datecompleted"/>
</vbox>
<vbox cols="1" rows="2">
<vbox>
<nextmatch-sortheader label="Times" id="info_used_time"/>
<nextmatch-sortheader label="planned" id="info_planned_time" class="planned"/>
</vbox>
<vbox cols="1" rows="2" options="0,0">
<vbox options="0,0">
<nextmatch-sortheader label="Times" id="info_used_time"/>
<nextmatch-sortheader label="planned" id="info_planned_time" class="planned"/>
<nextmatch-sortheader label="Re-planned" id="info_replanned_time" class="replanned"/>
@ -103,12 +99,12 @@
<menulist>
<menupopup type="select-cat" id="${row}[info_cat]" readonly="true"/>
</menulist>
<vbox cols="1" rows="3" options="0,0,1">
<vbox options="0,0,1">
<date-time id="${row}[info_startdate]" readonly="true" options=",8" class="fixedHeight"/>
<date-time id="${row}[info_enddate]" readonly="true" options=",8" class="$row_cont[end_class] fixedHeight"/>
<date-time id="${row}[info_datecompleted]" readonly="true" class="fixedHeight"/>
</vbox>
<vbox cols="1" rows="3" options="0,0">
<vbox options="0,0">
<hbox readonly="true">
<hbox readonly="true" options="1,0">
<date-duration id="${row}[info_used_time]" readonly="true" options="@duration_format"/>
@ -118,7 +114,7 @@
</hbox>
<date-duration id="${row}[info_planned_time]" readonly="true" options="@duration_format" span="all" class="planned"/>
</vbox>
<vbox cols="1" rows="3" options="0,0">
<vbox options="0,0">
<hbox id="r_used_time" options="1,0">
<image label="Times" src="timesheet"/>
<date-duration id="${row}[info_used_time]" readonly="true" options="@duration_format"/>
@ -139,23 +135,23 @@
</menulist>
<listbox type="select-account" id="${row}[info_responsible]" readonly="true" rows="5"/>
</vbox>
<vbox options="0" orient="0">
<vbox options="0">
<date-time id="${row}[info_datemodified]" readonly="true"/>
<menulist>
<menupopup type="select-account" id="${row}[info_modifier]" readonly="true"/>
</menulist>
</vbox>
<vbox options="0" class="noPrint" orient="0">
<hbox options="0,0" class="noPrint" orient="0">
<vbox options="0" class="noPrint">
<hbox options="0,0" class="noPrint">
<button statustext="Edit this entry" label="Edit" id="edit[$row_cont[info_id]]" onclick="window.open(egw::link('/index.php','menuaction=infolog.infolog_ui.edit&amp;info_id=$row_cont[info_id]'),'_blank','dependent=yes,width=750,height=600,scrollbars=yes,status=yes'); return false;" image="edit"/>
<button statustext="Delete this entry" label="Delete" id="delete[$row_cont[info_id]]" onclick="return $row_cont[info_anz_subs] || confirm('Delete this entry');" image="delete"/>
<checkbox align="right" statustext="Select multiple contacts for a further action" id="checked[]" options="$row_cont[info_id]"/>
</hbox>
<hbox options="0,0" class="noPrint" orient="0">
<hbox options="0,0" class="noPrint">
<button statustext="Sets the status of this entry to done" label="Set status to done" id="close[$row_cont[info_id]]" image="done"/>
<button statustext="Sets the status of this entry and its subs to done" label="Set status to done for all entries" id="close_all[$row_cont[info_id]]" image="done_all"/>
</hbox>
<hbox options="0,0" class="image16" orient="0">
<hbox options="0,0" class="image16">
<button label="Insert in document" id="document[$row_cont[info_id]]" image="etemplate/merge"/>
<image label="Filemanager" src="filemanager/navbar" href="/index.php?menuaction=filemanager.filemanager_ui.index&amp;path=/apps/infolog/$row_cont[info_id]" class="image16"/>
</hbox>
@ -164,7 +160,7 @@
</rows>
</grid>
</template>
<template id="infolog.index" template="" lang="" group="0" version="1.9.004">
<template id="infolog.index" template="" lang="" group="0" version="1.9.005">
<grid width="100%" border="0" spacing="0" padding="0">
<columns>
<column width="70%"/>
@ -178,26 +174,28 @@
<description align="center" id="msg" no_lang="1" span="all" class="redItalic"/>
<description/>
<description/>
<description/>
</row>
<row disabled="1">
<template id="header_left"/>
<template id="header_right"/>
</row>
<row>
<nextmatch id="nm" options="infolog.index.rows" span="all" header_left="infolog.index.dates"/>
<nextmatch id="nm" template="infolog.index.rows" span="all"/>
</row>
<row class="noPrint" disabled="!@nm[selectcols]=/actions/">
<hbox>
<button statustext="Add a new Entry" label="Add" id="add[note]" onclick="window.open(egw::link('/index.php','menuaction=infolog.infolog_ui.edit&amp;type=note&amp;action=$cont[action]&amp;action_id=$cont[action_id]&amp;cat_id={$cont[nm][cat_id]}'),'_blank','dependent=yes,width=750,height=600,scrollbars=yes,status=yes'); return false;"/>
<button statustext="Add a new Entry" label="Add" id="add[note]" onclick="egw.open('','infolog','add',{type:'note',action: '$cont[action]',action_id:'$cont[action_id]',cat_id:$cont[cat_id])"/>
<button statustext="Back to main list" label="Cancel" id="cancel"/>
</hbox>
<hbox align="right" span="all">
<hbox align="right" orient="0" span="all">
<buttononly statustext="Select action" label="Select action" id="legacy_actions" onclick="if (!egw_globalObjectManager.getObjectById('infolog.index.rows').executeActionImplementation(this, 'popup')) alert(egw::lang('You need to select some entries first!')); return false;;"/>
<button statustext="Check all" label="Check all" id="check_all" needed="1" onclick="egw_globalObjectManager.getObjectById('infolog.index.rows').toggleAllSelected(); return false;" image="arrow_ltr" class="checkAllArrow"/>
</hbox>
</row>
<row>
<hbox class=" ">
<box class="action_popup prompt" id="responsible_popup">
<box id="responsible_popup" class="action_popup prompt">
<vbox>
<description value="Change responsible" class="promptheader"/>
<description value="Select users or groups"/>
@ -209,7 +207,7 @@
</hbox>
</vbox>
</box>
<box class="action_popup prompt" id="delete_popup">
<box id="delete_popup" class="action_popup prompt">
<vbox>
<description value="Delete" class="promptheader"/>
<description value="Delete selected entries?" id="delete_prompt"/>
@ -220,7 +218,7 @@
</hbox>
</vbox>
</box>
<box class="action_popup prompt" id="link_popup">
<box id="link_popup" class="action_popup prompt">
<vbox>
<description value="Add / Remove link" class="promptheader"/>
<link-entry id="link" class="action_popup-content"/>