2010-01-31 00:57:03 +01:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<!-- $Id$ -->
|
|
|
|
<overlay>
|
2011-06-14 20:50:35 +02:00
|
|
|
<template id="admin.categories.delete" template="" lang="" group="0" version="1.9.001">
|
2010-01-31 00:57:03 +01:00
|
|
|
<grid>
|
|
|
|
<columns>
|
|
|
|
<column/>
|
|
|
|
</columns>
|
|
|
|
<rows>
|
|
|
|
<row>
|
|
|
|
<groupbox class="confirmDelete">
|
|
|
|
<caption label="Delete this category"/>
|
|
|
|
<grid>
|
|
|
|
<columns>
|
|
|
|
<column/>
|
|
|
|
<column/>
|
|
|
|
</columns>
|
|
|
|
<rows>
|
|
|
|
<row height="30">
|
2011-06-14 20:50:35 +02:00
|
|
|
<description align="center" value="Are you sure you want to delete this category ?" span="all"/>
|
2010-01-31 00:57:03 +01:00
|
|
|
</row>
|
|
|
|
<row class="confirmSubs">
|
2011-06-14 20:50:35 +02:00
|
|
|
<checkbox align="center" label="Do you also want to delete all global subcategories ?" id="delete[subs]" span="all"/>
|
2010-01-31 00:57:03 +01:00
|
|
|
</row>
|
|
|
|
<row height="40">
|
2011-06-14 20:50:35 +02:00
|
|
|
<button align="center" label="Delete" id="delete[delete]"/>
|
|
|
|
<buttononly align="center" label="Cancel" id="delete[cancel]" onclick="set_style_by_class('fieldset','confirmDelete','display','none');"/>
|
2010-01-31 00:57:03 +01:00
|
|
|
</row>
|
|
|
|
</rows>
|
|
|
|
</grid>
|
|
|
|
</groupbox>
|
|
|
|
</row>
|
|
|
|
</rows>
|
|
|
|
</grid>
|
|
|
|
<textbox id="delete[cat_id]" class="hiddenCatid"/>
|
|
|
|
<styles>
|
|
|
|
.confirmDelete {
|
|
|
|
position: absolute;
|
|
|
|
left: 120px;
|
|
|
|
top: 80px;
|
|
|
|
background-color: white;
|
|
|
|
display: none;
|
|
|
|
border: 2px solid black;
|
|
|
|
}
|
|
|
|
.hiddenCatid {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.confirmSubs
|
|
|
|
{
|
|
|
|
}
|
|
|
|
</styles>
|
|
|
|
</template>
|
2011-06-14 20:50:35 +02:00
|
|
|
<template id="admin.categories.edit" template="" lang="" group="0" version="1.9.001">
|
2010-01-31 00:57:03 +01:00
|
|
|
<grid>
|
|
|
|
<columns>
|
|
|
|
<column/>
|
|
|
|
<column/>
|
|
|
|
</columns>
|
|
|
|
<rows>
|
|
|
|
<row disabled="!@msg">
|
2011-06-14 20:50:35 +02:00
|
|
|
<description align="center" id="msg" span="all" class="redItalic"/>
|
2010-01-31 00:57:03 +01:00
|
|
|
<description/>
|
|
|
|
</row>
|
|
|
|
<row class="th" height="25">
|
2011-06-14 20:50:35 +02:00
|
|
|
<description value="Parent category" options=",,,parent"/>
|
2010-01-31 00:57:03 +01:00
|
|
|
<menulist>
|
2011-06-14 20:50:35 +02:00
|
|
|
<menupopup type="select-cat" id="parent" options="None,,,$cont[appname],,-1"/>
|
2010-01-31 00:57:03 +01:00
|
|
|
</menulist>
|
|
|
|
</row>
|
|
|
|
<row class="row">
|
2011-06-14 20:50:35 +02:00
|
|
|
<description value="Name" options=",,,name"/>
|
2011-06-22 21:45:36 +02:00
|
|
|
<textbox id="name" needed="1" size="50" maxlength="150"/>
|
2010-01-31 00:57:03 +01:00
|
|
|
</row>
|
|
|
|
<row class="row" valign="top">
|
2011-06-14 20:50:35 +02:00
|
|
|
<description value="Description" options=",,,description"/>
|
|
|
|
<textbox multiline="true" id="description" rows="5" cols="50"/>
|
2010-01-31 00:57:03 +01:00
|
|
|
</row>
|
2011-06-22 21:45:36 +02:00
|
|
|
<row class="nmr" disabled="@no_private">
|
|
|
|
<description value="Private"/>
|
|
|
|
<checkbox id="access" options="private,public"/>
|
|
|
|
</row>
|
2010-01-31 00:57:03 +01:00
|
|
|
<row class="row">
|
2011-06-14 20:50:35 +02:00
|
|
|
<description value="Color" options=",,,cat_data[color]"/>
|
2010-01-31 00:57:03 +01:00
|
|
|
<colorpicker id="data[color]"/>
|
|
|
|
</row>
|
|
|
|
<row class="row">
|
2011-06-14 20:50:35 +02:00
|
|
|
<description value="Icon" options=",,,data[icon]"/>
|
2010-01-31 00:57:03 +01:00
|
|
|
<hbox options="0,0">
|
|
|
|
<menulist>
|
2012-04-05 14:46:39 +02:00
|
|
|
<menupopup id="data[icon]" onchange="change_icon(this);" options="None"/>
|
2010-01-31 00:57:03 +01:00
|
|
|
</menulist>
|
|
|
|
<image src="icon_url" class="leftPad5"/>
|
|
|
|
</hbox>
|
|
|
|
</row>
|
|
|
|
<row class="row" disabled="@appname=phpgw">
|
|
|
|
<description value="Application"/>
|
|
|
|
<menulist>
|
2010-01-31 04:36:01 +01:00
|
|
|
<menupopup type="select-app" id="appname" readonly="true" options="All applications"/>
|
2010-01-31 00:57:03 +01:00
|
|
|
</menulist>
|
|
|
|
</row>
|
|
|
|
<row class="row">
|
2011-07-07 21:12:31 +02:00
|
|
|
<description value="Category owner" options=",,,owner"/>
|
2011-06-22 21:45:36 +02:00
|
|
|
<listbox statustext="Limit global category to members of a certain group" id="owner" needed="1" rows="3"/>
|
2010-01-31 04:36:01 +01:00
|
|
|
</row>
|
|
|
|
<row class="row" disabled="!@last_mod">
|
2010-01-31 00:57:03 +01:00
|
|
|
<description value="Modified"/>
|
|
|
|
<date-time id="last_mod" readonly="true"/>
|
|
|
|
</row>
|
|
|
|
<row>
|
|
|
|
<hbox>
|
2011-06-14 20:50:35 +02:00
|
|
|
<button label="Save" id="button[save]" onclick="return check_owner(form::name('owner'));"/>
|
|
|
|
<button label="Apply" id="button[apply]" onclick="return check_owner(form::name('owner'));"/>
|
2010-01-31 00:57:03 +01:00
|
|
|
</hbox>
|
|
|
|
<hbox>
|
2011-06-14 20:50:35 +02:00
|
|
|
<buttononly label="Cancel" id="button[cancel]" onclick="window.close();"/>
|
|
|
|
<buttononly align="right" statustext="Delete this category" label="Delete" id="button[delete]" onclick="set_style_by_class('tr','confirmSubs','visibility','$cont[children]'?'visible':'collapse'); set_style_by_class('fieldset','confirmDelete','display','block');"/>
|
2010-01-31 00:57:03 +01:00
|
|
|
</hbox>
|
|
|
|
</row>
|
|
|
|
</rows>
|
|
|
|
</grid>
|
|
|
|
<template id="admin.categories.delete"/>
|
|
|
|
</template>
|
|
|
|
</overlay>
|