Repository navigation
Expand file tree
/
Copy pathindexAPI.html
More file actions
88 lines (87 loc) · 4.14 KB
/
Copy pathindexAPI.html
File metadata and controls
88 lines (87 loc) · 4.14 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
<!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">
<title>Security Controls Inventory</title>
<!-- Add Bootstrap and Popper.js scripts -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous"/>
<!-- Custom CSS-->
<link rel="stylesheet" href="styleAPI.css">
</head>
<body>
<div class="container">
<h2 class="mt-5">Security Controls Inventory</h2>
<div class="row mb-5">
<div class="form-group col-md-6 mb-3">
<label for="mainID">Main Control ID</label>
<input
type="text"
name="mainID"
class="form-control"
id="mainID"
placeholder="Enter Main ID"
/>
</div>
<div class="form-group col-md-6 mb-3">
<label for="mainDescription">Main Control Description</label>
<input
type="text"
name="mainDescription"
class="form-control"
id="mainDescription"
placeholder="Enter Control Description"
/>
</div>
<div class="form-group col-md-6 mb-3">
<label for="domain">Security Domain</label>
<select class="form-control" id="domain">
<option value="">Select an option</option>
<option value="Security and Risk Management">Security and Risk Management</option>
<option value="Asset Security">Asset Security</option>
<option value="Security Architecture and Engineering">Security Architecture and Engineering</option>
<option value="Communication and Network Security">Communication and Network Security</option>
<option value="Identity and Access Management (IAM)">Identity and Access Management (IAM)</option>
<option value="Security Assessment and Testing">Security Assessment and Testing</option>
<option value="Security Operations">Security Operations</option>
<option value="Software Development Security">Software Development Security</option>
</select>
</div>
<div class="form-group col-md-6 mb-3">
<label for="scope">Scope</label>
<select class="form-control" id="scope">
<option value="">Select an option</option>
<option value="Yes">Yes</option>
<option value="No">No</option>
</select>
</div>
<div class="col-lg-12 mt-2">
<button class="btn btn-success" id="Add Control" onclick="AddData()">Add Control</button>
<button class="btn btn-primary" id="Update" style="display: none;" onclick="updateControl()">Update</button>
</div>
</div>
<hr>
<div class="row mt-2">
<div class="col-12">
<table class="table table-bordered" id="crudTable">
<thead>
<button class="btn btn-secondary float-end" onclick="downloadCSV()">Download CSV</button>
<tr>
<th>Main Control ID</th>
<th>Main Control Description</th>
<th>Domain</th>
<th>Scope</th>
<th>Actions</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</div>
</div>
<!-- Add Bootstrap and Popper.js scripts -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
<script src="scriptAPI.js"></script>
</body>
</html>