mirror of
https://github.com/Tygs/0bin.git
synced 2023-08-10 21:13:00 +03:00
51 lines
2.0 KiB
Smarty
51 lines
2.0 KiB
Smarty
<script type="text/javascript">
|
||
zerobin.paste_not_found = true;
|
||
</script>
|
||
|
||
<p class="alert alert-error">
|
||
<a class="close" data-dismiss="alert" href="#" @click.prevent="$event.target.parentNode.remove()">×</a>
|
||
<strong class="title">404 Error!</strong>
|
||
<span class="message">
|
||
Either this paste has expired or this page never existed.
|
||
</span>
|
||
</p>
|
||
|
||
<p class="file-upload">
|
||
<input type="button" class="btn btn-upload" :value="isUploading ? 'Uploading...': 'Upload file'"
|
||
:disabled="isUploading">
|
||
<input type="file" class="hide-upload" id="file-upload" @change="handleUpload($event.target.files)">
|
||
</p>
|
||
|
||
<form class="well" method="post" action="/paste/create" @submit.prevent="encryptAndSendPaste()">
|
||
<p class=" paste-option">
|
||
<label for="expiration">Expiration:</label>
|
||
<select id="expiration" name="expiration" v-model="newPaste.expiration">
|
||
<option value="burn_after_reading">Burn after reading</option>
|
||
<option selected value="1_day">1 day</option>
|
||
<option value="1_month">1 month</option>
|
||
<option value="never">Never</option>
|
||
</select>
|
||
<button type="submit" class="btn btn-primary" ">Submit</button>
|
||
</p>
|
||
<p>
|
||
<div class=" progress progress-striped active" v-show="isLoading">
|
||
<div class="bar"></div>
|
||
</div>
|
||
<textarea rows="10" style="width:100%;" class="input-xlarge" id="content" name="content" autofocus
|
||
v-on:keydown.prevent.ctrl.enter="encryptAndSendPaste()"></textarea>
|
||
</p>
|
||
<p class="paste-option down" v-if="displayBottomToolBar">
|
||
<label for="expiration">Expiration:</label>
|
||
<select id="expiration" name="expiration" v-model="newPaste.expiration">
|
||
<option value="burn_after_reading">Burn after reading</option>
|
||
<option selected value="1_day">1 day</option>
|
||
<option value="1_month">1 month</option>
|
||
<option value="never">Never</option>
|
||
</select>
|
||
<button type="submit" class="btn btn-primary">Submit</button>
|
||
</p>
|
||
</form>
|
||
|
||
|
||
% rebase('base', settings=settings, pastes_count=pastes_count)
|