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">
2014-01-23 09:44:49 +01:00
<button align="center" label="Delete" id="delete[delete]" image="delete" background_image="1"/>
<buttononly align="center" label="Cancel" id="delete[cancel]" onclick="set_style_by_class('fieldset','confirmDelete','display','none');" image="cancel" background_image="1"/>
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">
2012-04-02 18:29:13 +02:00
<description value="Parent category" for="parent"/>
2010-01-31 00:57:03 +01:00
<menulist>
2012-04-11 18:58:30 +02:00
<menupopup type="select-cat" id="parent" options="None,$cont[all_cats],,$cont[appname]"/>
2010-01-31 00:57:03 +01:00
</menulist>
</row>
<row class="row">
2012-04-02 18:29:13 +02:00
<description value="Name" for="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">
2012-04-02 18:29:13 +02:00
<description value="Description" for="description"/>
2011-06-14 20:50:35 +02:00
<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">
2012-04-02 18:29:13 +02:00
<description value="Color" for="cat_data[color]"/>
2010-01-31 00:57:03 +01:00
<colorpicker id="data[color]"/>
</row>
<row class="row">
2012-04-02 18:29:13 +02:00
<description value="Icon" for="data[icon]"/>
2010-01-31 00:57:03 +01:00
<hbox options="0,0">
<menulist>
2014-01-16 17:21:17 +01:00
<menupopup id="data[icon]" onchange="app.admin.change_icon(widget);" options="None"/>
2010-01-31 00:57:03 +01:00
</menulist>
2012-04-25 01:13:57 +02:00
<image src="icon_url" id="icon_url" class="leftPad5"/>
2010-01-31 00:57:03 +01:00
</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">
2012-04-02 18:29:13 +02:00
<description value="Category owner" for="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>
2014-01-23 09:44:49 +01:00
<row class="dialog-footer-toolbar">
2010-01-31 00:57:03 +01:00
<hbox>
2014-01-23 09:44:49 +01:00
<button label="Save" id="button[save]" onclick="return app.admin.check_owner(widget);" image="save" background_image="1"/>
<button label="Apply" id="button[apply]" onclick="return app.admin.check_owner(widget);" image="apply" background_image="1"/>
2010-01-31 00:57:03 +01:00
</hbox>
<hbox>
2014-01-23 09:44:49 +01:00
<buttononly label="Cancel" id="button[cancel]" onclick="window.close();" image="cancel" background_image="1"/>
<buttononly align="right" statustext="Delete this category" label="Delete" id="button[delete]" onclick="et2_dialog.confirm(widget,'Are you sure you want to delete this category ?'); return false;" image="delete" background_image="1"/>
2010-01-31 00:57:03 +01:00
</hbox>
</row>
</rows>
</grid>
<template id="admin.categories.delete"/>
</template>
</overlay>