source: trunk/skins/lemill/template_simple_text_edit.cpt @ 344

Revision 344, 850 bytes checked in by tarmo, 13 years ago (diff)

Refactored Material view and edit pages.
Something like 400 lines of unneeded ZPT
removed.

RevLine 
[188]1<html xmlns="http://www.w3.org/1999/xhtml"
[189]2    xml:lang="en"
3    lang="en"
4    xmlns:tal="http://xml.zope.org/namespaces/tal"
5    xmlns:metal="http://xml.zope.org/namespaces/metal"
6    xmlns:i18n="http://xml.zope.org/namespaces/i18n"
[209]7    metal:use-macro="here/form_template/macros/master"
[189]8    i18n:domain="plone">
[188]9
[344]10<body>
11<metal:main fill-slot="main">
12<metal:macro define-macro="widgets">
[188]13
[344]14        <tal:block tal:define="visibleFields python:context.getTemplate(context.getTemplateId()).get('fields')">
[188]15            <tal:fields repeat="field fields">
[189]16                <tal:cond condition="python:field.getName() in visibleFields">
17                    <metal:fieldMacro use-macro="python:here.widget(field.getName(), mode='edit')" />
18                </tal:cond>
[188]19            </tal:fields>
[344]20        </tal:block>
21</metal:macro>
22</metal:main>
23</body>
24</html>
Note: See TracBrowser for help on using the repository browser.