source: products/quintagroup.plonetabs/trunk/quintagroup/plonetabs/browser/templates/plonetabs.pt @ 3077

Last change on this file since 3077 was 3077, checked in by liebster, 13 years ago

add variables that are missing in plone 4 (portal_url and language)

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