[095503]: / templates / form.html

Download this file

154 lines (121 with data), 5.2 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<!DOCTYPE html>
<html>
<head>
<title>Health Assessment Form</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f5f5f5;
}
h1 {
text-align: center;
margin-top: 30px;
color: #333333;
}
.container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
background-color: #ffffff;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
label {
display: block;
margin-bottom: 10px;
font-weight: bold;
color: #333333;
}
input[type="number"], select {
padding: 8px;
border-radius: 5px;
border: 1px solid #cccccc;
width: 100%;
box-sizing: border-box;
font-size: 16px;
margin-bottom: 20px;
}
input[type="submit"] {
background-color: #4CAF50;
color: white;
border: none;
padding: 12px 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
input[type="submit"]:hover {
background-color: #3e8e41;
}
</style>
<link rel="icon" type="image/x-icon" href="https://img.icons8.com/color-glass/48/lungs.png">
</head>
<body>
<div class="container">
<h1>Health Assessment Form</h1>
<form method="POST" action="{{ url_for('results') }}">
<!-- Add a label for the form title -->
<label for="form_title" class="sr-only">Health Assessment Form</label>
<input type="hidden" name="form_title" id="form_title" value="Health Assessment Form">
<label for="age">Age:</label>
<input type="number" name="age" id="age" min="0" max="100" required value="30">
<label for="gender">Gender:</label>
<select name="gender" id="gender" required>
<option value="" disabled>Select gender</option>
<option value="male" selected>Male</option>
<option value="female">Female</option>
</select>
<p>On a scale from 1 (lowest) to 9 (highest), update the following:</p>
<label for="air_pollution">Air Pollution:</label>
<input type="number" name="air_pollution" id="air_pollution" min="1" max="9" required value="1">
<label for="alcohol_use">Alcohol use:</label>
<input type="number" name="alcohol_use" id="alcohol_use" min="1" max="9" required value="1">
<label for="dust_allergy">Dust Allergy:</label>
<input type="number" name="dust_allergy" id="dust_allergy" min="1" max="9" required value="1">
<label for="occupational_hazards">Occupational Hazards:</label>
<input type="number" name="occupational_hazards" id="occupational_hazards" min="1" max="9" required value="1">
<label for="genetic_risk">Genetic Risk:</label>
<input type="number" name="genetic_risk" id="genetic_risk" min="1" max="9" required value="1">
<label for="chronic_lung_disease">Chronic Lung Disease:</label>
<input type="number" name="chronic_lung_disease" id="chronic_lung_disease" min="1" max="9" required value="1">
<label for="balanced_diet">Balanced Diet:</label>
<input type="number" name="balanced_diet" id="balanced_diet" min="1" max="9" required value="1">
<label for="obesity">Obesity:</label>
<input type="number" name="obesity" id="obesity" min="1" max="9" required value="1">
<label for="smoking">Smoking:</label>
<input type="number" name="smoking" id="smoking" min="1" max="9" required value="1">
<label for="passive_smoker">Passive Smoker:</label>
<input type="number" name="passive_smoker" id="passive_smoker" min="1" max="9" required value="1">
<label for="chest_pain">Chest Pain:</label>
<input type="number" name="chest_pain" id="chest_pain" min="1" max="9" required value="1">
<label for="coughing_blood">Coughing of Blood:</label>
<input type="number" name="coughing_blood" id="coughing_blood" min="1" max="9" required value="1">
<label for="fatigue">Fatigue:</label>
<input type="number" name="fatigue" id="fatigue" min="1" max="9" required value="1">
<label for="weight_loss">Weight Loss:</label>
<input type="number" name="weight_loss" id="weight_loss" min="1" max="9" required value="1">
<label for="shortness_of_breath">Shortness of Breath:</label>
<input type="number" name="shortness_of_breath" id="shortness_of_breath" min="1" max="9" required value="1">
<label for="wheezing">Wheezing:</label>
<input type="number" name="wheezing" id="wheezing" min="1" max="9" required value="1">
<label for="swallowing_difficulty">Swallowing Difficulty:</label>
<input type="number" name="swallowing_difficulty" id="swallowing_difficulty" min="1" max="9" required value="1">
<label for="clubbing">Clubbing of Finger Nails:</label>
<input type="number" name="clubbing" id="clubbing" min="1" max="9" required value="1">
<label for="frequent_cold">Frequent Cold:</label>
<input type="number" name="frequent_cold" id="frequent_cold" min="1" max="9" required value="1">
<label for="dry_cough">Dry Cough:</label>
<input type="number" name="dry_cough" id="dry_cough" min="1" max="9" required value="1">
<label for="snoring">Snoring:</label>
<input type="number" name="snoring" id="snoring" min="1" max="9" required value="1">
<input type="submit" value="Submit">
</form>
</div>
</body>
</html>