49 lines
2.4 KiB
Plaintext
49 lines
2.4 KiB
Plaintext
|
<%inherit file="base.mako"/>
|
||
|
<div class="row">
|
||
|
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
|
||
|
<form role="form" action="/save" method="post" form>
|
||
|
<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">
|
||
|
% for language in lexers:
|
||
|
% if language[0] == 'text':
|
||
|
<option value="${language[0]}" selected>${language[1]}</option>
|
||
|
% else:
|
||
|
<option value="${language[0]}">${language[1]}</option>
|
||
|
% endif
|
||
|
% endfor
|
||
|
</select>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label for="expiry">Expiry</label>
|
||
|
<select name="expiry" id="expiry" class="form-control selectpicker">
|
||
|
<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="checkbox">
|
||
|
<label>
|
||
|
<input type="checkbox" name="private"> Unlisted (doesn't appear in the list on the notes page)
|
||
|
</label>
|
||
|
</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>
|