forked from jsnbuchanan/crowd-funder-for-time-pwa
Updated amount input controls
Now consistent with gifting dialog version
This commit is contained in:
@@ -48,30 +48,36 @@
|
|||||||
class="block w-full rounded border border-slate-400 mb-2 px-3 py-2"
|
class="block w-full rounded border border-slate-400 mb-2 px-3 py-2"
|
||||||
placeholder="What was received"
|
placeholder="What was received"
|
||||||
/>
|
/>
|
||||||
<div class="flex flex-row justify-center">
|
<div class="flex mb-4">
|
||||||
<span
|
<button
|
||||||
class="rounded-l border border-r-0 border-slate-400 bg-slate-200 text-center text-blue-500 px-2 py-2 w-20"
|
class="rounded-s border border-e-0 border-slate-400 bg-slate-200 px-4 py-2"
|
||||||
@click="changeUnitCode()"
|
|
||||||
>
|
|
||||||
{{ libsUtil.UNIT_SHORT[unitCode] || unitCode }}
|
|
||||||
</span>
|
|
||||||
<div
|
|
||||||
class="border border-r-0 border-slate-400 bg-slate-200 px-4 py-2"
|
|
||||||
@click="amountInput === '0' ? null : decrement()"
|
@click="amountInput === '0' ? null : decrement()"
|
||||||
>
|
>
|
||||||
<font-awesome icon="chevron-left" />
|
<font-awesome icon="chevron-left" />
|
||||||
</div>
|
</button>
|
||||||
<input
|
<input
|
||||||
|
id="inputGivenAmount"
|
||||||
v-model="amountInput"
|
v-model="amountInput"
|
||||||
type="number"
|
type="number"
|
||||||
class="border border-r-0 border-slate-400 px-2 py-2 text-center w-20"
|
class="flex-1 border border-e-0 border-slate-400 px-2 py-2 text-center w-[1px]"
|
||||||
/>
|
/>
|
||||||
<div
|
<button
|
||||||
class="rounded-r border border-slate-400 bg-slate-200 px-4 py-2"
|
class="rounded-e border border-slate-400 bg-slate-200 px-4 py-2"
|
||||||
@click="increment()"
|
@click="increment()"
|
||||||
>
|
>
|
||||||
<font-awesome icon="chevron-right" />
|
<font-awesome icon="chevron-right" />
|
||||||
</div>
|
</button>
|
||||||
|
|
||||||
|
<select
|
||||||
|
v-model="unitCode"
|
||||||
|
class="flex-1 rounded border border-slate-400 ms-2 px-3 py-2"
|
||||||
|
>
|
||||||
|
<option value="HUR">Hours</option>
|
||||||
|
<option value="USD">US $</option>
|
||||||
|
<option value="BTC">BTC</option>
|
||||||
|
<option value="BX">BX</option>
|
||||||
|
<option value="ETH">ETH</option>
|
||||||
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex justify-center mt-4" data-testId="imagery">
|
<div class="flex justify-center mt-4" data-testId="imagery">
|
||||||
|
|||||||
Reference in New Issue
Block a user