2021-04-23 03:07:21 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block title %}Simple Fileupload{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
2021-04-30 03:44:53 +01:00
|
|
|
<h2>Scanned notes or survey upload into wallet </h2>
|
|
|
|
<p style="font-family: monospace; font-weight: bold; font-size: 130%; text-align: center">
|
|
|
|
<a style="font-weight: normal;" href="/scanupload/{{prevy}}:01">{{prevy}}</a>
|
|
|
|
...
|
|
|
|
<a href="/scanupload/{{year}}:{{prev}}">{{year}}:{{prev}}</a>
|
|
|
|
← {{wallet}} →
|
|
|
|
<a href="/scanupload/{{year}}:{{next}}">{{year}}:{{next}}</a>
|
|
|
|
...
|
|
|
|
<a style="font-weight: normal;" href="/scanupload/{{nexty}}:01">{{nexty}}</a>
|
|
|
|
</p>
|
2021-04-23 03:07:21 +01:00
|
|
|
|
|
|
|
|
2021-04-30 18:02:05 +01:00
|
|
|
<div style = "max-width:40%;">
|
2021-04-23 03:07:21 +01:00
|
|
|
<form method ='post' enctype ="multipart/form-data">
|
|
|
|
{% csrf_token %}
|
|
|
|
<br>
|
2021-04-30 03:44:53 +01:00
|
|
|
<input type = "file" multiple="multiple" style = "margin-left:20%;"
|
2021-04-30 18:02:05 +01:00
|
|
|
placeholder = "Scanfiles" name = "scanfiles" id="scanfiles">
|
2021-04-23 03:07:21 +01:00
|
|
|
<br> <br>
|
2021-04-30 03:44:53 +01:00
|
|
|
<input type = "text" size = "8" style = "margin-left:20%;"
|
|
|
|
placeholder = "Wallet id e.g. 2021#23" name = "title" value='{{wallet}}'id="wallet"><label for="wallet"> Wallet id</label>
|
2021-04-23 03:07:21 +01:00
|
|
|
|
|
|
|
<center>
|
|
|
|
<button style = "color: #fff; border:1px; background-color:#999; margin-top:8%;
|
|
|
|
height:35px; width:80%; margin-left:19%;" type = "submit" value = "Upload" >
|
|
|
|
<strong>Upload</strong>
|
|
|
|
</button>
|
|
|
|
</center>
|
|
|
|
</form>
|
2021-04-30 18:02:05 +01:00
|
|
|
{% if filesaved %}
|
|
|
|
<p style="margin-left:20%;">
|
|
|
|
<b>File(s) saved as
|
|
|
|
{% for f in actual_saved %}
|
|
|
|
<em>'{{f}}'</em>
|
|
|
|
{% endfor %}
|
|
|
|
<br><br>Upload more?</b>
|
|
|
|
</p>
|
|
|
|
<br>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2021-04-30 03:44:53 +01:00
|
|
|
|
|
|
|
<p style="margin-left:20%;">
|
|
|
|
{% for f in files %}
|
|
|
|
<a href="/expofiles/surveyscans/{{year}}/{{wallet|urlencode}}/{{f}}">{{ f}}</a><br />
|
|
|
|
{% endfor %}
|
|
|
|
</p>
|
2021-04-23 03:07:21 +01:00
|
|
|
{% endblock %}
|