2020-08-12 11:11:51 +03:00
|
|
|
<form class="well" method="post" action="/paste/create" @submit.prevent="encryptAndSendPaste()">
|
2020-08-12 10:26:17 +03:00
|
|
|
<div class="d-flex justify-content-between">
|
2020-08-12 12:15:01 +03:00
|
|
|
|
2020-08-12 10:26:17 +03:00
|
|
|
<div>
|
2020-08-12 16:27:46 +03:00
|
|
|
<label class="col-form-label"><span class="blk-space"></span></label>
|
2020-08-12 11:11:51 +03:00
|
|
|
<div class="file-upload" v-if="support.fileUpload">
|
2020-08-12 12:15:01 +03:00
|
|
|
<input type="button" class="btn btn-primary" :value="isUploading ? 'Uploading...': 'Upload file'"
|
|
|
|
:disabled="isUploading">
|
2020-08-12 11:11:51 +03:00
|
|
|
<input type="file" class="hide-upload" id="file-upload" @change="handleUpload($event.target.files)">
|
2012-05-06 21:24:46 +04:00
|
|
|
</div>
|
2020-08-12 12:15:01 +03:00
|
|
|
</div>
|
2012-04-29 19:36:26 +04:00
|
|
|
|
2020-08-12 10:26:17 +03:00
|
|
|
<div class="form-group select-date paste-option">
|
2020-08-12 12:15:01 +03:00
|
|
|
<div class="input-group">
|
|
|
|
<select id="expiration" name="expiration" class="custom-select" v-model="newPaste.expiration">
|
2020-08-12 10:26:17 +03:00
|
|
|
<option value="burn_after_reading">Burn after reading</option>
|
2020-08-12 17:10:37 +03:00
|
|
|
<option selected value="1_day">Expire in 1 day</option>
|
|
|
|
<option value="1_month">Expire in 1 month</option>
|
|
|
|
<option value="never">Never expire</option>
|
2020-08-12 10:26:17 +03:00
|
|
|
</select>
|
2020-08-12 12:15:01 +03:00
|
|
|
<div class="input-group-append">
|
2020-08-12 10:26:17 +03:00
|
|
|
<button type="submit" class="btn btn-primary">Submit</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
2020-08-12 12:15:01 +03:00
|
|
|
<div class="progress" v-show="isLoading">
|
|
|
|
<div class="progress-bar progress-bar-striped" role="progressbar"></div>
|
2020-08-11 12:55:29 +03:00
|
|
|
</div>
|
2020-08-12 12:15:01 +03:00
|
|
|
<textarea rows="10" style="width:100%;" class="form-control" id="content" name="content" autofocus
|
2020-08-12 15:14:13 +03:00
|
|
|
@keydown.ctrl.enter="encryptAndSendPaste()"></textarea>
|
2020-08-12 10:26:17 +03:00
|
|
|
</div>
|
|
|
|
|
2020-08-12 12:15:01 +03:00
|
|
|
<div class="form-group select-date paste-option down" v-if="displayBottomToolBar">
|
|
|
|
<div class="input-group">
|
|
|
|
<select id="expiration" name="expiration" class="custom-select" v-model="newPaste.expiration">
|
|
|
|
<option value="burn_after_reading">Burn after reading</option>
|
2020-08-12 17:10:37 +03:00
|
|
|
<option selected value="1_day">Expire in 1 day</option>
|
|
|
|
<option value="1_month">Expire in 1 month</option>
|
|
|
|
<option value="never">Never expire</option>
|
2020-08-12 12:15:01 +03:00
|
|
|
</select>
|
|
|
|
<div class="input-group-append">
|
|
|
|
<button type="submit" class="btn btn-primary">Submit</button>
|
2020-08-12 11:11:51 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-08-12 12:15:01 +03:00
|
|
|
</div>
|
2020-08-11 12:55:29 +03:00
|
|
|
|
2012-04-24 22:15:38 +04:00
|
|
|
</form>
|
2012-04-24 14:22:59 +04:00
|
|
|
|
2012-04-28 21:55:00 +04:00
|
|
|
|
2015-05-10 20:19:02 +03:00
|
|
|
% rebase("base", settings=settings, pastes_count=pastes_count)
|