source: products/qPloneTabs/tags/0.2.2/skins/qPloneTabs/qpt_gettabslist.pt @ 2111

Last change on this file since 2111 was 1, checked in by myroslav, 19 years ago

Building directory structure

  • Property svn:eol-style set to native
File size: 2.8 KB
Line 
1<tal:tabs tal:define="dummy python:request.RESPONSE.setHeader('Expires', 'Mon, 26 Jul 1997 05:00:00 GMT')"
2          tal:repeat="tab python:modules['Products.qPloneTabs'].getPortalTabs(here)">
3<li tal:define="id tab/id;
4                visible tab/visible|nothing;
5                index repeat/tab/index"
6    tal:attributes="id string:tabslist_${id};
7                    title tab/description|nothing;
8                    class python:test(visible, '', 'invisible')">
9  <img class="drag-handle" src="drag.gif" alt="" height="11" width="25" />
10  <div class="bridge"><input type="checkbox" class="visibility" value="1" name="visibility" title="visibility"
11                             tal:attributes="checked python:test(visible, 'checked', None);
12                                             name string:i${index}_${attrs/name}" /></div>
13  <a class="delete" href="#">Delete</a>
14  <span class="url-helper" tal:content="tab/getActionExpression|nothing">Tab Action</span>
15  <span class="tab-title" tal:content="tab/title">Tab Name</span>
16  <form class="editform"
17        method="post"
18        action="editPTAction"
19        tal:attributes="action string:${here/portal_url}/prefs_tabs_form;
20                        name string:f$index">
21    <input type="hidden" name="idx" tal:attributes="value index" />
22      <dl>
23        <dt><label>Name</label></dt>
24        <dd><input type="text" value="" name="name"
25                   tal:attributes="value tab/title;
26                                   name string:i${index}_${attrs/name}"      /></dd>
27      </dl>
28      <dl class="collapseAdvanced expandedBlock">
29        <dt class="headerAdvanced">Advanced</dt>
30        <dd class="contentAdvanced">
31          <dl>
32            <dt><label>URL (Expression)</label></dt>
33            <dd><input type="text" value="" name="action"     size="30"
34                       tal:attributes="value tab/getActionExpression|nothing;
35                                       name string:i${index}_${attrs/name}" /></dd>
36          </dl>
37          <dl>
38            <dt><label>Id</label></dt>
39            <dd><input type="text" value="" name="id"
40                       tal:attributes="value tab/id|nothing;
41                                       name string:i${index}_${attrs/name}" /></dd>
42          </dl>
43          <dl>
44            <dt><label>Condition (Expression)</label></dt>
45            <dd><input type="text" value="" name="condition"  size="30"
46                       tal:attributes="value tab/getCondition|nothing;
47                                       name string:i${index}_${attrs/name}" /></dd>
48          </dl>
49          <div class="visualClear"><!-- --></div>
50        </dd>
51      </dl>
52    <div>
53      <input type="submit" class="editsave"   i18n:attributes="value" value="Save"   />
54      <input type="submit" class="editcancel" i18n:attributes="value" value="Cancel" />
55    </div>
56  </form>
57</li>
58</tal:tabs>
Note: See TracBrowser for help on using the repository browser.