2015-09-30 06:46:58 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
2020-03-12 21:32:35 +01:00
|
|
|
{% block title %}{{sitename}} - Paste{% endblock %}
|
2020-03-01 01:56:43 +01:00
|
|
|
|
2020-03-12 21:32:35 +01:00
|
|
|
{% block content %}
|
|
|
|
<form id="reply" action='{{ sitepath }}upload' method='post'>
|
|
|
|
<div id="main" class="paste">
|
|
|
|
<div id="info" class="info-flex">
|
|
|
|
<div>
|
|
|
|
{% if not forcerandom %}<span class="hint--top hint--bounce"
|
|
|
|
data-hint="Leave empty for random filename"><input class="codebox" name='filename' id="filename"
|
|
|
|
type='text' value="" placeholder="filename" /></span>{% endif %}.<span
|
|
|
|
class="hint--top hint--bounce" data-hint="Enable syntax highlighting by adding the extension"><input
|
|
|
|
id="extension" class="codebox" name='extension' type='text' value="" placeholder="txt" /></span>
|
2015-09-30 06:46:58 +02:00
|
|
|
</div>
|
2020-03-12 21:32:35 +01:00
|
|
|
<div>
|
2021-02-22 19:48:13 +01:00
|
|
|
{% if disable_access_key != true %}
|
2020-03-12 21:32:35 +01:00
|
|
|
<span class="hint--top hint--bounce" data-hint="Require password to access (leave empty to disable)">
|
|
|
|
<input class="codebox" name="access_key" type="text" placeholder="password" />
|
|
|
|
</span>
|
2021-02-22 19:48:13 +01:00
|
|
|
{% endif %}
|
2020-03-12 21:32:35 +01:00
|
|
|
<select id="expiry" name="expires">
|
|
|
|
<option disabled>Expires:</option>
|
|
|
|
{% for expiry in expirylist %}
|
2021-10-09 17:36:53 +02:00
|
|
|
<option value="{{ expiry.Seconds }}" {% if (expiry.Seconds == expirydefault) %} selected {% endif %}>{{ expiry.Human }}
|
2020-03-12 21:32:35 +01:00
|
|
|
</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
<button type="submit">Paste</button>
|
2015-10-08 05:35:48 +02:00
|
|
|
</div>
|
2015-09-30 06:46:58 +02:00
|
|
|
</div>
|
2020-03-12 21:32:35 +01:00
|
|
|
|
|
|
|
<div id="inner_content" class="padme">
|
|
|
|
<textarea name='content' id="content" class="editor"></textarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
2015-10-10 07:20:17 +02:00
|
|
|
|
2015-10-30 23:36:47 +01:00
|
|
|
<script src="{{ sitepath }}static/js/util.js"></script>
|
|
|
|
<script src="{{ sitepath }}static/js/paste.js"></script>
|
2020-03-12 21:32:35 +01:00
|
|
|
{% endblock %}
|