2015-04-13 03:56:29 +01:00
|
|
|
<form action="/" method="POST">
|
|
|
|
<input type="text" name="title" placeholder="Title (optional)" value="[% paste.title %]" size="40" maxlength="255" />
|
|
|
|
<select class="language" name="lang" style="float: right">
|
|
|
|
<option value="" [% 'selected' UNLESS paste.language %]>Language: Auto</option>
|
|
|
|
<option value="text" [% 'selected' IF paste.language == 'text' %]>Text</option>
|
|
|
|
[% FOR group = settings.languages %]
|
|
|
|
<optgroup label="[% group.keys.0 %]">
|
|
|
|
[% FOR lang = group.values.0 %]
|
|
|
|
[% val = (lang.values.0 || lang.keys.0) | lower %]
|
|
|
|
<option value="[% val | lower %]" [% 'selected' IF paste.language == "${val}" %]>[% lang.keys.0 %]</option>
|
|
|
|
[% END %]
|
|
|
|
</optgroup>
|
|
|
|
[% END %]
|
|
|
|
</select>
|
|
|
|
<br />
|
|
|
|
<textarea name="code" rows="32">[% paste.code %]</textarea>
|
|
|
|
<br />
|
|
|
|
<div style='float: right'>
|
|
|
|
<select class="expiration" name="expiration">
|
2015-11-14 07:37:53 +00:00
|
|
|
<option value "" selected >Two weeks (Default)</option>
|
2015-11-14 07:14:11 +00:00
|
|
|
<option value="hours:1" >Expire 1 hour from now</option>
|
2015-04-13 03:56:29 +01:00
|
|
|
<option value="hours:6" >Expire 6 hours from now</option>
|
2015-11-14 07:14:11 +00:00
|
|
|
<option value="days:1" >Expire 1 day from now</option>
|
|
|
|
<option value="weeks:1" >Expire 1 week from now</option>
|
2015-04-13 03:56:29 +01:00
|
|
|
<option value="months:1">Expire 1 month from now</option>
|
2015-11-14 07:14:11 +00:00
|
|
|
<option value="years:1" >Expire 1 year from now</option>
|
|
|
|
<option value="never:1" >Never expire</option>
|
2015-04-13 03:56:29 +01:00
|
|
|
</select>
|
|
|
|
<button type="submit">Save</button>
|
|
|
|
</div>
|
|
|
|
</form>
|