[2282] | 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 | <tal:visible condition="python:columnd['visible']"> |
---|
| 21 | <input style="width: 100%" name="myfield.name:records" |
---|
| 22 | tal:attributes="name string:${fieldName}.${column}:records; |
---|
| 23 | id string:${column}_${fieldId}; |
---|
| 24 | value cell_value; |
---|
| 25 | onchange eventHandler; |
---|
| 26 | " |
---|
| 27 | type="text" /> |
---|
| 28 | </tal:visible> |
---|
| 29 | <tal:hidden condition="python:not columnd['visible']"> |
---|
| 30 | <input style="width: 100%" name="myfield.name:records" |
---|
| 31 | tal:attributes="name string:${fieldName}.${column}:records; |
---|
| 32 | id string:${column}_${fieldId}; |
---|
| 33 | value cell_value; |
---|
| 34 | onchange eventHandler; |
---|
| 35 | " |
---|
| 36 | type="hidden" /> |
---|
| 37 | </tal:hidden> |
---|
| 38 | </metal:edit_cell_macro> |
---|
| 39 | |
---|
| 40 | <!-- EMPTY EDIT --> |
---|
| 41 | <metal:edit_empty_cell_macro define-macro="edit_empty_cell"> |
---|
| 42 | |
---|
| 43 | <tal:visible condition="python:columnd['visible']"> |
---|
| 44 | <input style="width: 100%" name="myfield.name:records" |
---|
| 45 | tal:attributes="name string:${fieldName}.${column}:records; |
---|
| 46 | id string:${column}_${fieldId}; |
---|
| 47 | value python: column_definition.getDefault(here); |
---|
| 48 | onchange eventHandler; |
---|
| 49 | " |
---|
| 50 | type="text" /> |
---|
| 51 | </tal:visible> |
---|
| 52 | <tal:hidden condition="python:not columnd['visible']"> |
---|
| 53 | <input style="width: 100%" name="myfield.name:records" |
---|
| 54 | tal:attributes="name string:${fieldName}.${column}:records; |
---|
| 55 | id string:${column}_${fieldId}; |
---|
| 56 | value python: column_definition.getDefault(here); |
---|
| 57 | onchange eventHandler; |
---|
| 58 | " |
---|
| 59 | type="hidden" /> |
---|
| 60 | </tal:hidden> |
---|
| 61 | </metal:edit_empty_cell_macro> |
---|
| 62 | |
---|
| 63 | |
---|
| 64 | |
---|
| 65 | </body> |
---|
| 66 | |
---|
| 67 | </html> |
---|
| 68 | |
---|