-
Notifications
You must be signed in to change notification settings - Fork 1
/
Regulators.html
93 lines (78 loc) · 3.1 KB
/
Regulators.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito+Sans:200,300,400,700,900|Roboto+Mono:300,400,500">
<link rel="stylesheet" href="fonts/icomoon/style.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/magnific-popup.css">
<link rel="stylesheet" href="css/jquery-ui.css">
<link rel="stylesheet" href="css/owl.carousel.min.css">
<link rel="stylesheet" href="css/owl.theme.default.min.css">
<link rel="stylesheet" href="css/bootstrap-datepicker.css">
<link rel="stylesheet" href="css/animate.css">
<link rel="stylesheet" href="fonts/flaticon/font/flaticon.css">
<link rel="stylesheet" href="css/fl-bigmug-line.css">
<link rel="stylesheet" href="css/aos.css">
<link rel="stylesheet" href="css/style.css">
<style>
form {
margin: 0 auto;
width:250px;
}
h2 {
text-align: center
}
</style>
<script type="text/javascript">
function submitForm() {
var id = document.getElementById("ID");
var email = document.getElementById("email");
var name = document.getElementById("name");
var location = document.getElementById("location");
var phone = document.getElementById("phone");
console.log("Organization added");
addOrganization(id, email, name, location, phone);
}
function submitForm2() {
var id = document.getElementById("resourceID");
var name = document.getElementById("rname");
var oid = document.getElementById("oid");
console.log("Resource " + JSON.stringify(name) + " added");
addResource(id, name, oid);
}
</script>
<script src="query.js"></script>
</head>
</head>
<body>
<div style="display:flex">
<h2>Add Organization</h2>
<form onsubmit="submitForm()">
Organization ID: <br>
<input type="text" id="ID"> <br>
Email: <br>
<input type="text" id="email"> <br>
Name: <br>
<input type="text" id="name"> <br>
Location: <br>
<input type="text" id="location"> <br>
Phone: <br>
<input type="text" id="phone"> <br>
<input type="submit" value="Submit">
<br> <br>
</form>
<h2>Add Resource</h2>
<form onsubmit="submitForm2()">
Resource ID: <br>
<input type="text" id="resourceID"> <br>
Name: <br>
<input type="text" id="rname"> <br>
Owner ID: <br>
<input type="text" id="oid"> <br>
<input type="submit" value="Submit">
</form>
</div>
</body>
</html>