summaryrefslogtreecommitdiff
path: root/templates/paste.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/paste.html')
-rw-r--r--templates/paste.html34
1 files changed, 34 insertions, 0 deletions
diff --git a/templates/paste.html b/templates/paste.html
new file mode 100644
index 0000000..e22f76d
--- /dev/null
+++ b/templates/paste.html
@@ -0,0 +1,34 @@
+{% extends "base.html" %}
+{% block head %}
+ <script src="/static/edit.js" type="text/javascript"></script>
+{% endblock %}
+{% block content %}
+ <form action="/paste" method="post" id="pasteform">
+ <ul>
+ <li id="syntaxli">
+ <select name="syntax" id="syntax">
+ {% for cat, ls in lexers %}
+ <optgroup label="{{ cat }}">
+ {% for k, v in ls %}
+ <option value="{{ v }}"{% if v == syntax %} selected="selected"{% endif %}>{{ k }}</option>
+ {% endfor %}
+ </optgroup>
+ {% endfor %}
+ </select>
+ <input type="checkbox" name="remember_syntax" id="remember_syntax"{% if remember_syntax %} checked{% endif %}>
+ <label for="remember_syntax">Remember syntax</label>
+ </li>
+ <li>
+ <input type="text" name="nick" id="nick" value="{{ nick }}">
+ <input type="checkbox" name="remember_me" id="remember_me"{% if remember_me %} checked{% endif %}>
+ <label for="remember_me">Remember me</label>
+ </li>
+ <li><input type="text" name="title" id="title" value="Untitled"></li>
+ <li><textarea rows="15" cols="80" name="text" id="text"></textarea></li>
+ <li>
+ <input type="submit" id="pastesubmit" name="type" value="Paste">
+ <input type="submit" id="pastesubmit2" name="type" value="Preview">
+ </li>
+ </ul>
+ </form>
+{% endblock %}