source: trunk/skins/lemill/lemill_content_add.pt @ 580

Revision 580, 3.6 KB checked in by szabolcs, 13 years ago (diff)

closes #610, spent 2h

Line 
1<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
2lang="en"
3metal:use-macro="here/form_template/macros/master"
4i18n:domain="lemill">
5<head>
6    <span metal:fill-slot="javascript_head_slot" tal:omit-tag="">
7        <script type="text/javascript" src="js_helpers.js"></script>
8    </span>
9    </head>
10    <body>
11
12        <div metal:fill-slot="main" style="width:100%">
13            <div id="selection">
14           
15            <h1 i18n:translate="heading_what_would_you_like_to_do">Step 1: What would you like to do?</h1>
16           
17            <p i18n:translate="text_sending_content_types">You can upload pieces from your computer or use our authoring templates to create learning material online.</p>
18           
19            <ul>
20                <li><a i18n:translate="link_add_piece_from_computer" href="javascript:next('upload')">Add piece from your computer</a></li>
21                <li><a i18n:translate="link_create_material_with_templates" href="lemill_choose_template">Create learning material with templates</a></li>
22            </ul>
23
24            <p i18n:translate="text_feeling_lost">Feel a little bit lost? You can <span i18n:name="go_back"><a i18n:translate="text_go_back" href="../content">go back</a></span> to the previous page.</p>
25
26            </div>
27            <div id="upload" style="display:none">
28                <h1 i18n:translate="heading_add_piece_from_computer">Step 2: Add piece from your computer</h1>
29               
30                <p i18n:translate="text_piece_explanation">Pieces are images, sound or movies that can be used in learning materials. Do not upload copyrighted work from others
31                or content that does not have an educational value.</p>
32               
33                <form action="" method="post" tal:attributes="action string:${here/absolute_url}/uploadIt;" enctype="multipart/form-data">
34                    <div class="field">
35                        <label i18n:translate="label_choose_file" for="file">Choose a file</label>
36                        <div class="formHelp" i18n:translate="text_allowed_file_types">Allowed file types: <tal:block i18n:name="list">.jpeg, .gif, .png, .mp3, .mp4 .mov .mpg .3gp .mpeg .wmv .avi, .swf</tal:block></div>
37                        <input type="file" name="file" size="40" />
38                    </div>
39                    <div class="formControls">
40                    <input class="context"
41                        tabindex=""
42                        type="submit"
43                        value="Save"
44                        id="save"
45                        name="save" i18n:domain="plone"
46                        i18n:attributes="value label_save;"
47                        tal:attributes="tabindex tabindex/next;" />
48                    </div>
49                </form>
50            </div>
51            <tal:step_old_one condition="python:1!=1">
52            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="lemilltableView">
53                <tr>
54                    <td colspan="2" style="padding:2px;">
55                        <div class="lemilltoBold" i18n:translate="heading_add_new_content">Add new content</div>
56                    </td>
57                </tr>
58                <tr align="center">
59                    <td style="padding:15px;"><a href="createObject?type_name=Piece"><img src="" tal:replace="structure here/add_piece.gif" /></a></td>
60                    <td><a href="createObject?type_name=Material"><img src="" tal:replace="structure here/add_material.gif" /></a></td>
61                </tr>
62            </table>
63            </tal:step_old_one>
64        </div>
65
66    </body>
67</html>
68
Note: See TracBrowser for help on using the repository browser.