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