diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2017-03-24 21:53:13 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2017-03-24 21:54:01 +0100 |
commit | 46832b96a5ed60a1299f4450a01688d74e56d17e (patch) | |
tree | 25853b68bf98343e0fafdfe6df2de8a2a43f65aa /templates/paste.html | |
parent | c834b5b515f3abbd417c2d6beb39329b786a67ff (diff) |
Replaced cheetah templates with jinja2 templates.
Diffstat (limited to 'templates/paste.html')
-rw-r--r-- | templates/paste.html | 34 |
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 %} |