-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
102 lines (95 loc) · 3.94 KB
/
index.html
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
<!DOCTYPE html>
<html>
<title>Are you Worthy Enough to Get a Loan </title>
<script src= "https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
body,h1,h2,h3,h4,h5,h6 {font-family: "Lato", sans-serif;}
body, html {
height: 100%;
color: #777;
line-height: 1.8;
}
input[type=text] {
width: 100%;
padding: 12px 20px;
margin: 8px 0;
box-sizing: border-box;
}
button[type=submit] {
width: 100%;
background-color: #474747;
color: white;
padding: 14px 20px;
margin: 8px 0;
border: none;
border-radius: 4px;
cursor: pointer;
}
input[type=submit] {
background-color: #474747;
}
</style>
<body>
<h1 style="text-align:center"> Are you Worthy Enough to Get a Loan</h1>
<div class="login">
<form action="{{ url_for('predict')}}"method="post">
<h2>Please select your gender</h2>
<input type="radio" id="1" name="gender" value = "1"required/>
<label for="Male">Male</label><br>
<input type="radio" id = "0" name="gender" value = "0"/>
<label for="Female">Female</label><br>
<h2>Are you Married ?</h2>
<input type="radio" id = "1" name="Married" value = "1"required/>Yes<br>
<input type="radio" id = "0" name="Married" value = "0"/> No<br>
<h2> How's your Education ?</h2>
<input type="radio" id = "1" name="Education" value = "1"required/>Graduated<br>
<input type="radio" id = "0" name="Education" value = "0"/> Not Graduated
<br />
<h2>Are you self employed ?</h2>
<input type="radio" id = "1" name="Self Employed" value = "1" required/>Yes<br>
<input type="radio" id = "0" name="Self Employed" value = "0"/> No
<br />
<h2> How much your income ?</h2>
<input type="text" name="ApplicantIncome" placeholder="Applicant Income" required="required" />
<br />
<h2> How much your Partner income ?</h2>
<input type="text" name="CoapplicantIncome" placeholder="Coapplicant Income" required="required" />
<br />
<h2> Loan Amount Requested</h2>
<input type="text" name="LoanAmount" placeholder="Loan Amount" required="required" />
<br />
<h2>How many days over which the loan will be paid</h2>
<input type="text" name="Loan_Amount_Term" placeholder="Loan Amount Term" required="required" />
<br />
<h2>Have you paid all your debts</h2>
<input type="radio" name="Credit History" value = "1"required/>Yes, i have all my debts paid<br>
<input type="radio" name="Credit History" value = "0"required/> No, i haven't paid all my debts
<br />
<h2> Choose your Property Area</h2>
<input type="radio" id="0" name="PropertyArea" value="0"required>
<label for="Rural">Rural</label><br>
<input type="radio" id="1" name="PropertyArea" value="1">
<label for="Semiurban">Semiurban</label><br>
<input type="radio" id="2" name="PropertyArea" value="2">
<label for="Urban">Urban</label><br>
<h2> How Many Dependents Do You Have</h2>
<input type="radio" id="0" name="Dependents" value="0"required>
<label for="None">None</label><br>
<input type="radio" id="1" name="Dependents" value="1">
<label for="1">1</label><br>
<input type="radio" id="2" name="Dependents" value="2">
<label for="2">2</label><br>
<input type="radio" id="3+" name="Dependents" value="3">
<label for="3 and above">3 and above</label>
<br>
<br>
<button type="submit" class= "btn btn-primary btm-block btn-large">Submit</button>
</form>
<br>
<br>
<h1>{{output}}</h1>
</div>
</body>
</html>