source: products/quintagroup.referencedatagridfield/trunk/quintagroup/referencedatagridfield/skins/referencedatagridfield/datagrid_block_cell.pt @ 2286

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

Added BlockColumn? with possiblity to blocking and styling column based on row data values

  • 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     
7     
8<!-- View/edit free text columns
9 
10  -->
11
12<body>
13    <!-- VIEW -->
14    <metal:view_cell_macro define-macro="view_cell">               
15      <div tal:content="cell_value" />
16    </metal:view_cell_macro>
17
18    <!-- EDIT -->
19    <metal:edit_cell_macro define-macro="edit_cell">
20       <input style="width: 100%" name="myfield.name:records"
21              tal:define="attribs python:column_definition.getAttributesData(rows);"
22              tal:attributes="name string:${fieldName}.${column}:records;
23                          id string:${column}_${fieldId};
24                          value cell_value;
25                          onchange eventHandler;
26                          readOnly python:attribs['read_only'];
27                          class python:attribs['style_class'];
28                          "
29           type="text" />
30    </metal:edit_cell_macro>
31   
32   <!-- EMPTY EDIT -->
33    <metal:edit_empty_cell_macro define-macro="edit_empty_cell">
34       <input style="width: 100%" name="myfield.name:records"
35                       tal:attributes="name string:${fieldName}.${column}:records;
36                                       id string:${column}_${fieldId};
37                                       value python: column_definition.getDefault(here);
38                                       onchange eventHandler;
39                                       "
40                       type="text" />
41    </metal:edit_empty_cell_macro>
42   
43   
44
45</body>
46
47</html>
48
Note: See TracBrowser for help on using the repository browser.