CategoryEditTemplate
Editor for category topics

02 May 2019 - 06:19 | Version 1

%{
}%
%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;
});
%{
}%
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Flatiron Institute Documentation Center? Send feedback
This website is using cookies. More info. That's Fine