source: trunk/skins/lemill/lemill_choose_template.pt @ 608

Revision 608, 1.2 KB checked in by szabolcs, 13 years ago (diff)

closes #642 spent 20m

Line 
1<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
2    lang="en"
3    metal:use-macro="here/form_template/macros/master"
4    i18n:domain="lemill">
5    <body>
6
7        <div metal:fill-slot="main" style="width:100%">
8            <h1 i18n:translate="heading_choose_template">Step 2: Choose a template</h1>
9           
10            <p i18n:translate="text_offer_templates">We offer you a selection of templates that you can use for creating your learning material online.</p>
11
12            <tal:def define="templates context/getTemplates">
13
14            <ul>
15                <!-- sorted(templates.keys()) in python2.4 is short for (lambda x, y: (x.sort(), y)[1])(*([templates.keys()] * 2)) -->
16                <li tal:repeat="templ python:(lambda x, y: (x.sort(), y)[1])(*([templates.keys()] * 2))"><a href="addMaterial?use_template=simple-text"
17                    tal:attributes="href python:'createObject?type_name='+templates.get(templ).get('meta_type');
18                                    i18n:translate string:link_template_$templ;"
19                    tal:content="python:templates.get(templ).get('title')">PLACEHOLDER</a></li>
20            </ul>
21            </tal:def>
22        </div>
23
24    </body>
25</html>
26
Note: See TracBrowser for help on using the repository browser.