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" |
---|
13 | tal:condition="exists: portal/register_function.js" |
---|
14 | tal:attributes="src string:$portal_url/register_function.js"></script> |
---|
15 | <script type="text/javascript" |
---|
16 | tal:condition="exists: portal/nodeutilities.js" |
---|
17 | tal:attributes="src string:$portal_url/nodeutilities.js"></script> |
---|
18 | <script type="text/javascript" |
---|
19 | tal:condition="exists: portal/cssQuery.js" |
---|
20 | tal:attributes="src string:$portal_url/cssQuery.js"></script> |
---|
21 | <script type="text/javascript" |
---|
22 | tal:condition="exists: portal/collapsiblesections.js" |
---|
23 | tal:attributes="src string:$portal_url/collapsiblesections.js"></script> |
---|
24 | <script type="text/javascript" src="javascripts/prototype.js"></script> |
---|
25 | <script type="text/javascript" src="javascripts/scriptaculous.js"></script> |
---|
26 | <script type="text/javascript" src="javascripts/behaviour.js"></script> |
---|
27 | <script type="text/javascript" src="javascripts/qplonetabs.js"></script> |
---|
28 | </metal:javascript_head_slot> |
---|
29 | <metal:cssslot fill-slot="css_slot"> |
---|
30 | <style type="text/css" tal:content="string:@import url($portal_url/qplonetabs.css);" /> |
---|
31 | </metal:cssslot> |
---|
32 | </head> |
---|
33 | |
---|
34 | <body> |
---|
35 | <div metal:fill-slot="prefs_configlet_main" |
---|
36 | tal:define="errors python:request.get('errors', {})"> |
---|
37 | |
---|
38 | <div id="app" class="viewing"> |
---|
39 | <h1 i18n:translate="heading_plonetabs">Plone Tabs Configuration <span id="busy"><img src='busy_icon.gif' alt="" /></span></h1> |
---|
40 | <a href="" |
---|
41 | class="link-parent" |
---|
42 | tal:attributes="href string:${portal_url}/plone_control_panel" |
---|
43 | i18n:translate="label_up_to_plone_setup"> |
---|
44 | Up to Site Setup |
---|
45 | </a> |
---|
46 | <div class="reorder-controls"> |
---|
47 | <a href="#" id="reorder">Reorder</a> |
---|
48 | </div> |
---|
49 | <div class="sort-controls"> |
---|
50 | <a href="#" id="save">Save</a> | |
---|
51 | <a href="#" id="cancel">Cancel</a> |
---|
52 | </div> |
---|
53 | <ul class="csshover" |
---|
54 | id="tabslist" tal:content="structure here/qpt_gettabslist" /> |
---|
55 | <form id="addaction" |
---|
56 | method="post" |
---|
57 | action="addPTAction" |
---|
58 | tal:attributes="action string:${portal_url}/prefs_tabs_form;"> |
---|
59 | <fieldset> |
---|
60 | <legend>Add a new portal_tabs Action</legend> |
---|
61 | <dl class="field-name"><dt><label>Name</label></dt> |
---|
62 | <dd><input id="actname" type="text" value="" |
---|
63 | name="name" /></dd></dl> |
---|
64 | <dl class="field-action"><dt><label>URL (Expression)</label></dt> |
---|
65 | <dd><input id="actaction" type="text" value="" size="30" |
---|
66 | name="action" /></dd></dl> |
---|
67 | |
---|
68 | <dl class="advanced collapsible collapsedOnLoad"> |
---|
69 | <dt class="collapsibleHeader">Advanced</dt> |
---|
70 | <dd class="collapsibleContent"> |
---|
71 | <dl class="field-id"><dt><label>Id</label></dt> |
---|
72 | <dd><input id="actid" type="text" value="" |
---|
73 | name="id" /></dd></dl> |
---|
74 | <dl class="field-condition"><dt><label>Condition (Expression)</label></dt> |
---|
75 | <dd><input id="actcondition" type="text" value="" size="30" |
---|
76 | name="condition" /></dd></dl> |
---|
77 | <div class="visualClear"><!-- --></div> |
---|
78 | </dd> |
---|
79 | </dl> |
---|
80 | </fieldset> |
---|
81 | <div class="add-controls"> |
---|
82 | <input type="submit" id="buttonadd" i18n:attributes="value" value="Add" /> |
---|
83 | <input type="submit" id="buttoncancel" i18n:attributes="value" value="Cancel" /> |
---|
84 | </div> |
---|
85 | </form> |
---|
86 | <div class="field" |
---|
87 | tal:define="generated_tabs python: not site_properties.disable_folder_sections; |
---|
88 | generated_tabs request/generated_tabs | generated_tabs; |
---|
89 | error errors/generated_tabs | nothing;" |
---|
90 | tal:attributes="class python:test(error, 'field error', 'field')" |
---|
91 | tal:on-error="string:"> |
---|
92 | <input type="checkbox" |
---|
93 | id="generated_tabs" |
---|
94 | name="generated_tabs" |
---|
95 | value="1" |
---|
96 | tal:attributes="checked python:test(generated_tabs, 'checked', None)" /> |
---|
97 | <label for="generated_tabs" i18n:translate="label_generated_tabs_enable">Automatically generate tabs</label> |
---|
98 | <div class="formHelp" i18n:translate="help_generated_tabs"> |
---|
99 | By default, all folders created at the root level will have global section |
---|
100 | navigation generated. You can turn this off if you prefer manually constructing |
---|
101 | this part of the navigation. |
---|
102 | </div> |
---|
103 | </div> |
---|
104 | </div> |
---|
105 | |
---|
106 | </div> |
---|
107 | </body> |
---|
108 | </html> |
---|