original
ajikamaludin 2 years ago
parent 444a28f899
commit 5bd14672b6
No known key found for this signature in database
GPG Key ID: E4F565A376B260B7

@ -29,6 +29,7 @@ export default function FormDocument(props) {
document: null, document: null,
document_name: '', document_name: '',
status: 0, status: 0,
reminder: ''
}); });
const inputDocument = useRef() const inputDocument = useRef()
@ -257,6 +258,20 @@ export default function FormDocument(props) {
</select> </select>
<InputError message={errors.status}/> <InputError message={errors.status}/>
</div> </div>
<div className='mt-4'>
<InputLabel forInput="reminder" value="Reminder" />
<div className="btn-group w-full">
<TextInput
type="text"
name="reminder"
value={data.reminder}
className="mt-1 block w-full"
autoComplete={"false"}
isError={errors.reminder}
/>
<div className='btn btn-active w-1/6'>+</div>
</div>
</div>
<div className="flex items-center justify-between mt-4"> <div className="flex items-center justify-between mt-4">
<PrimaryButton processing={processing}> <PrimaryButton processing={processing}>
Simpan Simpan

@ -96,11 +96,9 @@ export default function Document(props) {
<table className="table w-full table-zebra"> <table className="table w-full table-zebra">
<thead> <thead>
<tr> <tr>
<th>No</th>
<th>No. Dokumen</th>
<th>Nama PIC</th>
<th>Jenis</th> <th>Jenis</th>
<th>Deparment</th> <th>Nama PIC</th>
<th>Tanggal Berakhir</th>
<th>Status</th> <th>Status</th>
<th></th> <th></th>
</tr> </tr>
@ -108,11 +106,9 @@ export default function Document(props) {
<tbody> <tbody>
{docs?.map((doc) => ( {docs?.map((doc) => (
<tr key={doc.id}> <tr key={doc.id}>
<th>{doc.no}</th>
<td>{doc.no_doc}</td>
<td>{doc.pic_name}</td>
<td>{doc.type.name}</td> <td>{doc.type.name}</td>
<td>{doc.department.name}</td> <td>{doc.pic_name}</td>
<td>{doc.end_date}</td>
<td><DocStatusItem status={doc.status}/></td> <td><DocStatusItem status={doc.status}/></td>
<td className='text-right'> <td className='text-right'>
<div className="dropdown dropdown-left"> <div className="dropdown dropdown-left">

Loading…
Cancel
Save