mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-24 15:25:46 +00:00
refactor(FE): Move purchase order error alert below heading
This commit is contained in:
@@ -352,19 +352,22 @@ const PurchaseOrderAcceptApprovalForm = ({
|
|||||||
onSubmit={formik.handleSubmit}
|
onSubmit={formik.handleSubmit}
|
||||||
className='w-full flex flex-col gap-6'
|
className='w-full flex flex-col gap-6'
|
||||||
>
|
>
|
||||||
{purchaseOrderFormErrorMessage && (
|
|
||||||
<div role='alert' className='alert alert-error'>
|
|
||||||
<Icon icon='material-symbols:error-outline' width={24} height={24} />
|
|
||||||
<span>{purchaseOrderFormErrorMessage}</span>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
<div className='w-full'>
|
<div className='w-full'>
|
||||||
<h2 className='text-lg font-semibold mb-4'>
|
<h2 className='text-lg font-semibold mb-4'>
|
||||||
{type === 'add'
|
{type === 'add'
|
||||||
? 'Konfirmasi Penerimaan Produk'
|
? 'Konfirmasi Penerimaan Produk'
|
||||||
: 'Edit Penerimaan Produk'}
|
: 'Edit Penerimaan Produk'}
|
||||||
</h2>
|
</h2>
|
||||||
|
{purchaseOrderFormErrorMessage && (
|
||||||
|
<div role='alert' className='alert alert-error'>
|
||||||
|
<Icon
|
||||||
|
icon='material-symbols:error-outline'
|
||||||
|
width={24}
|
||||||
|
height={24}
|
||||||
|
/>
|
||||||
|
<span>{purchaseOrderFormErrorMessage}</span>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
<div className='overflow-x-auto'>
|
<div className='overflow-x-auto'>
|
||||||
<table className='table'>
|
<table className='table'>
|
||||||
<thead>
|
<thead>
|
||||||
|
|||||||
@@ -656,6 +656,12 @@ const PurchaseOrderStaffApprovalForm = ({
|
|||||||
onSubmit={formik.handleSubmit}
|
onSubmit={formik.handleSubmit}
|
||||||
className='w-full flex flex-col gap-6'
|
className='w-full flex flex-col gap-6'
|
||||||
>
|
>
|
||||||
|
<div className='w-full'>
|
||||||
|
<h2 className='text-lg font-semibold mb-4'>
|
||||||
|
{type === 'add'
|
||||||
|
? 'Konfirmasi Item Pembelian'
|
||||||
|
: 'Edit Item Pembelian'}
|
||||||
|
</h2>
|
||||||
{purchaseOrderFormErrorMessage && (
|
{purchaseOrderFormErrorMessage && (
|
||||||
<div role='alert' className='alert alert-error'>
|
<div role='alert' className='alert alert-error'>
|
||||||
<Icon
|
<Icon
|
||||||
@@ -666,12 +672,6 @@ const PurchaseOrderStaffApprovalForm = ({
|
|||||||
<span>{purchaseOrderFormErrorMessage}</span>
|
<span>{purchaseOrderFormErrorMessage}</span>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<div className='w-full'>
|
|
||||||
<h2 className='text-lg font-semibold mb-4'>
|
|
||||||
{type === 'add'
|
|
||||||
? 'Konfirmasi Item Pembelian'
|
|
||||||
: 'Edit Item Pembelian'}
|
|
||||||
</h2>
|
|
||||||
<div className='overflow-x-auto'>
|
<div className='overflow-x-auto'>
|
||||||
{groupedPurchaseItems.length > 0 ? (
|
{groupedPurchaseItems.length > 0 ? (
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
Reference in New Issue
Block a user