linx-server/templates/index.html

56 lines
2.3 KiB
HTML
Raw Permalink Normal View History

2015-09-24 05:44:49 +00:00
{% extends "base.html" %}
2015-10-01 03:37:00 +00:00
{% block head %}
2015-10-30 22:36:47 +00:00
<link href='{{ sitepath }}static/css/dropzone.css' media='screen, projection' rel='stylesheet' type='text/css'>
2015-10-01 03:37:00 +00:00
{% endblock %}
2020-03-08 02:52:29 +00:00
{% block content %}
<div id="fileupload">
2020-03-08 02:52:29 +00:00
<form action="{{ sitepath }}upload" class="dropzone" id="dropzone" method="POST" enctype="multipart/form-data"
data-maxsize="{{ maxsize }}" data-auth="{{ auth }}">
2015-10-01 03:37:00 +00:00
<div class="fallback">
<input id="fileinput" name="file" type="file" /><br />
<input id="submitbtn" type="submit" value="Upload">
2015-10-01 03:37:00 +00:00
</div>
2015-10-01 16:46:34 +00:00
<div id="dzone" class="dz-default dz-message">
<span>Click or Drop file(s) or Paste image</span>
2015-10-01 03:37:00 +00:00
</div>
<div id="choices">
2020-03-08 02:52:29 +00:00
<span class="hint--top hint--bounce"
data-hint="Replace the filename with random characters. The file extension is retained">
<label><input {% if forcerandom %} disabled {% endif %} name="randomize" id="randomize" type="checkbox"
checked /> Randomize filename</label>
2020-03-08 01:52:07 +00:00
</span>
2015-10-01 03:37:00 +00:00
<div id="expiry">
2018-06-09 17:31:44 +00:00
<label>File expiry:
2020-03-08 01:52:07 +00:00
<select name="expires" id="expires">
{% for expiry in expirylist %}
2020-03-08 02:52:29 +00:00
<option value="{{ expiry.Seconds }}" {% if forloop.Last %} selected{% endif %}>
{{ expiry.Human }}</option>
2020-03-08 01:52:07 +00:00
{% endfor %}
</select>
2015-10-04 07:14:21 +00:00
</label>
</div>
2020-03-08 01:52:07 +00:00
<div id="access_key">
2020-03-08 02:52:29 +00:00
<span class="hint--top hint--bounce"
data-hint="Require password to access (this does not encrypt the file but only limits access)">
2020-03-08 01:52:07 +00:00
<label>
2020-03-08 02:52:29 +00:00
<input type="checkbox" id="access_key_checkbox" />
2020-03-08 01:52:07 +00:00
<span id="access_key_text">Require access password</span>
</label>
2020-03-08 02:52:29 +00:00
<input id="access_key_input" name="access_key" type="text" placeholder="Access password" />
2020-03-08 01:52:07 +00:00
</span>
</div>
2015-10-01 03:37:00 +00:00
</div>
<div class="clear"></div>
</form>
<div id="uploads"></div>
<div class="clear"></div>
</div>
2015-10-30 22:36:47 +00:00
<script src="{{ sitepath }}static/js/dropzone.js"></script>
<script src="{{ sitepath }}static/js/upload.js"></script>
2020-03-08 02:52:29 +00:00
{% endblock %}