[135] | 1 | <metal:header_macro use-macro="context/@@plonetabs-header-macro/macros/header" /> |
---|
[43] | 2 | |
---|
[162] | 3 | <div id="autogeneration_section" |
---|
[873] | 4 | i18n:domain="quintagroup.plonetabs" |
---|
[162] | 5 | tal:define="category options/category; |
---|
| 6 | errors options/errors|nothing; |
---|
| 7 | test nocall:view/test"> |
---|
| 8 | |
---|
| 9 | <form name="generated_tabs_form" |
---|
| 10 | action="@@plonetabs-controlpanel" |
---|
| 11 | method="post" |
---|
| 12 | tal:attributes="action string:${portal_url}/${attrs/action}" |
---|
| 13 | tal:condition="python:category == 'portal_tabs'"> |
---|
| 14 | |
---|
| 15 | <input type="hidden" name="form.submitted:boolean" value="True" /> |
---|
| 16 | |
---|
| 17 | <div class="field" |
---|
| 18 | tal:define="generated_tabs request/generated_tabs|view/isGeneratedTabs; |
---|
| 19 | error errors/generated_tabs|nothing" |
---|
| 20 | tal:attributes="class python:test(error, 'field error', 'field')"> |
---|
| 21 | <input type="checkbox" |
---|
| 22 | id="generated_tabs" |
---|
| 23 | name="generated_tabs" |
---|
| 24 | value="1" |
---|
| 25 | tal:attributes="checked python:test(generated_tabs, 'checked', None)" /> |
---|
[873] | 26 | <label for="generated_tabs" |
---|
| 27 | i18n:translate="label_generated_tabs_enable" |
---|
| 28 | i18n:domain="plone">Automatically generate tabs</label> |
---|
| 29 | <div class="formHelp" i18n:translate="help_generated_tabs" |
---|
| 30 | i18n:domain="plone"> |
---|
[162] | 31 | By default, all folders created at the root level will have global section |
---|
| 32 | navigation generated. You can turn this off if you prefer manually constructing |
---|
| 33 | this part of the navigation. |
---|
| 34 | </div> |
---|
| 35 | </div> |
---|
| 36 | |
---|
| 37 | <div class="field" |
---|
| 38 | tal:define="nonfolderish_tabs request/nonfolderish_tabs|view/isNotFoldersGenerated; |
---|
| 39 | error errors/nonfolderish_tabs|nothing" |
---|
| 40 | tal:attributes="class python:test(error, 'field error', 'field')"> |
---|
| 41 | <input type="checkbox" |
---|
| 42 | id="nonfolderish_tabs" |
---|
| 43 | name="nonfolderish_tabs" |
---|
| 44 | value="1" |
---|
| 45 | tal:attributes="checked python:test(nonfolderish_tabs, 'checked', None)" /> |
---|
[873] | 46 | <label for="nonfolderish_tabs" |
---|
| 47 | i18n:translate="label_nonfolderish_tabs_enable">Generate tabs for items other than folders</label> |
---|
| 48 | <div class="formHelp" |
---|
| 49 | i18n:domain="plone" |
---|
| 50 | i18n:translate="help_nonfolderish_tabs"> |
---|
[162] | 51 | By default, any content item in the root of the portal will be shown as |
---|
| 52 | a global section. If you turn this option off, only folders will be shown. |
---|
| 53 | This only has an effect if "Automatically generate tabs" is enabled |
---|
| 54 | </div> |
---|
| 55 | </div> |
---|
| 56 | |
---|
| 57 | <ul class="csshover" id="roottabs" |
---|
| 58 | tal:content="structure view/getGeneratedTabs" /> |
---|
| 59 | |
---|
| 60 | <div id="autogeneration_controls"> |
---|
[873] | 61 | <input class="submit-button context" type="submit" name="autogenerated.save" i18n:attributes="value" value="Save" /> |
---|
[162] | 62 | </div> |
---|
| 63 | |
---|
| 64 | </form> |
---|
| 65 | |
---|
| 66 | </div> |
---|