Fix order form sell checkbox CSS

This commit is contained in:
ekzyis 2023-12-03 04:21:19 +01:00
parent 822c9d04c7
commit f291a14630
1 changed files with 9 additions and 12 deletions

View File

@ -7,12 +7,10 @@
</div> </div>
<form v-if="side === 'BUY'" v-show="showForm" @submit.prevent="submitBuyForm"> <form v-if="side === 'BUY'" v-show="showForm" @submit.prevent="submitBuyForm">
<label v-if="session.isAuthenticated">you have:</label> <label v-if="session.isAuthenticated">you have:</label>
<label v-if="session.isAuthenticated"> <label v-if="session.isAuthenticated">{{ session.msats / 1000 }} sats and {{ userShares }} shares</label>
{{ session.msats / 1000 }} sats and {{ userShares }} shares <label v-if="session.isAuthenticated">sell?</label>
(<label class="m-1"><i>sell?</i></label> <input v-if="session.isAuthenticated" v-model="side" true-value="SELL" false-value="BUY" type="checkbox" class="m-1"
<input v-model="side" true-value="SELL" false-value="BUY" type="checkbox" class="m-1" :disabled="userShares === 0" />
:disabled="userShares === 0" />)
</label>
<label for="stake">how much?</label> <label for="stake">how much?</label>
<input id="stake" v-model="stake" type="number" min="0" placeholder="sats" required /> <input id="stake" v-model="stake" type="number" min="0" placeholder="sats" required />
<label for="certainty">how sure?</label> <label for="certainty">how sure?</label>
@ -26,12 +24,11 @@
<button class="col-span-2" type="submit">submit buy order</button> <button class="col-span-2" type="submit">submit buy order</button>
</form> </form>
<form v-else v-show="showForm" @submit.prevent="submitSellForm"> <form v-else v-show="showForm" @submit.prevent="submitSellForm">
<label v-if="session.isAuthenticated" for="balance">you have:</label> <label v-if="session.isAuthenticated">you have:</label>
<label v-if="session.isAuthenticated" id="balance"> <label v-if="session.isAuthenticated">{{ session.msats / 1000 }} sats and {{ userShares }} shares</label>
{{ session.msats / 1000 }} sats and {{ userShares }} shares <label v-if="session.isAuthenticated">sell?</label>
(<label class="m-1"><i>sell?</i></label> <input v-if="session.isAuthenticated" v-model="side" true-value="SELL" false-value="BUY" type="checkbox" class="m-1"
<input v-model="side" true-value="SELL" false-value="BUY" type="checkbox" class="m-1" />) :disabled="userShares === 0" />
</label>
<label for="shares">how many?</label> <label for="shares">how many?</label>
<input id="shares" v-model="sellShares" type="number" min="1" :max="userShares" placeholder="shares" required /> <input id="shares" v-model="sellShares" type="number" min="1" :max="userShares" placeholder="shares" required />
<label for="price">price?</label> <label for="price">price?</label>