mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-22 06:15:47 +00:00
refactor(FE): Move error message above form actions in
InventoryAdjustmentForm
This commit is contained in:
@@ -776,6 +776,16 @@ const InventoryAdjustmentForm = ({
|
||||
>
|
||||
<AlertErrorList formErrorList={formErrorList} onClose={close} />
|
||||
</section>
|
||||
{InventoryAdjustmentFormErrorMessage && (
|
||||
<div role='alert' className='alert alert-error'>
|
||||
<Icon
|
||||
icon='material-symbols:error-outline'
|
||||
width={24}
|
||||
height={24}
|
||||
/>
|
||||
<span>{InventoryAdjustmentFormErrorMessage}</span>
|
||||
</div>
|
||||
)}
|
||||
<div className='flex flex-col sm:flex-row sm:justify-end gap-2 mt-4'>
|
||||
{type !== 'detail' && (
|
||||
<>
|
||||
@@ -799,16 +809,6 @@ const InventoryAdjustmentForm = ({
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
{InventoryAdjustmentFormErrorMessage && (
|
||||
<div role='alert' className='alert alert-error'>
|
||||
<Icon
|
||||
icon='material-symbols:error-outline'
|
||||
width={24}
|
||||
height={24}
|
||||
/>
|
||||
<span>{InventoryAdjustmentFormErrorMessage}</span>
|
||||
</div>
|
||||
)}
|
||||
</form>
|
||||
</section>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user