source: products/qTopic/branches/plone2.1/skins/qtopic/atct_macros.pt @ 1

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

Building directory structure

File size: 2.9 KB
Line 
1<html xmlns="http://www.w3.org/1999/xhtml"
2      xml:lang="en-US"
3      lang="en-US"
4      i18n:domain="plone">
5
6<body>
7<table summary="criteria">
8<tr>
9<metal:criterion metal:define-macro="criterion_edit">
10   <tal:define-block tal:define="
11                schematas criterion/Schemata;
12                fieldsets python:[key for key in schematas.keys() if key != 'metadata'];
13                default_fieldset python:(not schematas or schematas.has_key('default'))
14                                         and 'default' or fieldsets[0];
15                fieldset request/fieldset|options/fieldset|default_fieldset;
16                catalog here/getCatalog|string:portal_catalog;
17                index python:here.portal_atct.getIndex(criterion.Field(),catalog);
18                edit_macros here/edit_macros/macros;
19                criterionid criterion/getId;
20               ">
21
22      <td style="padding: 0.5em; align: center;">
23        <input class="noborder"
24               type="checkbox"
25               value=""
26               name="criterion_ids:list"
27               id=""
28               tal:attributes="value criterionid;
29                               id string:cb_${criterionid}"
30               />
31      </td>
32     
33      <td style="padding: 0.5em;">
34         <span tal:content="python:index.friendlyName or index.index" i18n:translate="" />
35         <div class="formHelp" tal:content="index/description" i18n:translate="" />
36      </td>
37      <td style="padding: 0.5em;">
38
39        <div i18n:translate="" tal:content="criterion/Description" />
40
41        <div id=""
42             i18n:translate=""
43             class="formHelp"
44             style="visibilitys:hidden"
45             tal:content="criterion/Description"
46             tal:attributes="id string:${criterionid}_help;"
47             >
48        String
49        </div>
50
51        <input type="hidden"
52               name="criteria.id:records"
53               value=""
54               tal:attributes="value criterionid"
55               />
56
57        <tal:fields repeat="field python: schematas[fieldset].fields()">
58          <tal:editable tal:condition="python:field.mode != 'r'">
59              <metal:fieldMacro use-macro="python: criterion.widget('%s_%s' % (criterionid, field.getName()),
60                                           field = field,
61                                           mode='edit')"/>
62          </tal:editable>
63        </tal:fields>
64      </td>
65
66  </tal:define-block>
67</metal:criterion>
68</tr>
69</table>
70
71<metal:typedescription metal:define-macro="typedescription">
72        <tal:description tal:define="msgid here/typeDescMsgId | nothing;
73                                     default here/typeDescription| nothing;"
74                         tal:condition="default">
75
76          <p tal:content="python:here.translate(msgid=msgid, default=default)">
77            type description
78          </p>
79
80        </tal:description>
81</metal:typedescription>
82
83</body>
84</html>
Note: See TracBrowser for help on using the repository browser.