Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar_network_webui/templates/upload-form.html
blob: 635523af1527e6d9015108aaff3a74db48e5f6bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{% extends "base.html" %}
{% block view %}
<div class="resource-form">
    <div id="resource-form-title">
    {{_('Upload an artifact: Share your work!')}}
    <div class="window-buttons">
        <img id="cancel-button" class="button window-button" src="/static/icons/dialog-cancel.png" />
    </div>
    </div>
    {%- if (session['connected'] or False) -%}
    <form id="resource-form1" method="POST" action="/artifacts/upload" enctype="multipart/form-data">
    <div class="resource-form-field">
    {{_('Context')}} : <img class="inline_images" src="/context/icon/{{context}}" /> {{session.get('last_context_title') or _('Sugar Network')}}
    </div>
    <div class="resource-form-field">
        <input type="file" name="artifact_file" size="40">
        {{_('Please add a short description.')}}<br/>
        <textarea name="content" class="resource-inputarea" ></textarea><br />
        <input type="hidden" name="context" value="{{context}}" />
        <input type="hidden" name="implementation" value="{{implementation}}" />
        <input type="hidden" name="filename" value="{{filename}}" />
    </div>
    <div class="resource-form-field">
        <input class="sugar-button" type="submit" id="submit" value="{{_('Upload and share')}}" />
    </div>
    <div class="resource-form-field">
        {{_('Please note that all contributions to Sugar Labs are considered to be released under the Attribution 3.0 Unported. If you do not want your writing to be edited and redistributed at will, then do not submit it here.') }}
        <br />
        <img class="inline_images" src="/static/images/{{_('cc-by-sa.png')}}" />
        <br /><br />
        {{_('You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. <b>Do not submit copyrighted work without permission!</b>')}}
        <br /><br />
        <br/>
    </div>
    </form>
    {%- else -%}
    <div class="resource-form-field">
        <br/>
        <br/>
        <b>{{_('Alpha Version')}}</b>
        <br/>
        {{_('For the time being you need to be connected to the Internet in order to contribute!')}}
    </div>
    {%- endif -%}
</div>
<script type="text/javascript">
    $(function() {
       $("#query").attr('disabled', true);
       $("#cancel-button").click( function() {
            history.back();
       });
    });
</script>
{% endblock view %}