mirror of
https://github.com/onionshare/onionshare.git
synced 2025-09-20 12:34:40 -04:00
In receive mode, allow uploader to close the server when they are done
This commit is contained in:
parent
0b10e71547
commit
01f86daf8f
3 changed files with 36 additions and 13 deletions
|
@ -12,16 +12,6 @@
|
|||
<h1>OnionShare</h1>
|
||||
</header>
|
||||
|
||||
{% with messages = get_flashed_messages() %}
|
||||
{% if messages %}
|
||||
<ul class=flashes>
|
||||
{% for message in messages %}
|
||||
<li>{{ message }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
|
||||
<div class="upload-wrapper">
|
||||
<div class="upload">
|
||||
<p><img class="logo" src="/static/img/logo_large.png" title="OnionShare"></p>
|
||||
|
@ -29,10 +19,25 @@
|
|||
<p class="upload-description">Select the files you want to send, then click "Send Files"...</p>
|
||||
<form method="post" enctype="multipart/form-data" action="/{{ slug }}/upload">
|
||||
<p><input type="file" name="file[]" multiple /></p>
|
||||
<p><input type="submit" class="button" value="Upload Files" /></p>
|
||||
<p><input type="submit" name="upload" class="button" value="Upload Files" /></p>
|
||||
<div>
|
||||
{% with messages = get_flashed_messages() %}
|
||||
{% if messages %}
|
||||
<ul class=flashes>
|
||||
{% for message in messages %}
|
||||
<li>{{ message }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<form method="post" action="/{{ slug }}/close">
|
||||
<input type="submit" name="close" class="close-button" value="I'm Finished Uploading" />
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue