2010-01-31 00:57:03 +01:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<!-- $Id$ -->
|
|
|
|
<overlay>
|
2011-06-21 22:14:56 +02:00
|
|
|
<template id="admin.categories.index.rows" template="" lang="" group="0" version="1.9.001">
|
2010-01-31 00:57:03 +01:00
|
|
|
<grid width="100%">
|
|
|
|
<columns>
|
|
|
|
<column/>
|
|
|
|
<column/>
|
|
|
|
<column/>
|
2010-01-31 04:36:01 +01:00
|
|
|
<column/>
|
2010-01-31 00:57:03 +01:00
|
|
|
<column width="40"/>
|
|
|
|
<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"/>
|
2011-06-27 17:51:31 +02:00
|
|
|
<nextmatch-filterheader label="Application" id="app"/>
|
|
|
|
<nextmatch-accountfilter label="Category owner" id="owner" options="all,both"/>
|
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>
|
|
|
|
<row class="$row_cont[id]">
|
|
|
|
<hbox options="0,0">
|
|
|
|
<html id="${row}[level_spacer]"/>
|
|
|
|
<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>
|
2011-06-21 22:14:56 +02: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">
|
2011-06-21 22:14:56 +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]'),'_blank','dependent=yes,width=600,height=380,scrollbars=yes,status=yes'); return false;" options="edit"/>
|
|
|
|
<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>
|
2011-06-21 22:14:56 +02:00
|
|
|
<template id="admin.categories.index" template="" lang="" group="0" version="1.9.001">
|
2010-01-31 00:57:03 +01:00
|
|
|
<grid width="100%">
|
|
|
|
<columns>
|
|
|
|
<column/>
|
|
|
|
</columns>
|
|
|
|
<rows>
|
|
|
|
<row disabled="!@msg">
|
2011-06-21 22:14:56 +02:00
|
|
|
<description align="center" id="msg" span="all" class="redItalic"/>
|
2010-01-31 00:57:03 +01:00
|
|
|
</row>
|
|
|
|
<row>
|
2011-06-21 22:14:56 +02:00
|
|
|
<nextmatch id="nm" options="admin.categories.index.rows"/>
|
2010-01-31 00:57:03 +01:00
|
|
|
</row>
|
|
|
|
<row>
|
2011-06-21 22:14:56 +02:00
|
|
|
<buttononly label="Add" id="add" onclick="window.open(egw::link('/index.php','menuaction=$cont[add_link]&cat_id=&appname=$cont[nm][appname]'),'_blank','dependent=yes,width=600,height=380,scrollbars=yes,status=yes'); return false;"/>
|
2010-01-31 00:57:03 +01:00
|
|
|
</row>
|
|
|
|
</rows>
|
|
|
|
</grid>
|
2011-06-21 22:14:56 +02:00
|
|
|
<box class="action_popup" id="delete_popup">
|
|
|
|
<vbox class="prompt">
|
|
|
|
<description value="Delete" class="promptheader"/>
|
|
|
|
<description value="Delete selected entries?" id="delete_prompt"/>
|
|
|
|
<hbox>
|
|
|
|
<button label="Yes - Delete" id="delete" onclick="nm_submit_popup(this); return false;"/>
|
|
|
|
<button label="Yes - Delete including sub-entries" id="delete_sub" onclick="nm_popup_action.id = 'delete_sub'; nm_submit_popup(this); return false;"/>
|
|
|
|
<buttononly label="No - Cancel" onclick="nm_hide_popup(this,'delete_popup');"/>
|
|
|
|
</hbox>
|
|
|
|
</vbox>
|
|
|
|
</box>
|
|
|
|
<styles>
|
|
|
|
.level0 { font-weight: bold; }
|
|
|
|
|
|
|
|
.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 {
|
|
|
|
padding: 1ex;
|
|
|
|
width: 100%
|
|
|
|
}
|
|
|
|
|
|
|
|
.action_select {
|
|
|
|
width: 100%
|
|
|
|
}
|
|
|
|
</styles>
|
2010-01-31 00:57:03 +01:00
|
|
|
</template>
|
|
|
|
</overlay>
|