1 | <html xmlns="http://www.w3.org/1999/xhtml" |
---|
2 | xmlns:metal="http://xml.zope.org/namespaces/metal" |
---|
3 | xmlns:tal="http://xml.zope.org/namespaces/tal" |
---|
4 | xmlns:i18n="http://xml.zope.org/namespaces/i18n" |
---|
5 | xml:lang="en" lang="en" |
---|
6 | metal:use-macro="context/prefs_main_template/macros/master" |
---|
7 | i18n:domain="quintagroup.plonetabs"> |
---|
8 | |
---|
9 | <metal:block metal:fill-slot="top_slot" |
---|
10 | tal:define="dummy python:request.set('disable_border', 1)" /> |
---|
11 | |
---|
12 | <body> |
---|
13 | |
---|
14 | <div metal:fill-slot="prefs_configlet_main" |
---|
15 | tal:define="test nocall:view/test; |
---|
16 | category here/REQUEST/category|nothing; |
---|
17 | category python:test(category and category != '', category, 'portal_tabs');"> |
---|
18 | |
---|
19 | <div id="app" class="viewing"> |
---|
20 | |
---|
21 | <h1 class="documentFirstHeading"> |
---|
22 | <span i18n:translate="heading_plonetabs"> |
---|
23 | <tal:title replace="python:view.getPageTitle(category)">Plone Tabs</tal:title> |
---|
24 | </span> |
---|
25 | <span id="busy"><img src="++resource++busy_icon.gif" alt="" tal:attributes="src string:${portal_url}/${attrs/src}" /></span> |
---|
26 | </h1> |
---|
27 | |
---|
28 | <a href="" |
---|
29 | class="link-parent" |
---|
30 | tal:attributes="href string: $portal_url/plone_control_panel" |
---|
31 | i18n:domain="plone" |
---|
32 | i18n:translate="label_up_to_plone_setup"> |
---|
33 | Up to Site Setup |
---|
34 | </a> |
---|
35 | |
---|
36 | <p i18n:translate="description_plonetabs"> |
---|
37 | Select category to manage: |
---|
38 | <select name="select_category" |
---|
39 | id="select_category" |
---|
40 | tal:define="categories view/getCategories"> |
---|
41 | <tal:options repeat="cat categories"> |
---|
42 | <option tal:attributes="value string:category=${cat}; |
---|
43 | selected python:test(category == cat, 'selected', None)" |
---|
44 | tal:content="cat" /> |
---|
45 | </tal:options> |
---|
46 | </select> |
---|
47 | </p> |
---|
48 | |
---|
49 | <input type="hidden" name="category" value="portal_tabs" id="actions_category" |
---|
50 | tal:attributes="value category" /> |
---|
51 | |
---|
52 | <div class="reorder-controls" |
---|
53 | tal:define="notempty python:view.hasActions(category)"> |
---|
54 | <a href="#" id="reorder" class="" |
---|
55 | tal:attributes="class python:test(notempty, '', 'noitems')">Reorder</a> |
---|
56 | </div> |
---|
57 | |
---|
58 | <div class="sort-controls"> |
---|
59 | <a href="#" id="save">Save</a> | |
---|
60 | <a href="#" id="cancel">Cancel</a> |
---|
61 | </div> |
---|
62 | |
---|
63 | <ul class="csshover" |
---|
64 | id="tabslist" |
---|
65 | tal:content="structure python:view.getActionsList(category=category)" /> |
---|
66 | |
---|
67 | <form id="addaction" |
---|
68 | method="post" |
---|
69 | action="@@plonetabs-controlpanel" |
---|
70 | tal:attributes="action string:${portal_url}/${attrs/action}"> |
---|
71 | <dl class="field-visible bridge"> |
---|
72 | <dt> |
---|
73 | <label>Visible</label> |
---|
74 | </dt> |
---|
75 | <dd> |
---|
76 | <input id="actvisible" type="checkbox" value="1" checked="checked" title="visibility" name="visible" /> |
---|
77 | </dd> |
---|
78 | </dl> |
---|
79 | <dl class="field-name"> |
---|
80 | <dt> |
---|
81 | <label>Name</label> |
---|
82 | </dt> |
---|
83 | <dd> |
---|
84 | <input id="actname" type="text" value="" name="name" /> |
---|
85 | </dd> |
---|
86 | </dl> |
---|
87 | <dl class="field-action"> |
---|
88 | <dt> |
---|
89 | <label>URL (Expression)</label> |
---|
90 | </dt> |
---|
91 | <dd> |
---|
92 | <input id="actaction" type="text" value="" size="30" name="action" /> |
---|
93 | </dd> |
---|
94 | </dl> |
---|
95 | <dl class="advanced collapseAdvanced expandedBlock"> |
---|
96 | <dt class="headerAdvanced">Advanced</dt> |
---|
97 | <dd class="contentAdvanced"> |
---|
98 | <dl class="field-id"> |
---|
99 | <dt> |
---|
100 | <label>Id</label> |
---|
101 | </dt> |
---|
102 | <dd> |
---|
103 | <input id="actid" type="text" value="" name="id" /> |
---|
104 | </dd> |
---|
105 | </dl> |
---|
106 | <dl class="field-condition"> |
---|
107 | <dt> |
---|
108 | <label>Condition (Expression)</label> |
---|
109 | </dt> |
---|
110 | <dd> |
---|
111 | <input id="actcondition" type="text" value="" size="30" name="condition" /> |
---|
112 | </dd> |
---|
113 | </dl> |
---|
114 | <div class="visualClear"><!-- --></div> |
---|
115 | </dd> |
---|
116 | </dl> |
---|
117 | <div class="add-controls"> |
---|
118 | <input type="submit" id="buttonadd" i18n:attributes="value" value="Add" /> |
---|
119 | <input type="submit" id="buttoncancel" i18n:attributes="value" value="Cancel" /> |
---|
120 | </div> |
---|
121 | </form> |
---|
122 | |
---|
123 | <tal:autogeneration condition="python:category == 'portal_tabs'"> |
---|
124 | |
---|
125 | <form name="generated_tabs_form" |
---|
126 | action="@@manage-setAutogeneration" |
---|
127 | method="post" |
---|
128 | tal:attributes="action string:${portal_url}/${attrs/action}"> |
---|
129 | |
---|
130 | <div class="field" |
---|
131 | tal:define="generated_tabs request/generated_tabs|view/isGeneratedTabs; |
---|
132 | error errors/generated_tabs|nothing" |
---|
133 | tal:attributes="class python:test(error, 'field error', 'field')"> |
---|
134 | <input type="checkbox" |
---|
135 | id="generated_tabs" |
---|
136 | name="generated_tabs" |
---|
137 | value="1" |
---|
138 | tal:attributes="checked python:test(generated_tabs, 'checked', None)" /> |
---|
139 | <label for="generated_tabs" i18n:translate="label_generated_tabs_enable">Automatically generate tabs</label> |
---|
140 | <div class="formHelp" i18n:translate="help_generated_tabs"> |
---|
141 | By default, all folders created at the root level will have global section |
---|
142 | navigation generated. You can turn this off if you prefer manually constructing |
---|
143 | this part of the navigation. |
---|
144 | </div> |
---|
145 | </div> |
---|
146 | |
---|
147 | <div class="field" |
---|
148 | tal:define="nonfolderish_tabs request/nonfolderish_tabs|view/isNotFoldersGenerated; |
---|
149 | error errors/nonfolderish_tabs|nothing" |
---|
150 | tal:attributes="class python:test(error, 'field error', 'field')"> |
---|
151 | <input type="checkbox" |
---|
152 | id="nonfolderish_tabs" |
---|
153 | name="nonfolderish_tabs" |
---|
154 | value="1" |
---|
155 | tal:attributes="checked python:test(nonfolderish_tabs, 'checked', None)" /> |
---|
156 | <label for="nonfolderish_tabs" i18n:translate="label_nonfolderish_tabs_enable">Generate tabs for items other than folders</label> |
---|
157 | <div class="formHelp" i18n:translate="help_nonfolderish_tabs"> |
---|
158 | By default, any content item in the root of the portal will be shown as |
---|
159 | a global section. If you turn this option off, only folders will be shown. |
---|
160 | This only has an effect if "Automatically generate tabs" is enabled |
---|
161 | </div> |
---|
162 | </div> |
---|
163 | |
---|
164 | <ul class="csshover" id="roottabs" |
---|
165 | tal:content="structure view/getGeneratedTabs" /> |
---|
166 | |
---|
167 | <div id="autogeneration_controls"> |
---|
168 | <input class="submit-button" type="submit" name="generated_roots_button" value="Save" /> |
---|
169 | </div> |
---|
170 | |
---|
171 | </form> |
---|
172 | |
---|
173 | </tal:autogeneration> |
---|
174 | |
---|
175 | |
---|
176 | </div> |
---|
177 | |
---|
178 | </div> |
---|
179 | |
---|
180 | </body> |
---|
181 | </html> |
---|