mirror of
https://github.com/Tygs/0bin.git
synced 2023-08-10 21:13:00 +03:00
81 lines
3.1 KiB
Smarty
81 lines
3.1 KiB
Smarty
<form class="well" method="post" action="/paste/create" @submit.prevent="encryptAndSendPaste()">
|
|
<div class="d-flex justify-content-between">
|
|
|
|
<div>
|
|
<div class="file-upload" v-if="support.fileUpload">
|
|
<label type="button" class="btn btn-primary upload-file"
|
|
:disabled="isUploading">{% isUploading ? 'Uploading...': 'Upload file' %}
|
|
<input type="file" class="hide-upload" id="file-upload" @change="handleUpload($event.target.files)">
|
|
</label>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group select-date paste-option">
|
|
<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>
|
|
<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>
|
|
</select>
|
|
<div class="input-group-append">
|
|
<button type="submit" class="btn btn-primary">Submit</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="pre-wrapper">
|
|
|
|
<div class="progress" v-show="isLoading">
|
|
<div class="progress-bar progress-bar-striped" role="progressbar"></div>
|
|
</div>
|
|
|
|
<textarea rows="10" style="width:100%;" class="form-control" id="content" name="content" autofocus
|
|
@keydown.ctrl.enter="encryptAndSendPaste()"></textarea>
|
|
|
|
<div class="paste-options">
|
|
<h6>Paste Options (these options are optionals)</h6>
|
|
|
|
<div class="input-group mb-3">
|
|
<div class="input-group-prepend">
|
|
<span class="input-group-text">Title</span>
|
|
</div>
|
|
<input type="text" class="form-control paste-excerpt" name="paste-excerpt"
|
|
placeholder="Optional paste title. This part is NOT encrypted: anything you type here will be visible by anyone"
|
|
v-model="newPaste.title" maxlength="60">
|
|
</div>
|
|
|
|
<div class="input-group mb-3">
|
|
<div class="input-group-prepend">
|
|
<span class="input-group-text" id="basic-addon1">BTC tip</span>
|
|
</div>
|
|
<input type="text" class="form-control paste-btc-tip-address" name="paste-btc-tip-address"
|
|
placeholder="Put a BTC address to ask for a tip. Leave it empty to let us use our."
|
|
v-model="newPaste.btcTipAddress" maxlength="50">
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<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>
|
|
<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>
|
|
</select>
|
|
<div class="input-group-append">
|
|
<button type="submit" class="btn btn-primary">Submit</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
% rebase("base", settings=settings, pastes_count=pastes_count)
|