1 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" |
---|
2 | xmlns:metal="http://xml.zope.org/namespaces/metal" |
---|
3 | xmlns:tal="http://xml.zope.org/namespaces/tal" |
---|
4 | lang="en-US" |
---|
5 | metal:use-macro="here/prefs_main_template/macros/master" |
---|
6 | i18n:domain="qPloneDropDownMenu"> |
---|
7 | |
---|
8 | <metal:block fill-slot="top_slot" |
---|
9 | tal:define="dummy python:request.set('disable_border',1)" /> |
---|
10 | |
---|
11 | <head> |
---|
12 | <metal:javascript_head_slot fill-slot="javascript_head_slot"> |
---|
13 | <script type="text/javascript" src="javascripts/prototype.js"></script> |
---|
14 | <script type="text/javascript" src="javascripts/scriptaculous.js"></script> |
---|
15 | <script type="text/javascript" src="javascripts/behaviour.js"></script> |
---|
16 | <script type="text/javascript" src="javascripts/qplonedropdownmenu.js"></script> |
---|
17 | </metal:javascript_head_slot> |
---|
18 | <metal:cssslot fill-slot="css_slot"> |
---|
19 | <style type="text/css" tal:content="string:@import url($portal_url/stylesheets/qplonedropdownmenu.css);" /> |
---|
20 | </metal:cssslot> |
---|
21 | </head> |
---|
22 | |
---|
23 | |
---|
24 | <body> |
---|
25 | <div metal:fill-slot="prefs_configlet_main" |
---|
26 | tal:define="dummy here/portal_dropdownmenu/generateSubMenuMapping; |
---|
27 | errors python:request.get('errors', {})"> |
---|
28 | |
---|
29 | <h1 i18n:translate="heading_plonedropdownmenu">Plone Drop Down Menu</h1> |
---|
30 | <a href="" |
---|
31 | class="link-parent" |
---|
32 | tal:attributes="href string: $portal_url/plone_control_panel" |
---|
33 | i18n:translate="label_up_to_plone_setup"> |
---|
34 | Up to Plone Setup |
---|
35 | </a> |
---|
36 | |
---|
37 | <div id="app"> |
---|
38 | <h1>Edit DropDown Menu<span id="busy"><img src='./images/busy_icon.gif' alt="Loading…" /></span></h1> |
---|
39 | <ul id="rootMenu" |
---|
40 | tal:condition="portal_tabs"> |
---|
41 | <tal:tabs tal:repeat="tab portal_tabs"> |
---|
42 | <li tal:attributes="id string:tab-${tab/name}" |
---|
43 | tal:define="submenu python:here.portal_dropdownmenu.getValueByKey(tab['name'])"> |
---|
44 | <div class="reorderHover" |
---|
45 | tal:attributes="class python:test(len(submenu)>1,'reorderHover','')"> |
---|
46 | <input name="submenu_path" value="" type="hidden" |
---|
47 | tal:attributes="value string:${tab/name}" /> |
---|
48 | <img src="./images/live_tree_transparent_pixel.gif" alt=">" class="item_icon collapsed_icon" |
---|
49 | tal:attributes="class python:test(len(submenu), 'item_icon expanded_icon', 'item_icon collapsed_icon')" /> |
---|
50 | <span tal:content="tab/name" |
---|
51 | tal:attributes="title tab/description|nothing"> |
---|
52 | Tab Name |
---|
53 | </span> |
---|
54 | <div class="reorder-controls"><a |
---|
55 | href="#" class="reorder">Reorder</a></div> |
---|
56 | <div class="sort-controls"><a |
---|
57 | href="#" class="save">Save</a> | <a href="#" class="cancel">Cancel</a></div> |
---|
58 | </div> |
---|
59 | <div class="sub-items"> |
---|
60 | <ul tal:omit-tag="" |
---|
61 | tal:define="submenu_path tab/name; |
---|
62 | first python:1"> |
---|
63 | <div metal:use-macro="here/getSubmenu/macros/submenu" /> |
---|
64 | </ul> |
---|
65 | </div> |
---|
66 | </li> |
---|
67 | </tal:tabs> |
---|
68 | </ul> |
---|
69 | |
---|
70 | <!-- <div class="field" |
---|
71 | tal:define="generated_tabs python: not site_properties.disable_folder_sections; |
---|
72 | generated_tabs request/generated_tabs | generated_tabs; |
---|
73 | error errors/generated_tabs | nothing;" |
---|
74 | tal:attributes="class python:test(error, 'field error', 'field')"> |
---|
75 | <input type="checkbox" |
---|
76 | id="generated_tabs" |
---|
77 | name="generated_tabs" |
---|
78 | value="1" |
---|
79 | tal:attributes="checked python:test(generated_tabs, 'checked', None)" /> |
---|
80 | <label for="generated_tabs" i18n:translate="label_generated_tabs_enable">Automatically generate tabs</label> |
---|
81 | <div class="formHelp" i18n:translate="help_generated_tabs"> |
---|
82 | By default, all folders created at the root level will have global section |
---|
83 | navigation generated. You can turn this off if you prefer manually constructing |
---|
84 | this part of the navigation. |
---|
85 | </div> |
---|
86 | </div>--> |
---|
87 | </div> |
---|
88 | </div> |
---|
89 | </body> |
---|
90 | </html> |
---|