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 | <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:domain="plone" i18n:translate="label_title" for="user_title">Title</label> |
---|
36 | <div class="formHelp"></div> |
---|
37 | <input type="text" name="user_title" id="user_title" size="40" /> |
---|
38 | </div> |
---|
39 | <div class="field"> |
---|
40 | <label i18n:translate="label_choose_file" for="file">Choose a file</label> |
---|
41 | <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> |
---|
42 | <input type="file" name="file" size="40" /> |
---|
43 | </div> |
---|
44 | <div class="formControls"> |
---|
45 | <input class="context" |
---|
46 | tabindex="" |
---|
47 | type="submit" |
---|
48 | value="Save" |
---|
49 | id="save" |
---|
50 | name="save" i18n:domain="plone" |
---|
51 | i18n:attributes="value label_save;" |
---|
52 | tal:attributes="tabindex tabindex/next;" /> |
---|
53 | </div> |
---|
54 | </form> |
---|
55 | </div> |
---|
56 | <tal:step_old_one condition="python:1!=1"> |
---|
57 | <table width="100%" border="0" cellpadding="0" cellspacing="0" class="lemilltableView"> |
---|
58 | <tr> |
---|
59 | <td colspan="2" style="padding:2px;"> |
---|
60 | <div class="lemilltoBold" i18n:translate="heading_add_new_content">Add new content</div> |
---|
61 | </td> |
---|
62 | </tr> |
---|
63 | <tr align="center"> |
---|
64 | <td style="padding:15px;"><a href="createObject?type_name=Piece"><img src="" tal:replace="structure here/add_piece.gif" /></a></td> |
---|
65 | <td><a href="createObject?type_name=Material"><img src="" tal:replace="structure here/add_material.gif" /></a></td> |
---|
66 | </tr> |
---|
67 | </table> |
---|
68 | </tal:step_old_one> |
---|
69 | </div> |
---|
70 | |
---|
71 | </body> |
---|
72 | </html> |
---|
73 | |
---|