Changes in DocumentManager popup change the sequence.
This commit is contained in:
parent
7ef10e3e5b
commit
fb6a8255c9
@ -235,24 +235,9 @@ const ManageDocument = ({ closeModal, Document_Entity, Entity }) => {
|
|||||||
<p className="fw-bold fs-6">Upload New Document</p>
|
<p className="fw-bold fs-6">Upload New Document</p>
|
||||||
<FormProvider key={documentTypeId} {...methods}>
|
<FormProvider key={documentTypeId} {...methods}>
|
||||||
<form onSubmit={handleSubmit(onSubmit)} className="text-start">
|
<form onSubmit={handleSubmit(onSubmit)} className="text-start">
|
||||||
{/* Document Name */}
|
|
||||||
<div className="mb-2">
|
|
||||||
<Label htmlFor="name" required>
|
|
||||||
Document Name
|
|
||||||
</Label>
|
|
||||||
<input
|
|
||||||
type="text"
|
|
||||||
className="form-control form-control-sm"
|
|
||||||
{...register("name")}
|
|
||||||
/>
|
|
||||||
{errors.name && (
|
|
||||||
<div className="danger-text">{errors.name.message}</div>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{/* Category */}
|
{/* Category */}
|
||||||
<div className="mb-2">
|
<div className="mb-2">
|
||||||
<Label htmlFor="documentCategoryId">Document Category</Label>
|
<Label htmlFor="documentCategoryId" required>Document Category</Label>
|
||||||
<select
|
<select
|
||||||
{...register("documentCategoryId")}
|
{...register("documentCategoryId")}
|
||||||
className="form-select form-select-sm"
|
className="form-select form-select-sm"
|
||||||
@ -279,7 +264,7 @@ const ManageDocument = ({ closeModal, Document_Entity, Entity }) => {
|
|||||||
{/* Type */}
|
{/* Type */}
|
||||||
{categoryId && (
|
{categoryId && (
|
||||||
<div className="mb-2">
|
<div className="mb-2">
|
||||||
<Label htmlFor="documentTypeId">Document Type</Label>
|
<Label htmlFor="documentTypeId" required>Document Type</Label>
|
||||||
<select
|
<select
|
||||||
{...register("documentTypeId")}
|
{...register("documentTypeId")}
|
||||||
className="form-select form-select-sm"
|
className="form-select form-select-sm"
|
||||||
@ -303,14 +288,15 @@ const ManageDocument = ({ closeModal, Document_Entity, Entity }) => {
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|
||||||
{/* Document ID */}
|
{/* Document ID */}
|
||||||
<div className="mb-2">
|
<div className="mb-2">
|
||||||
<Label
|
<label
|
||||||
htmlFor="documentId"
|
htmlFor="documentId"
|
||||||
required={selectedType?.isMandatory ?? false}
|
required={selectedType?.isMandatory ?? false}
|
||||||
>
|
>
|
||||||
Document ID
|
Document ID
|
||||||
</Label>
|
</label>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
className="form-control form-control-sm"
|
className="form-control form-control-sm"
|
||||||
@ -321,6 +307,23 @@ const ManageDocument = ({ closeModal, Document_Entity, Entity }) => {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{/* Document Name */}
|
||||||
|
<div className="mb-2">
|
||||||
|
<Label htmlFor="name" required>
|
||||||
|
Document Name
|
||||||
|
</Label>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
className="form-control form-control-sm"
|
||||||
|
{...register("name")}
|
||||||
|
/>
|
||||||
|
{errors.name && (
|
||||||
|
<div className="danger-text">{errors.name.message}</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{/* Upload */}
|
{/* Upload */}
|
||||||
<div className="row my-2">
|
<div className="row my-2">
|
||||||
<div className="col-md-12">
|
<div className="col-md-12">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user