1 {include file='header'}
4 {include file='aclPermissions'}
7 {include file='aclPermissionJavaScript' containerID='groupPermissions' objectTypeID=$aclObjectTypeID}
9 {include file='aclPermissionJavaScript' containerID='groupPermissions' objectTypeID=$aclObjectTypeID objectID=$category->categoryID}
13 {include file='multipleLanguageInputJavascript' elementIdentifier='title' forceSelection=false}
14 {if $objectType->getProcessor()->hasDescription()}
15 {include file='multipleLanguageInputJavascript' elementIdentifier='description' forceSelection=false}
18 <header class="contentHeader">
19 <div class="contentHeaderTitle">
20 <h1 class="contentTitle">{@$objectType->getProcessor()->getLanguageVariable($action)}</h1>
24 <nav class="contentHeaderNavigation">
27 {if $action == 'edit' && $availableCategories->hasChildren()}
29 <a class="button dropdownToggle"><span class="icon icon16 fa-sort"></span> <span>{@$objectType->getProcessor()->getLanguageVariable('button.choose')}</span></a>
30 <div class="dropdownMenu">
31 <ul class="scrollableDropdownMenu">
32 {foreach from=$availableCategories item='availableCategory'}
33 <li{if $availableCategory->categoryID == $category->categoryID} class="active"{/if}><a href="{link controller=$editController application=$objectType->getProcessor()->getApplication() object=$availableCategory}{/link}">{section name=i loop=$availableCategories->getDepth()} {/section}{$availableCategory->getTitle()}</a></li>
40 {if $objectType->getProcessor()->canDeleteCategory() || $objectType->getProcessor()->canEditCategory()}
41 <li><a href="{link controller=$listController application=$objectType->getProcessor()->getApplication()}{/link}" class="button"><span class="icon icon16 fa-list"></span> <span>{@$objectType->getProcessor()->getLanguageVariable('button.list')}</span></a></li>
44 {event name='contentHeaderNavigation'}
51 {include file='formNotice'}
53 <form method="post" action="{if $action == 'add'}{link controller=$addController application=$objectType->getProcessor()->getApplication()}{/link}{else}{link controller=$editController application=$objectType->getProcessor()->getApplication() object=$category}{/link}{/if}">
54 {event name='beforeSections'}
57 <dl{if $errorField == 'title'} class="formError"{/if}>
58 <dt><label for="title">{@$objectType->getProcessor()->getLanguageVariable('title')}</label></dt>
60 <input type="text" id="title" name="title" value="{$i18nPlainValues['title']}" class="long">
61 {if $errorField == 'title'}
62 <small class="innerError">
63 {if $errorType == 'empty' || $errorType == 'multilingual'}
64 {lang}wcf.global.form.error.{$errorType}{/lang}
66 {assign var=__languageVariable value='title.error.'|concat:$errorType}
67 {@$objectType->getProcessor()->getLanguageVariable($__languageVariable)}
71 {hascontent}<small>{content}{@$objectType->getProcessor()->getLanguageVariable('title.description', true)}{/content}</small>{/hascontent}
75 {if $objectType->getProcessor()->hasDescription()}
76 <dl{if $errorField == 'description'} class="formError"{/if}>
77 <dt><label for="description">{@$objectType->getProcessor()->getLanguageVariable('description')}</label></dt>
79 <textarea cols="40" rows="10" id="description" name="description">{$i18nPlainValues['description']}</textarea>
80 {if $errorField == 'description'}
81 <small class="innerError">
82 {if $errorType == 'empty' || $errorType == 'multilingual'}
83 {lang}wcf.global.form.error.{$errorType}{/lang}
85 {assign var=__languageVariable value='description.error.'|concat:$errorType}
86 {@$objectType->getProcessor()->getLanguageVariable($__languageVariable)}
90 {hascontent}<small>{content}{@$objectType->getProcessor()->getLanguageVariable('description.description', true)}{/content}</small>{/hascontent}
94 {if $objectType->getProcessor()->supportsHtmlDescription()}
98 <label><input type="checkbox" name="descriptionUseHtml" value="1"{if $descriptionUseHtml} checked{/if}> {@$objectType->getProcessor()->getLanguageVariable('descriptionUseHtml')}</label>
104 <dl{if $errorField == 'isDisabled'} class="formError"{/if}>
107 <label><input type="checkbox" id="isDisabled" name="isDisabled"{if $isDisabled} checked{/if}> {@$objectType->getProcessor()->getLanguageVariable('isDisabled')}</label>
108 {hascontent}<small>{content}{@$objectType->getProcessor()->getLanguageVariable('isDisabled.description', true)}{/content}</small>{/hascontent}
112 {event name='dataFields'}
115 <section class="section">
116 <h2 class="sectionTitle">{@$objectType->getProcessor()->getLanguageVariable('position')}</h2>
118 {if $categoryNodeList->hasChildren() && $objectType->getProcessor()->getMaximumNestingLevel()}
119 <dl{if $errorField == 'parentCategoryID'} class="formError"{/if}>
120 <dt><label for="parentCategoryID">{@$objectType->getProcessor()->getLanguageVariable('parentCategoryID')}</label></dt>
122 <select id="parentCategoryID" name="parentCategoryID">
123 <option value="0">{lang}wcf.global.noSelection{/lang}</option>
124 {include file='categoryOptionList' categoryID=$parentCategoryID maximumNestingLevel=$objectType->getProcessor()->getMaximumNestingLevel()}
126 {if $errorField == 'parentCategoryID'}
127 <small class="innerError">
128 {assign var=__languageVariable value='parentCategoryID.error.'|concat:$errorType}
129 {@$objectType->getProcessor()->getLanguageVariable($__languageVariable)}
132 {hascontent}<small>{content}{@$objectType->getProcessor()->getLanguageVariable('parentCategoryID.description', true)}{/content}</small>{/hascontent}
137 <dl{if $errorField == 'showOrder'} class="formError"{/if}>
138 <dt><label for="showOrder">{lang}wcf.global.showOrder{/lang}</label></dt>
140 <input type="number" id="showOrder" name="showOrder" value="{$showOrder}" min="0" class="short">
141 {if $errorField == 'showOrder'}
142 <small class="innerError">
143 {assign var=__languageVariable value='showOrder.error.'|concat:$errorType}
144 {@$objectType->getProcessor()->getLanguageVariable($__languageVariable)}
147 {hascontent}<small>{content}{@$objectType->getProcessor()->getLanguageVariable('showOrder.description', true)}{/content}</small>{/hascontent}
151 {event name='positionFields'}
154 {if $aclObjectTypeID}
155 <section class="section">
156 <h2 class="sectionTitle">{lang}wcf.acl.permissions{/lang}</h2>
158 <dl id="groupPermissions" class="wide">
159 <dt>{lang}wcf.acl.permissions{/lang}</dt>
163 {event name='permissionFields'}
167 {event name='afterSections'}
169 <div class="formSubmit">
170 <input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s">
171 {@SECURITY_TOKEN_INPUT_TAG}
175 {include file='footer'}