2015-02-17 10:55:05 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2017-02-01 09:59:37 +01:00
|
|
|
<!DOCTYPE overlay PUBLIC "-//EGroupware GmbH//eTemplate 2//EN" "http://www.egroupware.org/etemplate2.dtd">
|
2010-01-31 00:57:03 +01:00
|
|
|
<!-- $Id$ -->
|
|
|
|
<overlay>
|
2012-02-15 10:40:05 +01:00
|
|
|
<template id="admin.categories.index.rows" template="" lang="" group="0" version="1.9.002">
|
2010-01-31 00:57:03 +01:00
|
|
|
<grid width="100%">
|
|
|
|
<columns>
|
2014-09-25 14:31:52 +02:00
|
|
|
<column width="45%"/>
|
|
|
|
<column width="52%"/>
|
|
|
|
<column width="174"/>
|
|
|
|
<column width="170"/>
|
|
|
|
<column disabled="@no_access" width="106"/>
|
|
|
|
<column width="56"/>
|
2010-01-31 00:57:03 +01:00
|
|
|
<column width="80"/>
|
|
|
|
<column/>
|
|
|
|
<column width="30"/>
|
|
|
|
<column width="1%"/>
|
|
|
|
</columns>
|
|
|
|
<rows>
|
|
|
|
<row class="th">
|
|
|
|
<nextmatch-sortheader label="Name" id="name"/>
|
|
|
|
<nextmatch-sortheader label="Description" id="description"/>
|
2022-11-07 17:56:26 +01:00
|
|
|
<nextmatch-filterheader label="Application" id="app"/>
|
2012-02-15 10:40:05 +01:00
|
|
|
<nextmatch-accountfilter label="Owner" id="owner" options="all,both"/>
|
|
|
|
<nextmatch-filterheader label="Private" id="access" options="All"/>
|
2011-06-21 22:14:56 +02:00
|
|
|
<nextmatch-header align="center" label="Icon" id="icon"/>
|
2010-01-31 00:57:03 +01:00
|
|
|
<nextmatch-header label="Color" id="color"/>
|
|
|
|
<nextmatch-sortheader label="Modified" id="last_mod"/>
|
2011-06-21 22:14:56 +02:00
|
|
|
<nextmatch-header align="center" label="Children" id="subs"/>
|
|
|
|
<nextmatch-header label="Actions" id="legacy_actions"/>
|
2010-01-31 00:57:03 +01:00
|
|
|
</row>
|
2011-07-05 18:35:32 +02:00
|
|
|
<row class="$row_cont[id] $row_cont[class]">
|
2010-01-31 00:57:03 +01:00
|
|
|
<hbox options="0,0">
|
2022-11-28 17:20:06 +01:00
|
|
|
<html id="${row}[level_spacer]" class="level_spacer"/>
|
2010-01-31 00:57:03 +01:00
|
|
|
<description id="${row}[name]" class="$row_cont[class]"/>
|
|
|
|
</hbox>
|
|
|
|
<description id="${row}[description]"/>
|
|
|
|
<menulist>
|
2011-06-27 17:51:31 +02:00
|
|
|
<menupopup id="${row}[appname]" readonly="true"/>
|
2010-01-31 04:36:01 +01:00
|
|
|
</menulist>
|
|
|
|
<menulist>
|
|
|
|
<menupopup type="select-account" id="${row}[owner]" readonly="true" options="All users,groups"/>
|
2010-01-31 00:57:03 +01:00
|
|
|
</menulist>
|
2012-02-15 10:40:05 +01:00
|
|
|
<checkbox align="center" id="${row}[access]" readonly="true" options="private,public"/>
|
2021-11-18 14:54:24 +01:00
|
|
|
<image align="center" label="{$row_cont['data']['icon']}" src="${row}[icon_url]"/>
|
2010-01-31 00:57:03 +01:00
|
|
|
<description id="${row}[data][color]"/>
|
|
|
|
<date-time id="${row}[last_mod]" readonly="true"/>
|
2011-06-21 22:14:56 +02:00
|
|
|
<description align="center" id="${row}[subs]"/>
|
2010-01-31 00:57:03 +01:00
|
|
|
<hbox options="0,0">
|
2018-10-19 09:40:42 +02:00
|
|
|
<buttononly label="Edit" id="edit[$row_cont[id]]" onclick="window.open(egw::link('/index.php','menuaction=$cont[edit_link]&cat_id=$row_cont[id]&appname=$cont[appname]'),'_blank','dependent=yes,width=600,height=380,scrollbars=yes,status=yes'); return false;" options="edit"/>
|
2011-06-21 22:14:56 +02:00
|
|
|
<buttononly label="Add sub" id="add[$row_cont[id]]" onclick="window.open(egw::link('/index.php','menuaction=$cont[edit_link]&parent=$row_cont[id]&appname=$cont[appname]'),'_blank','dependent=yes,width=600,height=380,scrollbars=yes,status=yes'); return false;" options="new"/>
|
|
|
|
<buttononly statustext="Delete this category" label="Delete" id="delete[$row_cont[id]]" onclick="document.getElementById('exec[delete][cat_id]').value='$row_cont[id]'; set_style_by_class('tr','confirmSubs','visibility','$row_cont[children]'?'visible':'collapse'); set_style_by_class('fieldset','confirmDelete','display','block'); return false;" options="delete" class="leftPad5"/>
|
2010-01-31 00:57:03 +01:00
|
|
|
</hbox>
|
|
|
|
</row>
|
|
|
|
</rows>
|
|
|
|
</grid>
|
|
|
|
</template>
|
2016-03-09 11:14:48 +01:00
|
|
|
<template id="admin.categories.index.add" template="" lang="" group="0" version="1.9.001">
|
2018-05-14 21:40:58 +02:00
|
|
|
<buttononly label="Add" id="add" onclick="window.open('$cont[add_link]','_blank','dependent=yes,width=600,height=380,scrollbars=yes,status=yes'); return false;"/>
|
2016-03-09 11:14:48 +01:00
|
|
|
</template>
|
2011-06-21 22:14:56 +02:00
|
|
|
<template id="admin.categories.index" template="" lang="" group="0" version="1.9.001">
|
2016-03-09 11:14:48 +01:00
|
|
|
<nextmatch id="nm" options="admin.categories.index.rows" span="all" header_left="admin.categories.index.add"/>
|
2011-07-05 18:35:32 +02:00
|
|
|
<box class="action_popup prompt" id="owner_popup">
|
|
|
|
<vbox>
|
|
|
|
<description value="Change owner" class="promptheader"/>
|
|
|
|
<description value="Select owner"/>
|
|
|
|
<listbox id="owner" no_lang="1" rows="4" class="action_popup-content"/>
|
|
|
|
<hbox>
|
|
|
|
<button label="Add" id="owner_action[add]" onclick="nm_submit_popup(this); return false;"/>
|
|
|
|
<button label="Delete" id="owner_action[delete]" onclick="nm_submit_popup(this); return false;"/>
|
|
|
|
<button disabled="true" label="OK" onclick="nm_submit_popup(this); return false;"/>
|
2018-05-14 21:40:58 +02:00
|
|
|
<button label="Cancel" id="owner_action[cancel]" onclick="nm_hide_popup(this,'owner_popup');"/>
|
2011-07-05 18:35:32 +02:00
|
|
|
</hbox>
|
|
|
|
</vbox>
|
|
|
|
</box>
|
2011-06-21 22:14:56 +02:00
|
|
|
<styles>
|
2022-11-28 17:20:06 +01:00
|
|
|
.level0 { font-weight: bold; }
|
|
|
|
.level_spacer { flex: 0 0 auto;}
|
|
|
|
.action_popup {
|
|
|
|
position: fixed;
|
|
|
|
top: 200px;
|
|
|
|
left: 450px;
|
|
|
|
width: 76ex;
|
|
|
|
z-index: 20000;
|
|
|
|
display: none;
|
|
|
|
border-collapse:collapse;
|
|
|
|
border-spacing:0px
|
|
|
|
}
|
|
|
|
.action_popup-content {
|
|
|
|
display:block;
|
|
|
|
padding:2ex;
|
|
|
|
color:#666666;
|
|
|
|
margin: -2px -1px 0px -2px;
|
|
|
|
}
|
|
|
|
.action_popup > table {
|
|
|
|
width: 100%
|
|
|
|
}
|
|
|
|
.action_popup .promptheader {
|
2011-06-21 22:14:56 +02:00
|
|
|
padding: 1ex;
|
|
|
|
width: 100%
|
|
|
|
}
|
|
|
|
|
|
|
|
.action_select {
|
|
|
|
width: 100%
|
|
|
|
}
|
|
|
|
</styles>
|
2010-01-31 00:57:03 +01:00
|
|
|
</template>
|
2015-02-17 10:55:05 +01:00
|
|
|
</overlay>
|