validation
This commit is contained in:
parent
04a1a2b8be
commit
93eb3e0cb2
@ -12,7 +12,7 @@
|
||||
|
||||
.collapsable-form-style-form7 .MuiInputBase-root {
|
||||
width: 400px !important;
|
||||
margin: 5%;
|
||||
margin: 3%;
|
||||
height: 50px
|
||||
}
|
||||
|
||||
@ -30,7 +30,7 @@
|
||||
}
|
||||
|
||||
.collapsable-form-style-form7 label {
|
||||
padding: 20px;
|
||||
padding: 13px;
|
||||
}
|
||||
|
||||
.collapsable-form-style-radioButtons{
|
||||
|
||||
@ -109,7 +109,7 @@ export default function PatientForm(){
|
||||
<>
|
||||
<Paper elevation={0} className='app-screen-constants'>
|
||||
<Header/>
|
||||
<Paper elevation={0} sx={{margin:4, minHeight:700}} >
|
||||
<Paper elevation={0} sx={{margin:4, minHeight:550}} >
|
||||
<form onSubmit={handleSubmit}>
|
||||
<Typography sx={{fontSize:20}} gutterBottom>
|
||||
Confidential Patient Information
|
||||
|
||||
@ -105,6 +105,7 @@ export default function RecreationalHobbiesSection7(){
|
||||
|
||||
<Grid item xs={6} className='collapsable-form-style-form7'>
|
||||
<TextField
|
||||
disabled={values.excercise!=='Yes'}
|
||||
variant="outlined"
|
||||
label="Times per week?"
|
||||
name='treatmentGoal'
|
||||
@ -138,6 +139,7 @@ export default function RecreationalHobbiesSection7(){
|
||||
|
||||
<Grid item xs={6} className='collapsable-form-style-form7'>
|
||||
<TextField
|
||||
disabled={values.tobacco!=='Yes'}
|
||||
variant="outlined"
|
||||
label="Packs/Cans per day(If you have quit, when did you quit?)"
|
||||
name='treatmentGoal'
|
||||
@ -171,6 +173,7 @@ export default function RecreationalHobbiesSection7(){
|
||||
|
||||
<Grid item xs={6} className='collapsable-form-style-form7'>
|
||||
<TextField
|
||||
disabled={values.alcohol!=='Yes'}
|
||||
variant="outlined"
|
||||
label="How many drinks per week?"
|
||||
name='treatmentGoal'
|
||||
@ -204,6 +207,7 @@ export default function RecreationalHobbiesSection7(){
|
||||
|
||||
<Grid item xs={6} className='collapsable-form-style-form7'>
|
||||
<TextField
|
||||
disabled={values.healthyDiet!=='No'}
|
||||
variant="outlined"
|
||||
label="If no, explain"
|
||||
name='treatmentGoal'
|
||||
@ -237,6 +241,7 @@ export default function RecreationalHobbiesSection7(){
|
||||
|
||||
<Grid item xs={6} className='collapsable-form-style-form7'>
|
||||
<TextField
|
||||
disabled={values.sleep!=='No'}
|
||||
variant="outlined"
|
||||
label="If no, explain"
|
||||
name='treatmentGoal'
|
||||
@ -270,6 +275,7 @@ export default function RecreationalHobbiesSection7(){
|
||||
|
||||
<Grid item xs={6} className='collapsable-form-style-form7'>
|
||||
<TextField
|
||||
disabled={values.workSchool!=='Yes'}
|
||||
variant="outlined"
|
||||
label="If yes, explain"
|
||||
name='treatmentGoal'
|
||||
@ -303,6 +309,7 @@ export default function RecreationalHobbiesSection7(){
|
||||
|
||||
<Grid item xs={6} className='collapsable-form-style-form7'>
|
||||
<TextField
|
||||
disabled={values.familyLife!=='Yes'}
|
||||
variant="outlined"
|
||||
label="If yes, explain"
|
||||
name='treatmentGoal'
|
||||
@ -336,6 +343,7 @@ export default function RecreationalHobbiesSection7(){
|
||||
|
||||
<Grid item xs={6} className='collapsable-form-style-form7'>
|
||||
<TextField
|
||||
disabled={values.drugs!=='Yes'}
|
||||
variant="outlined"
|
||||
label="If yes, explain"
|
||||
name='treatmentGoal'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user