aw schriftzug.png aw logo 60x60.png

CategoryEditTemplate
Editor for category topics

2019-05-02 - 10:19 | Version 3 |

%TMPL:INCLUDE{"Applications.ClassificationApp.ClassifiedTopicEdit"}%

%TMPL:DEF{"firsttab"}%%TMPL:P{"detailstab"}%%TMPL:END%

%TMPL:DEF{"detailstab"}%<!-- -->
%TAB{"%TRANSLATE{"Details"}%"}%
%RENDERFOREDIT{
   exclude="^(TopicType|Category|ImportedCategory|SubCategories)$"
   TopicTitle_title="%TRANSLATE{"Title"}%"
}%
%ENDTAB%
<!-- -->%TMPL:END%

%TMPL:DEF{"formfields"}%<!--  -->
%TMPL:P{"categoriestab"}%
%TMPL:P{"subcategoriestab"}%
%TMPL:P{"notestab"}%<!-- -->
<!--  -->%TMPL:END%

%TMPL:DEF{"notestab"}%<!-- -->
%TAB{"%TRANSLATE{"Notes"}%"}%
%TMPL:P{"textarea"}%
%ENDTAB%
<!-- -->%TMPL:END%

%TMPL:DEF{"subcategoriestab"}%<!-- -->
%TAB{"%TRANSLATE{"Sub-Categories"}%"}%
%RENDERFOREDIT{
   fields="ImportedCategory, SubCategories"
   ImportedCategory_title="%TRANSLATE{"Import"}%"
   SubCategories_title="%TRANSLATE{"Text"}%"
   header="$percntTABPANE{class=\"plain\"}$percnt"
   format="$percntTAB{\"$title\" after=\"jQuery(window).trigger('resize')\"}$percnt
           <div class='foswikiPageForm'>$n$edit$n
            <div class='foswikiFormDescription'>$description</div>
           </div>
           $percntENDTAB$percnt"
   separator="$n"
   footer="$percntENDTABPANE$percnt"
}%%JQREQUIRE{"natedit"}%%ADDTOZONE{"script" 
  text="<script type='text/javascript' src='%PUBURLPATH%/Applications/ClassificationApp/CategoryEditTemplate/category-edit.js'></script>"
  id="CATEGORYEDIT::JS"
  requires="JQUERYPLUGIN::NATEDIT"
}%%ENDTAB%
<!-- -->%TMPL:END%

"use strict";
jQuery(function($) {
   var natedit = $("textarea[name='SubCategories']").natedit({
      autoMaxExpand: true
   }).data("natedit");
   natedit.bottomHeight = 130;
});
Topic attachments
I Attachment Action Size Date Who Comment
category-edit.jsjs category-edit.js manage 181 bytes 2019-05-02 - 09:59 ProjectContributor Generated by AttachContentPlugin
Warning: Can't find topic Applications/ClassificationApp.WebLeftBarExample

Impressum © Alexander Weimer GmbH