feat(admin): move visit-price save button to end of card
Relocate the ذخیره button out of the price-input row to the bottom of the FreeVisitPrice card, right-aligned, so it sits after the require-visit-price toggle in a logical end-of-form position. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -63,9 +63,6 @@ export default function FreeVisitPrice() {
|
|||||||
value={value} onChange={(e) => { setValue(e.target.value); setError(''); }}
|
value={value} onChange={(e) => { setValue(e.target.value); setError(''); }}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<button className="btn primary sm" disabled={saveMut.isPending} onClick={save}>
|
|
||||||
{saveMut.isPending ? '...' : 'ذخیره'}
|
|
||||||
</button>
|
|
||||||
{value !== '' && (
|
{value !== '' && (
|
||||||
<span style={{ fontSize: 12, color: 'var(--text-3)', marginBottom: 8 }}>{formatRial(tomanToRial(Number(value) || 0))}</span>
|
<span style={{ fontSize: 12, color: 'var(--text-3)', marginBottom: 8 }}>{formatRial(tomanToRial(Number(value) || 0))}</span>
|
||||||
)}
|
)}
|
||||||
@@ -94,6 +91,12 @@ export default function FreeVisitPrice() {
|
|||||||
<p style={{ fontSize: 12, color: 'var(--text-3)', margin: '6px 0 0', lineHeight: 1.7 }}>
|
<p style={{ fontSize: 12, color: 'var(--text-3)', margin: '6px 0 0', lineHeight: 1.7 }}>
|
||||||
با فعال شدن این گزینه، وارد کردن هزینه ویزیت در تنظیمات، ثبت مراجعه (سرویس)، فاکتور سرویس و ثبت نوبت الزامی میشود و بدون آن امکان ذخیره وجود ندارد.
|
با فعال شدن این گزینه، وارد کردن هزینه ویزیت در تنظیمات، ثبت مراجعه (سرویس)، فاکتور سرویس و ثبت نوبت الزامی میشود و بدون آن امکان ذخیره وجود ندارد.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<div style={{ display: 'flex', marginTop: 16 }}>
|
||||||
|
<button className="btn primary sm" style={{ marginInlineStart: 'auto' }} disabled={saveMut.isPending} onClick={save}>
|
||||||
|
{saveMut.isPending ? '...' : 'ذخیره'}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user