submit button disable
This commit is contained in:
parent
98b486d43c
commit
617728b771
@ -504,8 +504,7 @@ export default function PatientForm({type}:Props){
|
|||||||
</AccordionDetails>
|
</AccordionDetails>
|
||||||
</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
|
||||||
@ -518,7 +517,7 @@ export default function PatientForm({type}:Props){
|
|||||||
|
|
||||||
<Grid item xs={6} className='collapsable-form-style'>
|
<Grid item xs={6} className='collapsable-form-style'>
|
||||||
<TextField
|
<TextField
|
||||||
|
disabled={type=='display'}
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
label="SIGNATURE"
|
label="SIGNATURE"
|
||||||
name='treatmentGoal'
|
name='treatmentGoal'
|
||||||
@ -535,7 +534,7 @@ export default function PatientForm({type}:Props){
|
|||||||
variant="contained"
|
variant="contained"
|
||||||
color="primary"
|
color="primary"
|
||||||
sx={{ margin: 5, left: '40%', width: '200px' }}
|
sx={{ margin: 5, left: '40%', width: '200px' }}
|
||||||
disabled={isChecked==false || signature==''}
|
disabled={isChecked==false || signature=='' || type=='display'}
|
||||||
onClick={handleSubmit}
|
onClick={handleSubmit}
|
||||||
>
|
>
|
||||||
Submit
|
Submit
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user