source: products/qPloneTabs/tags/0.2.1/skins/qPloneTabs/qpt_gettabslist.pt @ 1591

Last change on this file since 1591 was 1, checked in by myroslav, 18 years ago

Building directory structure

  • Property svn:eol-style set to native
File size: 2.4 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    tal:attributes="id string:tabslist_${id};
5                    title tab/description|nothing;">
6  <img class="drag-handle" src="drag.gif" alt="" height="11" width="25" />
7  <a class="delete" href="#">Delete</a>
8  <span tal:content="tab/title">Tab Name</span>
9  <form class="editform"
10        method="post"
11        action="editPTAction"
12        tal:define="index repeat/tab/index"
13        tal:attributes="action string:${here/portal_url}/prefs_tabs_form;
14                        name string:f$index">
15    <input type="hidden" name="idx" tal:attributes="value index" />
16    <fieldset>
17      <legend tal:content="string:Edit '${tab/title}' Action">Edit Action</legend>
18      <dl>
19        <dt><label>Name</label></dt>
20        <dd><input type="text" value="" name="name"
21                   tal:attributes="value tab/title;
22                                   name string:i${index}_${attrs/name}"      /></dd>
23      </dl>
24
25      <dl class="collapsible collapsedBlockCollapsible">
26        <dt class="collapsibleHeader">Advanced</dt>
27        <dd class="collapsibleContent">
28          <dl>
29            <dt><label>URL (Expression)</label></dt>
30            <dd><input type="text" value="" name="action"     size="30"
31                       tal:attributes="value tab/getActionExpression|nothing;
32                                       name string:i${index}_${attrs/name}" /></dd>
33          </dl>
34          <dl>
35            <dt><label>Id</label></dt>
36            <dd><input type="text" value="" name="id"
37                       tal:attributes="value tab/id|nothing;
38                                       name string:i${index}_${attrs/name}" /></dd>
39          </dl>
40          <dl>
41            <dt><label>Condition (Expression)</label></dt>
42            <dd><input type="text" value="" name="condition"  size="30"
43                       tal:attributes="value tab/getCondition|nothing;
44                                       name string:i${index}_${attrs/name}" /></dd>
45          </dl>
46          <div class="visualClear"><!-- --></div>
47        </dd>
48      </dl>
49    </fieldset>
50    <div>
51      <input type="submit" class="editsave"   i18n:attributes="value" value="Save"   />
52      <input type="submit" class="editcancel" i18n:attributes="value" value="Cancel" />
53    </div>
54  </form>
55</li>
56</tal:tabs>
Note: See TracBrowser for help on using the repository browser.