[43] | 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; |
---|
[53] | 17 | category python:test(category and category != '', category, 'portal_tabs'); |
---|
[872] | 18 | errors options/errors|nothing; |
---|
| 19 | test nocall:view/test"> |
---|
[43] | 20 | |
---|
[53] | 21 | <div id="plonetabs_form"> |
---|
| 22 | |
---|
[502] | 23 | <div id="app" class="qPloneTabs"> |
---|
[43] | 24 | |
---|
[507] | 25 | <h1 id="plonetabs-form-title" |
---|
| 26 | class="documentFirstHeading" |
---|
| 27 | i18n:translate="" |
---|
| 28 | tal:content="python:view.getPageTitle(category)">Plone Tabs</h1> |
---|
[43] | 29 | |
---|
| 30 | <a href="" |
---|
| 31 | class="link-parent" |
---|
[872] | 32 | tal:attributes="href string:${portal_url}/plone_control_panel" |
---|
[43] | 33 | i18n:domain="plone" |
---|
| 34 | i18n:translate="label_up_to_plone_setup"> |
---|
| 35 | Up to Site Setup |
---|
| 36 | </a> |
---|
| 37 | |
---|
[873] | 38 | <div> |
---|
[53] | 39 | <form id="selectcategory_form" |
---|
| 40 | name="selectcategory_form" |
---|
| 41 | method="post" |
---|
| 42 | action="@@plonetabs-controlpanel" |
---|
| 43 | tal:attributes="action string:${portal_url}/${attrs/action}"> |
---|
| 44 | <div class="field" |
---|
| 45 | tal:define="error errors/select_category|nothing" |
---|
| 46 | tal:attributes="class python:test(error, 'field error', 'field')"> |
---|
| 47 | <div tal:replace="error">Error output</div> |
---|
| 48 | <label for="select_category" i18n:translate="label_select_category">Select category to manage</label> |
---|
| 49 | <select name="category" |
---|
| 50 | id="select_category" |
---|
| 51 | tal:define="categories view/getCategories"> |
---|
| 52 | <option value="current_category" selected="selected" |
---|
| 53 | tal:attributes="value category" |
---|
[873] | 54 | i18n:translate="" |
---|
[53] | 55 | tal:content="category" /> |
---|
| 56 | <tal:options repeat="cat categories"> |
---|
| 57 | <option tal:attributes="value cat" |
---|
| 58 | tal:content="cat" |
---|
[873] | 59 | i18n:translate="" |
---|
[53] | 60 | tal:condition="python: cat != category" /> |
---|
| 61 | </tal:options> |
---|
| 62 | </select> |
---|
[873] | 63 | <input class="change-button kssHidden" type="submit" i18n:attributes="value" name="category.change" value="Change" /> |
---|
[53] | 64 | </div> |
---|
| 65 | </form> |
---|
| 66 | </div> |
---|
[43] | 67 | |
---|
| 68 | <ul class="csshover" |
---|
| 69 | id="tabslist" |
---|
[55] | 70 | tal:content="structure python:view.getActionsList(category=category, errors=errors)" /> |
---|
[43] | 71 | |
---|
| 72 | <form id="addaction" |
---|
[53] | 73 | name="addaction_form" |
---|
[43] | 74 | method="post" |
---|
[48] | 75 | action="@@plonetabs-controlpanel" |
---|
[43] | 76 | tal:attributes="action string:${portal_url}/${attrs/action}"> |
---|
[53] | 77 | <input type="hidden" name="form.submitted:boolean" value="True" /> |
---|
[746] | 78 | <input type="hidden" name="category" value="category" tal:attributes="value category" /> |
---|
[43] | 79 | <dl class="field-visible bridge"> |
---|
| 80 | <dt> |
---|
[873] | 81 | <label for="actvisible" i18n:translate="">Visible</label> |
---|
[43] | 82 | </dt> |
---|
| 83 | <dd> |
---|
[53] | 84 | <input id="actvisible" type="checkbox" value="1" checked="checked" title="visibility" name="visible" |
---|
| 85 | tal:attributes="checked request/visible|string:checked" /> |
---|
[43] | 86 | </dd> |
---|
| 87 | </dl> |
---|
[53] | 88 | <dl class="field-name" |
---|
| 89 | tal:define="error errors/title|nothing" |
---|
[151] | 90 | tal:attributes="class python:test(error, '%s error' % attrs['class'], attrs['class'])"> |
---|
[43] | 91 | <dt> |
---|
[873] | 92 | <label for="actname" i18n:translate="">Name</label> |
---|
[43] | 93 | </dt> |
---|
| 94 | <dd> |
---|
[873] | 95 | <span class="error-container" tal:content="error" |
---|
| 96 | i18n:translate="">Validation error output</span> |
---|
[734] | 97 | <input id="actname" type="text" value="" name="title" autocomplete="off" |
---|
[53] | 98 | tal:attributes="value request/title|nothing"/> |
---|
[43] | 99 | </dd> |
---|
| 100 | </dl> |
---|
[53] | 101 | <dl class="field-action" |
---|
| 102 | tal:define="error errors/url_expr|nothing" |
---|
[151] | 103 | tal:attributes="class python:test(error, '%s error' % attrs['class'], attrs['class'])"> |
---|
[43] | 104 | <dt> |
---|
[873] | 105 | <label for="actaction" i18n:translate="">URL (Expression)</label> |
---|
[43] | 106 | </dt> |
---|
| 107 | <dd> |
---|
[873] | 108 | <span class="error-container" tal:content="error" |
---|
| 109 | i18n:translate="">Validation error output</span> |
---|
[53] | 110 | <input id="actaction" type="text" value="" size="30" name="url_expr" |
---|
| 111 | tal:attributes="value request/url_expr|nothing"/> |
---|
[43] | 112 | </dd> |
---|
| 113 | </dl> |
---|
[151] | 114 | <dl class="collapseAdvanced expandedBlock"> |
---|
[873] | 115 | <dt class="headerAdvanced" i18n:translate="">Advanced</dt> |
---|
[43] | 116 | <dd class="contentAdvanced"> |
---|
[53] | 117 | <dl class="field-id" |
---|
| 118 | tal:define="error errors/id|nothing" |
---|
[151] | 119 | tal:attributes="class python:test(error, '%s error' % attrs['class'], attrs['class'])"> |
---|
[43] | 120 | <dt> |
---|
[873] | 121 | <label for="actid" i18n:translate="">Id</label> |
---|
[43] | 122 | </dt> |
---|
| 123 | <dd> |
---|
[873] | 124 | <span class="error-container" tal:content="error" |
---|
| 125 | i18n:translate="">Validation error output</span> |
---|
[53] | 126 | <input id="actid" type="text" value="" name="id" |
---|
| 127 | tal:attributes="value request/id|nothing" /> |
---|
[43] | 128 | </dd> |
---|
| 129 | </dl> |
---|
[53] | 130 | <dl class="field-condition" |
---|
| 131 | tal:define="error errors/available_expr|nothing" |
---|
[151] | 132 | tal:attributes="class python:test(error, '%s error' % attrs['class'], attrs['class'])"> |
---|
[43] | 133 | <dt> |
---|
[873] | 134 | <label for="actcondition" i18n:translate="">Condition (Expression)</label> |
---|
[43] | 135 | </dt> |
---|
| 136 | <dd> |
---|
[873] | 137 | <span class="error-container" tal:content="error" |
---|
| 138 | i18n:translate="">Validation error output</span> |
---|
[53] | 139 | <input id="actcondition" type="text" value="" size="30" name="available_expr" |
---|
| 140 | tal:attributes="value request/available_expr|nothing" /> |
---|
[43] | 141 | </dd> |
---|
| 142 | </dl> |
---|
| 143 | <div class="visualClear"><!-- --></div> |
---|
| 144 | </dd> |
---|
| 145 | </dl> |
---|
| 146 | <div class="add-controls"> |
---|
[502] | 147 | <input type="submit" id="buttonadd" class="context" i18n:attributes="value" name="add.add" value="Add" /> |
---|
| 148 | <input type="submit" id="buttoncancel" class="standalone" i18n:attributes="value" name="add.cancel" value="Cancel" /> |
---|
[873] | 149 | <input type="reset" id="buttonreset" class="editreset kssHidden context" i18n:attributes="value" name="add.reset" value="Reset" /> |
---|
[43] | 150 | </div> |
---|
| 151 | </form> |
---|
| 152 | |
---|
[162] | 153 | <tal:autogenerated_section tal:replace="structure python:view.getAutoGenereatedSection(cat_name=category, errors=errors)" /> |
---|
[43] | 154 | |
---|
[53] | 155 | </div> |
---|
[43] | 156 | |
---|
| 157 | </div> |
---|
| 158 | |
---|
| 159 | </div> |
---|
| 160 | |
---|
| 161 | </body> |
---|
| 162 | </html> |
---|