summaryrefslogtreecommitdiffstats
path: root/templates/dwguploadform.html
blob: d253d095f87e3a83fa9eb365b4697f5cb756d384 (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{% extends "base.html" %}

{% block title %}Simple Fileupload{% endblock %}

{% block content %}

<h2>Upload drawing  file into folder '{{folder}}'</h2>
<p style="font-family: monospace; font-weight: bold; font-size: 130%; text-align: center">
<div style = "max-width:35%; margin-left:20%; text-align: center; " >
    <form method ='post' enctype ="multipart/form-data">
        {% csrf_token %}       
   <br /><br /> <br /><br /> 
    <div style= "text-align: left;">
	Identified login 
        <input type="checkbox" name="identified_login" onclick="return false" id="id_identified_login" 
	{% if identified_login %} checked{% endif %} ">
        <br /><br /> 

	<label for="who_are_you">Who are you, uploading these files?</label>
	<br />
	<input 
	{% if not user.username %} disabled{% endif %} 
	{% if identified_login %} readonly{% endif %} 
	label = "Who are you" name = "who_are_you" size ="70"
	title="Who are you"
	placeholder="editor's name for version control e.g. 'Animal <mta@gasthof.expo>'" value="{{who_are_you}}" required/>		
	<br /><br /> <br /> 
    </div>
                   <input class="fancybutton"   type = "file" multiple="multiple"  
                   name = "uploadfiles" id="uploadfiles"  />
                   <br><br><br>
                   <button  class="fancybutton"  style="padding: 0.5em 25px; margin-left: 155px" type = "submit" value = "Upload" >
                      Upload
                   </button>
    </form>
</div>
<div style = "max-width:70%; margin-left:20%; text-align: left" >
<p>Only drawings and drawing config files can be uploaded.<br />
topo and other digital instrument survey files should be uploaded to a Wallet, e.g. <a href="/wallets/year/2025">2025</a>.
</div>
<div style = "max-width:70%; margin-left:20%; text-align: left" >
    {% if refused %}
        <p>
        <b>Files refused: </b><br>
        {% for f in refused %}
        <em>{{f}}</em> <br>
        {% endfor %}
        </p>
    {% endif %}
    {% if filesaved %}
        <p>
        <b>Drawing(s) saved as </b><br>
        {% for f in actual_saved %}
        <em>{{f}}</em> <br>
        {% endfor %}
        <br>Upload more?</b>
        </p>
    {% endif %}
    <hr><br>
    {% if doesnotexist %}
        <p>No folder of this name.<br>
        It would be created if you upload a file.
    {% else %}
        <strong style="font-size: 110%;">Files:</strong><br>
        {% for f in files %}
        <a href="{{urlfile|urlencode}}/{{f|urlencode}}">{{f}}</a><br />
        {% empty %}
        <p>&lt;No files here&gt;
        {% endfor %}


        <p><strong style="font-size: 110%;">Directories:</strong><br>
        {% if folder %}
        <a href="{{urldir}}/..">[up]</a><br />
        {% endif %}
        {% for f in dirs %}
        <a href="{{urldir}}/{{f}}">/{{f}}/</a><br />
        {% empty %}
        <p>&lt;No subdirectories&gt;
        {% endfor %}
        <p>You cannot create folders here, but you can put files into any of the pre-existing folders.
        <p>Creating a folder is done by a nerd using ftp or whatever, see our <a href="/handbook/computing/fzconfig.html">Filezilla</a> documentation.
        <p>Note that JPG, PNG and PDF files are refused: this area is reserved for Tunnel and Therion files. You may see some old ones here, 
        pending their removal and replacement, but you cannot upload new ones. TOPO files currently belong in the wallets, not here,
        but this may change in future.
    {% endif %}
</div> 

{% endblock %}