Merge branch 'feature/view-patient-data' of https://git.seyfertsoft.com/sonika/patient_Information_reactProject into feature/view-patient-data
This commit is contained in:
commit
bfbc9a8f0d
@ -437,7 +437,7 @@ export default function PatientForm({ type }: Props) {
|
|||||||
onChange={handleExpandChange('panel1')}
|
onChange={handleExpandChange('panel1')}
|
||||||
>
|
>
|
||||||
<AccordionSummary
|
<AccordionSummary
|
||||||
expandIcon={<ExpandMoreIcon />}
|
// expandIcon={<ExpandMoreIcon />}
|
||||||
aria-controls='panel1a-content'
|
aria-controls='panel1a-content'
|
||||||
id='panel1a-header'
|
id='panel1a-header'
|
||||||
>
|
>
|
||||||
@ -630,12 +630,11 @@ export default function PatientForm({ type }: Props) {
|
|||||||
</Accordion>
|
</Accordion>
|
||||||
|
|
||||||
<Grid container>
|
<Grid container>
|
||||||
|
|
||||||
<Grid item xs={12} className='collapsable-form-style-multiline'>
|
<Grid item xs={12} className='collapsable-form-style-multiline'>
|
||||||
<FormGroup sx={{ marginTop: 3 }}>
|
<FormGroup sx={{ marginTop: 3 }}>
|
||||||
<FormControlLabel
|
<FormControlLabel
|
||||||
required
|
required
|
||||||
disabled={type=='display'}
|
disabled={type == 'display'}
|
||||||
control={
|
control={
|
||||||
<Checkbox
|
<Checkbox
|
||||||
checked={type === 'display' ? true : isChecked}
|
checked={type === 'display' ? true : isChecked}
|
||||||
@ -647,10 +646,9 @@ export default function PatientForm({ type }: Props) {
|
|||||||
</FormGroup>
|
</FormGroup>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<Grid item xs={12} >
|
<Grid item xs={12}>
|
||||||
|
<Grid container spacing={2} flexDirection={'row'}>
|
||||||
<Grid container spacing={2} flexDirection={'row'}>
|
{type !== 'display' ? (
|
||||||
{type!=='display'?
|
|
||||||
<>
|
<>
|
||||||
|
|
||||||
<Grid item className='collapsable-form-style'>
|
<Grid item className='collapsable-form-style'>
|
||||||
@ -658,40 +656,64 @@ export default function PatientForm({ type }: Props) {
|
|||||||
<SignatureComponent signature={signature} setSignature={setSignature} />
|
<SignatureComponent signature={signature} setSignature={setSignature} />
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<Grid item>
|
<Grid item>
|
||||||
<FormLabel sx={{margin:0,padding:0}}>Please verify your signature here:</FormLabel>
|
<FormLabel sx={{ margin: 0, padding: 0 }}>
|
||||||
<Box sx={{border:'1px solid black',borderRadius:2,height:'110px',width:'250px'}}>
|
Please verify your signature here:
|
||||||
<img src={signature} style={{height:'110px', width:'250px'}}/>
|
</FormLabel>
|
||||||
|
<Box
|
||||||
|
sx={{
|
||||||
|
border: '1px solid black',
|
||||||
|
borderRadius: 2,
|
||||||
|
height: '110px',
|
||||||
|
width: '250px',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<img
|
||||||
|
src={signature}
|
||||||
|
style={{ height: '110px', width: '250px' }}
|
||||||
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
|
</Grid>
|
||||||
|
</>
|
||||||
|
) : (
|
||||||
|
<Grid item>
|
||||||
|
<FormLabel sx={{ margin: 0, padding: 0 }}>
|
||||||
|
Your signature:
|
||||||
|
</FormLabel>
|
||||||
|
<Box
|
||||||
|
sx={{
|
||||||
|
border: '1px solid black',
|
||||||
|
borderRadius: 2,
|
||||||
|
height: '110px',
|
||||||
|
width: '250px',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<img
|
||||||
|
src={patientData.signature}
|
||||||
|
style={{ height: '110px', width: '250px' }}
|
||||||
|
/>
|
||||||
|
</Box>
|
||||||
</Grid>
|
</Grid>
|
||||||
</>:
|
)}
|
||||||
|
|
||||||
<Grid item>
|
|
||||||
<FormLabel sx={{margin:0,padding:0}}>Your signature:</FormLabel>
|
|
||||||
<Box sx={{border:'1px solid black',borderRadius:2,height:'110px',width:'250px'}}>
|
|
||||||
<img src={patientData.signature} style={{height:'110px', width:'250px'}}/>
|
|
||||||
</Box>
|
|
||||||
</Grid>
|
|
||||||
}
|
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid container flexDirection={'row-reverse'}>
|
<Grid container flexDirection={'row-reverse'}>
|
||||||
<Grid item>
|
<Grid item>
|
||||||
<Button
|
<Button
|
||||||
// type="submit"
|
// type="submit"
|
||||||
variant='contained'
|
variant='contained'
|
||||||
color='primary'
|
color='primary'
|
||||||
sx={{ margin: 5, width: '200px' }}
|
sx={{ margin: 5, width: '200px' }}
|
||||||
disabled={
|
disabled={
|
||||||
isChecked == false || signature == undefined || type == 'display'
|
isChecked == false ||
|
||||||
}
|
signature == undefined ||
|
||||||
onClick={handleSubmit}
|
type == 'display'
|
||||||
>
|
}
|
||||||
Submit
|
onClick={handleSubmit}
|
||||||
</Button>
|
>
|
||||||
|
Submit
|
||||||
|
</Button>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user