source: products/quintagroup.referencedatagridfield/trunk/quintagroup/referencedatagridfield/skins/referencedatagridfield/referencedatagrid_block_cell.pt @ 2297

Last change on this file since 2297 was 2297, checked in by mylan, 14 years ago

Rename widgets for columns to referencedatagrid*, little templates cleanup

  • Property svn:eol-style set to native
File size: 1.6 KB
Line 
1<html xmlns="http://www.w3.org/1999/xhtml"
2      xmlns:tal="http://xml.zope.org/namespaces/tal"
3      xmlns:metal="http://xml.zope.org/namespaces/metal"
4      xmlns:i18n="http://xml.zope.org/namespaces/i18n"
5      i18n:domain="plone">
6<body>
7    <!-- VIEW -->
8    <metal:view_cell_macro define-macro="view_cell">               
9      <div tal:content="cell_value" />
10    </metal:view_cell_macro>
11
12    <!-- EDIT -->
13    <metal:edit_cell_macro define-macro="edit_cell">
14       <input style="width: 100%" name="myfield.name:records"
15              tal:define="attribs python:column_definition.getAttributesData(rows);"
16              tal:attributes="name string:${fieldName}.${column}:records;
17                          id string:${column}_${fieldId};
18                          value cell_value;
19                          onchange eventHandler;
20                          readOnly python:attribs['read_only'];
21                          class python:attribs['style_class'];
22                          "
23           type="text" />
24    </metal:edit_cell_macro>
25   
26   <!-- EMPTY EDIT -->
27    <metal:edit_empty_cell_macro define-macro="edit_empty_cell">
28       <input style="width: 100%" name="myfield.name:records"
29                       tal:attributes="name string:${fieldName}.${column}:records;
30                                       id string:${column}_${fieldId};
31                                       value python: column_definition.getDefault(here);
32                                       onchange eventHandler;
33                                       "
34                       type="text" />
35    </metal:edit_empty_cell_macro>
36   
37</body>
38</html>
Note: See TracBrowser for help on using the repository browser.