Improved categoryAdd template
authorSebastian Öttl <sebastian.oettl@wcfsolutions.com>
Fri, 19 Jul 2013 20:06:36 +0000 (22:06 +0200)
committerSebastian Öttl <sebastian.oettl@wcfsolutions.com>
Fri, 19 Jul 2013 20:06:36 +0000 (22:06 +0200)
wcfsetup/install/files/acp/templates/categoryAdd.tpl
wcfsetup/install/lang/de.xml
wcfsetup/install/lang/en.xml

index 383205d0b1e649ddecd00ac46fabc47555edaf84..e315dfaa1d0e8c60bd95fd51eea428891fee3835 100644 (file)
 
 <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}">
        <div class="container containerPadding marginTop">
+               {event name='beforeFieldsets'}
+               
                <fieldset>
                        <legend>{lang}wcf.global.form.data{/lang}</legend>
                        
-                       {if $categoryNodeList->hasChildren() && $objectType->getProcessor()->getMaximumNestingLevel()}
-                               <dl{if $errorField == 'parentCategoryID'} class="formError"{/if}>
-                                       <dt><label for="parentCategoryID">{@$objectType->getProcessor()->getLanguageVariable('parentCategoryID')}</label></dt>
-                                       <dd>
-                                               <select id="parentCategoryID" name="parentCategoryID">
-                                                       <option value="0"></option>
-                                                       {include file='categoryOptionList' categoryID=$parentCategoryID maximumNestingLevel=$objectType->getProcessor()->getMaximumNestingLevel()}
-                                               </select>
-                                               {if $errorField == 'parentCategoryID'}
-                                                       <small class="innerError">
-                                                               {assign var=__languageVariable value='parentCategoryID.error.'|concat:$errorType}
-                                                               {@$objectType->getProcessor()->getLanguageVariable($__languageVariable)}
-                                                       </small>
-                                               {/if}
-                                               {hascontent}<small>{content}{@$objectType->getProcessor()->getLanguageVariable('parentCategoryID.description', true)}{/content}</small>{/hascontent}
-                                       </dd>
-                               </dl>
-                       {/if}
-                       
                        <dl{if $errorField == 'title'} class="formError"{/if}>
                                <dt><label for="title">{@$objectType->getProcessor()->getLanguageVariable('title')}</label></dt>
                                <dd>
                                </dd>
                        </dl>
                        
+                       {event name='dataFields'}
+               </fieldset>
+               
+               <fieldset>
+                       <legend>{@$objectType->getProcessor()->getLanguageVariable('position')}</legend>
+                       
+                       {if $categoryNodeList->hasChildren() && $objectType->getProcessor()->getMaximumNestingLevel()}
+                               <dl{if $errorField == 'parentCategoryID'} class="formError"{/if}>
+                                       <dt><label for="parentCategoryID">{@$objectType->getProcessor()->getLanguageVariable('parentCategoryID')}</label></dt>
+                                       <dd>
+                                               <select id="parentCategoryID" name="parentCategoryID">
+                                                       <option value="0"></option>
+                                                       {include file='categoryOptionList' categoryID=$parentCategoryID maximumNestingLevel=$objectType->getProcessor()->getMaximumNestingLevel()}
+                                               </select>
+                                               {if $errorField == 'parentCategoryID'}
+                                                       <small class="innerError">
+                                                               {assign var=__languageVariable value='parentCategoryID.error.'|concat:$errorType}
+                                                               {@$objectType->getProcessor()->getLanguageVariable($__languageVariable)}
+                                                       </small>
+                                               {/if}
+                                               {hascontent}<small>{content}{@$objectType->getProcessor()->getLanguageVariable('parentCategoryID.description', true)}{/content}</small>{/hascontent}
+                                       </dd>
+                               </dl>
+                       {/if}
+                       
                        <dl{if $errorField == 'showOrder'} class="formError"{/if}>
                                <dt><label for="showOrder">{@$objectType->getProcessor()->getLanguageVariable('showOrder')}</label></dt>
                                <dd>
                                </dd>
                        </dl>
                        
-                       {event name='dataFields'}
+                       {event name='positionFields'}
                </fieldset>
                
                {if $aclObjectTypeID}
                        </fieldset>
                {/if}
                
-               {event name='fieldsets'}
+               {event name='afterFieldsets'}
        </div>
        
        <div class="formSubmit">
index 9f3d21d699dde5127c43489d7748edf295ad464f..39befe51f55c6f06e832a3acc94eabb02062ac18 100644 (file)
@@ -1368,6 +1368,7 @@ Erlaubte Dateiendungen: {', '|implode:$attachmentHandler->getAllowedExtensions()
                <item name="wcf.category.noneAvailable"><![CDATA[Es wurde noch keine Kategorie hinzugefügt.]]></item>
                <item name="wcf.category.parentCategoryID"><![CDATA[Übergeordnete Kategorie]]></item>
                <item name="wcf.category.parentCategoryID.error.notValid"><![CDATA[Die ausgewählte Kategorie existiert nicht.]]></item>
+               <item name="wcf.category.position"><![CDATA[Position]]></item>
                <item name="wcf.category.showOrder"><![CDATA[Position]]></item>
                <item name="wcf.category.description"><![CDATA[Beschreibung]]></item>
                <item name="wcf.category.title"><![CDATA[Titel]]></item>
index 934773db4e894a6978029f29c0283b99b0d5df16..53167ca3a5fd18302343f514dffb249f2ccf2c1a 100644 (file)
@@ -1366,6 +1366,7 @@ Allowed extensions: {', '|implode:$attachmentHandler->getAllowedExtensions()}]]>
                <item name="wcf.category.noneAvailable"><![CDATA[No category has been added yet.]]></item>
                <item name="wcf.category.parentCategoryID"><![CDATA[Parent Category]]></item>
                <item name="wcf.category.parentCategoryID.error.notValid"><![CDATA[Chosen category does not exist.]]></item>
+               <item name="wcf.category.position"><![CDATA[Position]]></item>
                <item name="wcf.category.showOrder"><![CDATA[Position]]></item>
                <item name="wcf.category.description"><![CDATA[Description]]></item>
                <item name="wcf.category.title"><![CDATA[Title]]></item>