-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
100 lines (85 loc) · 4.28 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="keywords" content="">
<meta name="description" content="">
<meta name="author" content="Pontus Sennerstam">
<title></title>
<script src="https://kit.fontawesome.com/124ac6c2b5.js" crossorigin="anonymous"></script>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous">
<link rel="stylesheet" href="css/css/style.min.css">
</head>
<body>
<section id="formSection" class="container mt-5 d-flex flex-column justify-content-center align-items-center vh-100">
<h1 class="mb-5"style="text-align: center;">Registrera användare</h1>
<form id="form" onsubmit="onSubmit(event)" novalidate>
<div class="row">
<div class="col">
<input id="firstName" type="text" class="form-control" placeholder="Förnamn">
<p id="firstName-error" class="ms-3 text-danger"></p>
</div>
<div class="col mb-3">
<input id="lastName" type="text" class="form-control" placeholder="Efternamn">
<p id="lastName-error" class="ms-3 text-danger"></p>
</div>
</div>
<div class="row g-3">
<div class="col-sm">
<input id="year" type="text" class="form-control" placeholder="År">
<p id="year-error" class="ms-3 text-danger" name="year-error"></p>
</div>
<div class="col-sm">
<input id="month" type="text" class="form-control" placeholder="Månad">
<p id="month-error" class="ms-3 text-danger"></p>
</div>
<div class="col-sm">
<input id="day" type="text" class="form-control" placeholder="Dag">
<p id="day-error" class="ms-3 text-danger mb-4"></p>
</div>
</div>
<div class="row g-3">
<div class="col-sm-7 mb-1">
<input id="row" type="text" class="form-control" placeholder="Gata">
<p id="row-error" class="ms-3 text-danger mb-4"></p>
</div>
<div class="col-sm mb-1">
<input id="pnr" type="text" class="form-control" placeholder="postnummer">
<p id="pnr-error" class="ms-3 text-danger mb-4"></p>
</div>
<div class="col-sm mb-1">
<input id="ort" type="text" class="form-control" placeholder="Ort">
<p id="ort-error" class="ms-3 text-danger mb-4"></p>
</div>
</div>
<div class="col">
<div class="input-group mb-1">
<span class="input-group-text" id="form-email">@</span>
<input id="email" type="email" class="form-control" placeholder="e-postaddress">
</div>
<p id="email-error" class="ms-3 text-danger mb-4"></p>
</div>
<div class="col">
<div class="input-group mb-1">
<span class="input-group-text" id="form-password">*</span>
<input id="password" type="password" class="form-control" placeholder="Lösenord">
</div>
<p id="password-error" class="ms-3 text-danger mb-4"></p>
</div>
<div class="col">
<div class="input-group mb-1">
<span class="input-group-text" id="form-confirm-password">*</span>
<input id="confirmPassword" type="password" class="form-control" placeholder="Bekräfta Lösenord">
</div>
<p id="confirmPassword-error" class="ms-3 text-danger mb-4"></p>
</div>
<button id="sendBtn" type="submit" class="btn btn-primary mb-3">Registrera</button>
<p id="sendBtn-error" class="ms-1 text-danger mb-4"></p>
</form>
</section>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-/bQdsTh/da6pkI1MST/rWKFNjaCP5gBSY4sEBT38Q/9RBh9AH40zEOg7Hlq2THRZ" crossorigin="anonymous"></script>
<script src="js/script.js"></script>
</body>
</html>