codesmidgen/stickynotes/templates/index.html

48 lines
2.6 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">
<div class="custom-control custom-checkbox">
<input type="checkbox" name="private" class="custom-control-input" id="private">
<label for="private" class="custom-control-label">Unlisted (doesn't appear in the list on the notes page)</label>
</div>
</div>
{% if recaptcha_site_key %}
<div class="form-group">
<div class="g-recaptcha" data-sitekey="{{recaptcha_site_key}}"></div>
</div>
{% endif %}
<button type="submit" class="btn btn-primary">Submit</button>
</form>
</div>
</div>
{% endblock %}