mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-15 11:11:49 +01:00
51e7269d88
also fixed error editing categories in the root ('0' is not allowed validation message)
79 lines
3.4 KiB
XML
79 lines
3.4 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE overlay PUBLIC "-//EGroupware GmbH//eTemplate 2.0//EN" "https://www.egroupware.org/etemplate2.0.dtd">
|
|
<overlay>
|
|
<template id="admin.categories.edit.category" template="" lang="" group="0" version="1.9.001">
|
|
<grid width="100%">
|
|
<columns>
|
|
<column width="90"/>
|
|
<column width="300"/>
|
|
</columns>
|
|
<rows>
|
|
<row>
|
|
<et2-description value="Parent category" for="parent"></et2-description>
|
|
<et2-select-cat id="parent" application="$cont[appname]" emptyLabel="None" globalCategories="$cont[all_cats]"></et2-select-cat>
|
|
</row>
|
|
<row valign="top">
|
|
<et2-description value="Description" for="description"></et2-description>
|
|
<et2-textarea id="description" rows="5" cols="50"></et2-textarea>
|
|
</row>
|
|
<row class="nmr" disabled="@no_private">
|
|
<et2-description value="Private"></et2-description>
|
|
<et2-checkbox id="access" selectedValue="private" unselectedValue="public" ></et2-checkbox>
|
|
</row>
|
|
<row>
|
|
<et2-description value="Color" for="cat_data[color]"></et2-description>
|
|
<et2-colorpicker id="data[color]"></et2-colorpicker>
|
|
</row>
|
|
<row>
|
|
<et2-description value="Icon" for="data[icon]"></et2-description>
|
|
<et2-select id="data[icon]" emptyLabel="None" search="true" searchUrl="preferences.preferences_categories_ui.ajax_search"></et2-select>
|
|
</row>
|
|
<row disabled="@appname=phpgw">
|
|
<et2-description value="Application"></et2-description>
|
|
<et2-select-app id="appname" readonly="true" emptyLabel="All applications"></et2-select-app>
|
|
</row>
|
|
<row>
|
|
<et2-description value="Category owner" for="owner"></et2-description>
|
|
<et2-select-account statustext="Limit global category to members of a certain group" id="owner" accountType="groups" multiple="true" required="1"></et2-select-account>
|
|
</row>
|
|
|
|
</rows>
|
|
</grid>
|
|
</template>
|
|
<template id="admin.categories.edit" template="" lang="" group="0" version="1.9.001">
|
|
<grid width="100%">
|
|
<columns>
|
|
<column width="90"/>
|
|
<column width="300"/>
|
|
</columns>
|
|
<rows>
|
|
<row class="dialogHeader">
|
|
<et2-description value="Name" for="name"></et2-description>
|
|
<et2-textbox id="name" maxlength="150" required="1"></et2-textbox>
|
|
</row>
|
|
<row>
|
|
<et2-tabbox id="tabs" span="all" tabHeight="350">
|
|
<tabs>
|
|
<tab id="category" label="Category"/>
|
|
</tabs>
|
|
<tabpanels>
|
|
<template id="admin.categories.edit.category"/>
|
|
</tabpanels>
|
|
</et2-tabbox>
|
|
</row>
|
|
<row disabled="!@last_mod">
|
|
<et2-description value="Modified"></et2-description>
|
|
<et2-date-time id="last_mod" readonly="true"></et2-date-time>
|
|
</row>
|
|
<row class="dialogFooterToolbar">
|
|
<et2-hbox span="all">
|
|
<et2-button label="Save" id="button[save]" onclick="return app.admin.check_owner(widget);" image="save"></et2-button>
|
|
<et2-button label="Apply" id="button[apply]" onclick="return app.admin.check_owner(widget);" image="apply"></et2-button>
|
|
<et2-button label="Cancel" id="button[cancel]" onclick="window.close();" image="cancel" noSubmit="true"></et2-button>
|
|
<et2-button align="right" statustext="Delete this category" label="Delete" id="button[delete]" onclick="egw.open_link('$cont[delete_link]&cat_id='+widget.getRoot().getArrayMgr('content').getEntry('id'),'_browser','450x400');window.close();" image="delete" noSubmit="true"></et2-button>
|
|
</et2-hbox>
|
|
</row>
|
|
</rows>
|
|
</grid>
|
|
</template>
|
|
</overlay> |