form 7 textfields
This commit is contained in:
parent
6af50c495e
commit
04a1a2b8be
10
src/App.css
10
src/App.css
@ -10,6 +10,12 @@
|
|||||||
height: 50px
|
height: 50px
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.collapsable-form-style-form7 .MuiInputBase-root {
|
||||||
|
width: 400px !important;
|
||||||
|
margin: 5%;
|
||||||
|
height: 50px
|
||||||
|
}
|
||||||
|
|
||||||
.collapsable-form-style-multiline .MuiInputBase-root {
|
.collapsable-form-style-multiline .MuiInputBase-root {
|
||||||
width: 400px !important;
|
width: 400px !important;
|
||||||
margin: 5%;
|
margin: 5%;
|
||||||
@ -23,6 +29,10 @@
|
|||||||
padding: 15px;
|
padding: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.collapsable-form-style-form7 label {
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
.collapsable-form-style-radioButtons{
|
.collapsable-form-style-radioButtons{
|
||||||
width: 300px !important;
|
width: 300px !important;
|
||||||
margin: 5%;
|
margin: 5%;
|
||||||
|
|||||||
@ -5,13 +5,21 @@ interface FormValues {
|
|||||||
hobbies: string;
|
hobbies: string;
|
||||||
educationLevel: string;
|
educationLevel: string;
|
||||||
excercise: string;
|
excercise: string;
|
||||||
|
excerciseExplanation: string;
|
||||||
tobacco: string;
|
tobacco: string;
|
||||||
|
tobaccoExplanation: string;
|
||||||
alcohol: string;
|
alcohol: string;
|
||||||
|
alcoholExplanation: string;
|
||||||
healthyDiet: string;
|
healthyDiet: string;
|
||||||
|
healthyDietExplanation: string;
|
||||||
sleep: string;
|
sleep: string;
|
||||||
|
sleepExplanation: string;
|
||||||
workSchool: string;
|
workSchool: string;
|
||||||
|
workSchoolExplanation: string;
|
||||||
familyLife: string;
|
familyLife: string;
|
||||||
|
familyLifeExplanation: string;
|
||||||
drugs: string;
|
drugs: string;
|
||||||
|
drugsExplanation:string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function RecreationalHobbiesSection7(){
|
export default function RecreationalHobbiesSection7(){
|
||||||
@ -19,19 +27,25 @@ export default function RecreationalHobbiesSection7(){
|
|||||||
hobbies: '',
|
hobbies: '',
|
||||||
educationLevel: '',
|
educationLevel: '',
|
||||||
excercise:'',
|
excercise:'',
|
||||||
|
excerciseExplanation:'',
|
||||||
tobacco: '',
|
tobacco: '',
|
||||||
|
tobaccoExplanation:'',
|
||||||
alcohol: '',
|
alcohol: '',
|
||||||
|
alcoholExplanation:'',
|
||||||
healthyDiet: '',
|
healthyDiet: '',
|
||||||
|
healthyDietExplanation:'',
|
||||||
sleep: '',
|
sleep: '',
|
||||||
|
sleepExplanation: '',
|
||||||
workSchool: '',
|
workSchool: '',
|
||||||
|
workSchoolExplanation:'',
|
||||||
familyLife: '',
|
familyLife: '',
|
||||||
|
familyLifeExplanation:'',
|
||||||
drugs: '',
|
drugs: '',
|
||||||
|
drugsExplanation:''
|
||||||
});
|
});
|
||||||
return(
|
return(
|
||||||
<>
|
<>
|
||||||
{/* <Grid item xs={12} className='collapsable-form-style'>
|
|
||||||
<FormLabel sx={{fontWeight:600}}>Please choose body areas or systems where you may have problems:</FormLabel>
|
|
||||||
</Grid> */}
|
|
||||||
<Grid container direction="row">
|
<Grid container direction="row">
|
||||||
<Grid item xs={6} className='collapsable-form-style-multiline'>
|
<Grid item xs={6} className='collapsable-form-style-multiline'>
|
||||||
<FormLabel>Recreational Activities/Hobbies:</FormLabel>
|
<FormLabel>Recreational Activities/Hobbies:</FormLabel>
|
||||||
@ -69,6 +83,7 @@ export default function RecreationalHobbiesSection7(){
|
|||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<Grid item xs={12} className='collapsable-form-style-radioButtons'>
|
<Grid item xs={12} className='collapsable-form-style-radioButtons'>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<FormLabel>Do you excercise?</FormLabel>
|
<FormLabel>Do you excercise?</FormLabel>
|
||||||
@ -88,6 +103,20 @@ export default function RecreationalHobbiesSection7(){
|
|||||||
</FormControl>
|
</FormControl>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
|
<Grid item xs={6} className='collapsable-form-style-form7'>
|
||||||
|
<TextField
|
||||||
|
variant="outlined"
|
||||||
|
label="Times per week?"
|
||||||
|
name='treatmentGoal'
|
||||||
|
onChange={(event) => {
|
||||||
|
setValues((prevValues) => ({
|
||||||
|
...prevValues,
|
||||||
|
excerciseExplanation: event.target.value,
|
||||||
|
}));
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
<Grid item xs={12} className='collapsable-form-style-radioButtons'>
|
<Grid item xs={12} className='collapsable-form-style-radioButtons'>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<FormLabel>Use tobacco?</FormLabel>
|
<FormLabel>Use tobacco?</FormLabel>
|
||||||
@ -107,6 +136,20 @@ export default function RecreationalHobbiesSection7(){
|
|||||||
</FormControl>
|
</FormControl>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
|
<Grid item xs={6} className='collapsable-form-style-form7'>
|
||||||
|
<TextField
|
||||||
|
variant="outlined"
|
||||||
|
label="Packs/Cans per day(If you have quit, when did you quit?)"
|
||||||
|
name='treatmentGoal'
|
||||||
|
onChange={(event) => {
|
||||||
|
setValues((prevValues) => ({
|
||||||
|
...prevValues,
|
||||||
|
excerciseExplanation: event.target.value,
|
||||||
|
}));
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
<Grid item xs={12} className='collapsable-form-style-radioButtons'>
|
<Grid item xs={12} className='collapsable-form-style-radioButtons'>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<FormLabel>Consume alcohol?</FormLabel>
|
<FormLabel>Consume alcohol?</FormLabel>
|
||||||
@ -126,6 +169,20 @@ export default function RecreationalHobbiesSection7(){
|
|||||||
</FormControl>
|
</FormControl>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
|
<Grid item xs={6} className='collapsable-form-style-form7'>
|
||||||
|
<TextField
|
||||||
|
variant="outlined"
|
||||||
|
label="How many drinks per week?"
|
||||||
|
name='treatmentGoal'
|
||||||
|
onChange={(event) => {
|
||||||
|
setValues((prevValues) => ({
|
||||||
|
...prevValues,
|
||||||
|
alcoholExplanation: event.target.value,
|
||||||
|
}));
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
<Grid item xs={12} className='collapsable-form-style-radioButtons'>
|
<Grid item xs={12} className='collapsable-form-style-radioButtons'>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<FormLabel>Have a healthy diet?</FormLabel>
|
<FormLabel>Have a healthy diet?</FormLabel>
|
||||||
@ -145,6 +202,20 @@ export default function RecreationalHobbiesSection7(){
|
|||||||
</FormControl>
|
</FormControl>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
|
<Grid item xs={6} className='collapsable-form-style-form7'>
|
||||||
|
<TextField
|
||||||
|
variant="outlined"
|
||||||
|
label="If no, explain"
|
||||||
|
name='treatmentGoal'
|
||||||
|
onChange={(event) => {
|
||||||
|
setValues((prevValues) => ({
|
||||||
|
...prevValues,
|
||||||
|
healthyDietExplanation: event.target.value,
|
||||||
|
}));
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
<Grid item xs={12} className='collapsable-form-style-radioButtons'>
|
<Grid item xs={12} className='collapsable-form-style-radioButtons'>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<FormLabel>Get adequate sleep?</FormLabel>
|
<FormLabel>Get adequate sleep?</FormLabel>
|
||||||
@ -164,6 +235,20 @@ export default function RecreationalHobbiesSection7(){
|
|||||||
</FormControl>
|
</FormControl>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
|
<Grid item xs={6} className='collapsable-form-style-form7'>
|
||||||
|
<TextField
|
||||||
|
variant="outlined"
|
||||||
|
label="If no, explain"
|
||||||
|
name='treatmentGoal'
|
||||||
|
onChange={(event) => {
|
||||||
|
setValues((prevValues) => ({
|
||||||
|
...prevValues,
|
||||||
|
sleepExplanation: event.target.value,
|
||||||
|
}));
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
<Grid item xs={12} className='collapsable-form-style-radioButtons'>
|
<Grid item xs={12} className='collapsable-form-style-radioButtons'>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<FormLabel>Is Work/School stressful to you?</FormLabel>
|
<FormLabel>Is Work/School stressful to you?</FormLabel>
|
||||||
@ -183,6 +268,20 @@ export default function RecreationalHobbiesSection7(){
|
|||||||
</FormControl>
|
</FormControl>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
|
<Grid item xs={6} className='collapsable-form-style-form7'>
|
||||||
|
<TextField
|
||||||
|
variant="outlined"
|
||||||
|
label="If yes, explain"
|
||||||
|
name='treatmentGoal'
|
||||||
|
onChange={(event) => {
|
||||||
|
setValues((prevValues) => ({
|
||||||
|
...prevValues,
|
||||||
|
workSchool: event.target.value,
|
||||||
|
}));
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
<Grid item xs={12} className='collapsable-form-style-radioButtons'>
|
<Grid item xs={12} className='collapsable-form-style-radioButtons'>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<FormLabel>Family life stressful to you?</FormLabel>
|
<FormLabel>Family life stressful to you?</FormLabel>
|
||||||
@ -202,9 +301,23 @@ export default function RecreationalHobbiesSection7(){
|
|||||||
</FormControl>
|
</FormControl>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
|
<Grid item xs={6} className='collapsable-form-style-form7'>
|
||||||
|
<TextField
|
||||||
|
variant="outlined"
|
||||||
|
label="If yes, explain"
|
||||||
|
name='treatmentGoal'
|
||||||
|
onChange={(event) => {
|
||||||
|
setValues((prevValues) => ({
|
||||||
|
...prevValues,
|
||||||
|
familyLifeExplanation: event.target.value,
|
||||||
|
}));
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
<Grid item xs={12} className='collapsable-form-style-radioButtons'>
|
<Grid item xs={12} className='collapsable-form-style-radioButtons'>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<FormLabel>use recreational drugs?</FormLabel>
|
<FormLabel>Use recreational drugs?</FormLabel>
|
||||||
<RadioGroup
|
<RadioGroup
|
||||||
name="painDuration"
|
name="painDuration"
|
||||||
sx={{display:'flex', flexDirection:'row'}}
|
sx={{display:'flex', flexDirection:'row'}}
|
||||||
@ -221,9 +334,19 @@ export default function RecreationalHobbiesSection7(){
|
|||||||
</FormControl>
|
</FormControl>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
|
<Grid item xs={6} className='collapsable-form-style-form7'>
|
||||||
|
<TextField
|
||||||
|
variant="outlined"
|
||||||
|
label="If yes, explain"
|
||||||
|
name='treatmentGoal'
|
||||||
|
onChange={(event) => {
|
||||||
|
setValues((prevValues) => ({
|
||||||
|
...prevValues,
|
||||||
|
drugsExplanation: event.target.value,
|
||||||
|
}));
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user