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="qPloneTabs"> |
---|
7 | |
---|
8 | <metal:block fill-slot="top_slot" |
---|
9 | tal:define="dummy python:request.set('disable_border',1)" /> |
---|
10 | <head> |
---|
11 | <metal:javascript_head_slot fill-slot="javascript_head_slot"> |
---|
12 | <script type="text/javascript" src="javascripts/prototype.js"></script> |
---|
13 | <script type="text/javascript" src="javascripts/scriptaculous.js"></script> |
---|
14 | <script type="text/javascript" src="javascripts/behaviour.js"></script> |
---|
15 | <script type="text/javascript" src="javascripts/qplonetabs.js"></script> |
---|
16 | </metal:javascript_head_slot> |
---|
17 | <metal:cssslot fill-slot="css_slot"> |
---|
18 | <style type="text/css" tal:content="string:@import url($portal_url/qplonetabs.css);" /> |
---|
19 | </metal:cssslot> |
---|
20 | </head> |
---|
21 | |
---|
22 | <body> |
---|
23 | <div metal:fill-slot="prefs_configlet_main" |
---|
24 | tal:define="errors python:request.get('errors', {}); |
---|
25 | category here/REQUEST/category|nothing; |
---|
26 | category python:test(category and category!='', category, 'portal_tabs')"> |
---|
27 | <div id="app" class="viewing"> |
---|
28 | <h1 i18n:translate="heading_plonetabs"> |
---|
29 | <span tal:content="python:context.getPageTitle(category)" /><span id="busy"><img src='busy_icon.gif' alt="" /></span></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 Site Setup |
---|
35 | </a> |
---|
36 | <input type="hidden" name="category" value="portal_tabs" id="actions_category" |
---|
37 | tal:attributes="value category" /> |
---|
38 | <div class="reorder-controls" |
---|
39 | tal:define="notempty python:modules['Products.qPloneTabs'].getPortalActions(here, category)"> |
---|
40 | <a href="#" id="reorder" class="" |
---|
41 | tal:attributes="class python:test(notempty, '', 'noitems')">Reorder</a> |
---|
42 | </div> |
---|
43 | <div class="sort-controls"> |
---|
44 | <a href="#" id="save">Save</a> | |
---|
45 | <a href="#" id="cancel">Cancel</a> |
---|
46 | </div> |
---|
47 | <ul class="csshover" |
---|
48 | id="tabslist" tal:content="structure python:here.qpt_gettabslist(category=category)" /> |
---|
49 | <form id="addaction" |
---|
50 | method="post" |
---|
51 | action="addPTAction" |
---|
52 | tal:attributes="action string:${portal_url}/prefs_tabs_form;"> |
---|
53 | <dl class="field-visible bridge"><dt><label>Visible</label></dt> |
---|
54 | <dd><input id="actvisible" type="checkbox" value="1" checked="checked" title="visibility" |
---|
55 | name="visible" /></dd></dl> |
---|
56 | <dl class="field-name"><dt><label>Name</label></dt> |
---|
57 | <dd><input id="actname" type="text" value="" |
---|
58 | name="name" /></dd></dl> |
---|
59 | <dl class="field-action"><dt><label>URL (Expression)</label></dt> |
---|
60 | <dd><input id="actaction" type="text" value="" size="30" |
---|
61 | name="action" /></dd></dl> |
---|
62 | <dl class="advanced collapseAdvanced expandedBlock"> |
---|
63 | <dt class="headerAdvanced">Advanced</dt> |
---|
64 | <dd class="contentAdvanced"> |
---|
65 | <dl class="field-id"><dt><label>Id</label></dt> |
---|
66 | <dd><input id="actid" type="text" value="" |
---|
67 | name="id" /></dd></dl> |
---|
68 | <dl class="field-condition"><dt><label>Condition (Expression)</label></dt> |
---|
69 | <dd><input id="actcondition" type="text" value="" size="30" |
---|
70 | name="condition" /></dd></dl> |
---|
71 | <div class="visualClear"><!-- --></div> |
---|
72 | </dd> |
---|
73 | </dl> |
---|
74 | <div class="add-controls"> |
---|
75 | <input type="submit" id="buttonadd" i18n:attributes="value" value="Add" /> |
---|
76 | <input type="submit" id="buttoncancel" i18n:attributes="value" value="Cancel" /> |
---|
77 | </div> |
---|
78 | </form> |
---|
79 | <div class="field" |
---|
80 | tal:define="generated_tabs python: not site_properties.disable_folder_sections; |
---|
81 | generated_tabs request/generated_tabs | generated_tabs; |
---|
82 | error errors/generated_tabs | nothing;" |
---|
83 | tal:attributes="class python:test(error, 'field error', 'field')" |
---|
84 | tal:on-error="string:" |
---|
85 | tal:condition="python:category == 'portal_tabs'"> |
---|
86 | <input type="checkbox" |
---|
87 | id="generated_tabs" |
---|
88 | name="generated_tabs" |
---|
89 | value="1" |
---|
90 | tal:attributes="checked python:test(generated_tabs, 'checked', None)" /> |
---|
91 | <label for="generated_tabs" i18n:translate="label_generated_tabs_enable">Automatically generate tabs</label> |
---|
92 | <div class="formHelp" i18n:translate="help_generated_tabs"> |
---|
93 | By default, all folders created at the root level will have global section |
---|
94 | navigation generated. You can turn this off if you prefer manually constructing |
---|
95 | this part of the navigation. |
---|
96 | </div> |
---|
97 | </div> |
---|
98 | <ul class="csshover" id="roottabs" |
---|
99 | tal:on-error="string:" |
---|
100 | tal:content="structure here/qpt_getroottabs" |
---|
101 | tal:condition="python:category == 'portal_tabs'" /> |
---|
102 | </div> |
---|
103 | |
---|
104 | </div> |
---|
105 | </body> |
---|
106 | </html> |
---|