@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux phosweb011 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64
Current Path :
/
homepage
/
v-mt
/
tmpl
/
cms
/
include
/
Path :
Upload File :
New :
File
Dir
//homepage/v-mt/tmpl/cms/include/category_selector.tmpl
<script type="text/javascript"> /* <![CDATA[ */ MT.App.categoryList = <$mt:if name="category_tree"><$mt:var name="category_tree" to_json="1"$><mt:else>[]</mt:if>; Template.templates.categorySelectorList = '<mt:section encode_js="1"> [# DOM.addClassName( div, "pkg" ) #] [# if ( item.path == null ) item.path = [] #] <div style="text-align:left; margin-left:[#= item.path.length * 10 #]px"> <mt:if name="can_edit_categories"><a href="javascript:void(0);" mt:id="[#= item.id #]" mt:command="show-add-category" class="add-category-new-link"><span>Add</span> </a></mt:if><input type="<mt:if name="object_type" eq="page">radio<mt:else>checkbox</mt:if>" name="<mt:if name="object_type" eq="entry">add_</mt:if>category_id<mt:if name="object_type" eq="entry">_[#= item.id #]</mt:if>" class="add-category-checkbox" <mt:if name="category_is_selected">checked="checked"</mt:if> /> <label style="width: [#= 223 - (item.path.length * 10) #]px;">[#|h item.label #]</label> </div> </mt:section>'; Template.templates.categorySelectorAddForm = '<mt:section encode_js="1"> [# div.className="add-category-form hidden" #]<input id="add-category-input-movable" class="add-category-input input-hint" type="text" value="[#|h trans( "Add sub category" ) #]" mt:default="[#|h trans( "Add sub category" ) #]" mt:delegate="default-value" /> <a href="javascript:void(0);" mt:command="add" class="add-category-save-link"><span>Add</span> </a><a href="javascript:void(0);" mt:command="cancel" class="add-category-cancel-link"><span>[#|h trans( "Cancel" ) #]</span> </a> </mt:section>'; <mt:ignore> <__trans phrase="Add sub category"> <__trans phrase="Cancel"> </mt:ignore> /* ]]> */ </script> <div id="<$mt:var name="container_type" lower_case="1"$>-selector" class="category-selector hidden"><div id="<$mt:var name="container_type" lower_case="1"$>-selector-inner" class="inner"> <mt:if name="object_type" eq="entry"> <div class="category-selector-header"> <mt:if name="can_edit_categories"><a class="add-category-new-parent-link" mt:command="show-add-category" href="javascript:void(0);" title="<$mt:var name="add_new_container_label_parent"$>"><__trans phrase="Add new"></a></mt:if> </div> </mt:if> <div id="add-category-form" class="add-category-form hidden"><input id="add-category-input" class="add-category-input input-hint" type="text" value="<$mt:var name="add_container_label"$>" mt:default="<$mt:var name="add_container_label_name"$>" mt:delegate="default-value" /> <a href="javascript:void(0);" mt:command="add" class="add-category-save-link"><span>Add</span> </a><a href="javascript:void(0);" mt:command="cancel" class="add-category-cancel-link"><span>Cancel</span> </a></div> <div id="<$mt:var name="container_type" lower_case="1"$>-selector-list" class="category-selector-list"> </div> </div></div><!-- /category-selector -->