diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2019-03-15 18:45:47 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2019-03-15 18:45:47 +0100 |
commit | c57494ae405ffbdd8ec45f74ef04ea85895f1bf7 (patch) | |
tree | a0b888069205b7d8260c1862d300032a56b6fd30 /pastepy/templates/paste.html | |
parent | c5ebdf4428d9d9aab04cf6085a231ed6ea5bf0ab (diff) |
Port application to flask
Diffstat (limited to 'pastepy/templates/paste.html')
-rw-r--r-- | pastepy/templates/paste.html | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pastepy/templates/paste.html b/pastepy/templates/paste.html new file mode 100644 index 0000000..9a22e76 --- /dev/null +++ b/pastepy/templates/paste.html @@ -0,0 +1,34 @@ +{% extends "base.html" %} +{% block head %} + <script src="{{ url_for('static', filename='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 config.LEXERS %} + <optgroup label="{{ cat }}"> + {% for k, v in ls %} + <option value="{{ v }}"{% if v == (session.syntax or config.DEFAULT_SYNTAX) %} selected="selected"{% endif %}>{{ k }}</option> + {% endfor %} + </optgroup> + {% endfor %} + </select> + <input type="checkbox" name="remember_syntax" id="remember_syntax"{% if session.syntax %} checked{% endif %}> + <label for="remember_syntax">Remember syntax</label> + </li> + <li> + <input type="text" name="nick" id="nick" value="{{ session.nick }}"> + <input type="checkbox" name="remember_me" id="remember_me"{% if session.nick %} 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 %} |