dev #21
@ -304,7 +304,7 @@ export default function CreateSubscriptionPage() {
|
|||||||
<div className="grid grid-cols-1 gap-6 sm:grid-cols-2">
|
<div className="grid grid-cols-1 gap-6 sm:grid-cols-2">
|
||||||
{/* Price */}
|
{/* Price */}
|
||||||
<div>
|
<div>
|
||||||
<label htmlFor="price" className="block text-sm font-semibold text-slate-700 mb-1">Price</label>
|
<label htmlFor="price" className="block text-sm font-semibold text-slate-700 mb-1">Price per pack</label>
|
||||||
<input
|
<input
|
||||||
id="price"
|
id="price"
|
||||||
name="price"
|
name="price"
|
||||||
@ -318,6 +318,7 @@ export default function CreateSubscriptionPage() {
|
|||||||
onChange={e => setPrice(e.target.value)}
|
onChange={e => setPrice(e.target.value)}
|
||||||
onBlur={e => { const n = parseFloat(e.target.value); if (!isNaN(n)) setPrice(n.toFixed(2)); }}
|
onBlur={e => { const n = parseFloat(e.target.value); if (!isNaN(n)) setPrice(n.toFixed(2)); }}
|
||||||
/>
|
/>
|
||||||
|
<p className="mt-1 text-xs text-slate-500">Enter the gross price for one pack. The system converts it to the internal per-capsule value automatically.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Currency */}
|
{/* Currency */}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user