41 lines
2.3 KiB
HTML
41 lines
2.3 KiB
HTML
{% extends "base.html" %}
|
|
{% block content %}
|
|
<div class="row">
|
|
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
|
|
<form role="form" action="/" method="post">
|
|
<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>
|
|
<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 %}
|
|
</select>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="expiry">Expiry</label>
|
|
<select name="expiry" id="expiry" class="form-control selectpicker" data-style="btn-default">
|
|
<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>
|
|
<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">
|
|
</div>
|
|
<button type="submit" class="btn btn-primary">Submit</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|