2021-01-27 05:43:59 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
2016-01-08 21:41:24 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
|
2021-01-27 05:43:59 +00:00
|
|
|
<form role="form" action="/" method="post">
|
2016-01-08 21:41:24 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<textarea name="source" id="source" class="form-control" rows="20"></textarea>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<input type="text" name="title" id="title" class="form-control" placeholder="Title of your snippet">
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="language">Language</label>
|
2021-01-27 05:43:59 +00:00
|
|
|
<select name="language" id="language" class="form-control selectpicker" data-live-search="true" data-size="15" data-style="btn-default">
|
|
|
|
{% for language in lexers %}
|
|
|
|
<option value="{{language[0]}}"{% if language[0] == 'text' %} selected{% endif %}>{{language[1]}}</option>
|
|
|
|
{% endfor %}
|
2016-01-08 21:41:24 +00:00
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="expiry">Expiry</label>
|
2021-01-27 05:43:59 +00:00
|
|
|
<select name="expiry" id="expiry" class="form-control selectpicker" data-style="btn-default">
|
2016-01-08 21:41:24 +00:00
|
|
|
<option value="never" selected>Never</option>
|
|
|
|
<option value="10min">10 Minutes</option>
|
|
|
|
<option value="1h">1 Hour</option>
|
|
|
|
<option value="1d">1 Day</option>
|
|
|
|
<option value="1w">1 Week</option>
|
|
|
|
<option value="2w">2 Weeks</option>
|
|
|
|
<option value="1m">1 Month</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
2023-07-27 00:43:28 +00:00
|
|
|
<div class="form-group computer">
|
|
|
|
<label for="computer">Computer? (just type "no")</label>
|
|
|
|
<input type="text" name="computer" class="form-control" id="computer" autocomplete="off" placeholder="Computers type yes">
|
2016-01-08 21:41:24 +00:00
|
|
|
</div>
|
|
|
|
<button type="submit" class="btn btn-primary">Submit</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-01-27 05:43:59 +00:00
|
|
|
{% endblock %}
|