source: trunk/skins/lemill/import_presentation.pt @ 3042

Revision 3042, 2.7 KB checked in by tarmo, 10 years ago (diff)

Syntax fixes.

Line 
1<html xmlns="http://www.w3.org/1999/xhtml"
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"
7    metal:use-macro="here/form_template/macros/master"
8    i18n:domain="lemill">
9
10    <body>
11        <metal:main fill-slot="main">
12            <metal:macro define-macro="body">
13            <form action="" method="post"
14                tal:attributes="action string:${here_url}/injectPresentationFromSlideShare"
15                tal:define="b_start request/b_start | python:0;
16                    batch python:context.getBatchOfPresentations(b_start=b_start);
17                    batch_base_url string:${here_url}/import_presentation;
18                    used_ids context/uploadedPresentations;"
19                enctype="multipart/form-data"
20                tal:condition="here/canIEdit">
21
22        <h1 i18n:translate="heading_select_presentation">Select a presentation to bring to LeMill</h1>
23        <div style="margin-top:20px">
24        <div metal:use-macro="here/batch_macros/macros/navigation" />
25        <table width="100%">       
26        <tal:loop tal:repeat="data batch">
27        <tr tal:define="already_in python:data['ss_id'] in used_ids">
28         <td><input type="radio" name="slideshare_id" tal:attributes="value data/ss_id;
29          tabindex tabindex/next; disabled already_in"/></td>
30         <td><img src="" tal:attributes="src data/thumbnail" align="middle" style="vertical-align:middle;" width="120" height="90" alt="" /></td>
31         <td><p><span i18n:translate="text_presentation_already_in_lemill" class="discreet" tal:condition="already_in">(Already in LeMill)</span>
32            <span tal:replace="data/title"/>
33            <span tal:content="data/date" class="discreet" /><br/>
34            <span tal:content="data/description" class="discreet" /><br/><br/>
35            <span tal:content="data/tags" class="discreet" />
36            </p>
37         </td>
38        </tr>
39        </tal:loop>
40        </table>
41        <div metal:use-macro="here/batch_macros/macros/navigation" />
42
43        <input class="context"
44            tabindex=""
45            type="submit"
46            name="form.button.submit"
47            value="Select" i18n:domain="plone"
48            i18n:attributes="value label_select;"
49            tal:attributes="tabindex tabindex/next;"
50            />
51        <input class="standalone"
52            tabindex=""
53            type="submit"
54            name="form.button.cancel"
55            value="Cancel" i18n:domain="plone"
56            i18n:attributes="value label_cancel;"
57            tal:attributes="tabindex tabindex/next"
58            />
59        </div>
60        </form>
61        </metal:macro>
62        </metal:main>
63
64    </body>
65</html>
Note: See TracBrowser for help on using the repository browser.