summaryrefslogtreecommitdiff
path: root/templates/paste.html
blob: e22f76d2990408f5cba20ea120dc68374c725f77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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 %}