-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
109 lines (99 loc) · 4.61 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
103
104
105
106
107
108
109
<!doctype html>
<html lang="en">
<head>
<title>Democratic part registration</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="assets/css/bootstrap.min.css" >
<body>
<nav class="navbar navbar-expand-sm navbar-dark bg-dark">
<a class="navbar-brand" href="#">Navbar</a>
<button class="navbar-toggler d-lg-none" type="button" data-toggle="collapse" data-target="#collapsibleNavId" aria-controls="collapsibleNavId"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="collapsibleNavId">
<ul class="navbar-nav mr-auto mt-2 mt-lg-0">
<li class="nav-item active">
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="dropdownId" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dropdown</a>
<div class="dropdown-menu" aria-labelledby="dropdownId">
<a class="dropdown-item" href="#">Action 1</a>
<a class="dropdown-item" href="#">Action 2</a>
</div>
</li>
</ul>
<form class="form-inline my-2 my-lg-0">
<input class="form-control mr-sm-2" type="text" placeholder="Search">
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
</form>
</div>
</nav>
<div id="loader" style="text-align: center;">
<img src="assets/images/loading.svg" alt="">
<div><b>Please Wait!! Loading from blockchain ...</b></div>
</div>
<div class="row">
<div class="col-md-6 mt-5 offset-md-1">
<div class="card">
<div class="card-header bg-success">
Header
</div>
<div class="card-body">
<div class="form-group">
<label for="name">Part Name</label>
<input type="text"
class="form-control" name="name" id="name" aria-describedby="helpId" placeholder="">
<small id="helpId" class="form-text text-muted">Enter part name</small>
</div>
<div class="form-group">
<label for="asset">Part Asset</label>
<input type="text"
class="form-control" name="asset" id="asset" aria-describedby="helpId" placeholder="">
<small id="helpId" class="form-text text-muted">Enter part Asset</small>
</div>
<div class="form-group">
<button type="submit" id="saveBtn" class="btn btn-primary float-right">Save</button>
</div>
</div>
</div>
</div>
<div class="col-md-4 mt-5">
<div class="card">
<div class="card-header">
List of Democratic parts [<span id="total"></span>]
</div>
<div class="card-body" id="part-list">
</div>
</div>
</div>
</div>
<script id="template" type="x-tmpl-mustache">
{{#partArray}}
<div class="card mt-2 bg-info">
<div class="card-header">
{{name}} [{{owner}}]
</div>
<div class="card-body">
{{asset}}
</div>
</div>
{{/partArray}}
</script>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="assets/js/jquery-3.3.1.slim.min.js" ></script>
<script src="assets/js/popper.min.js" ></script>
<script src="assets/js/bootstrap.min.js" ></script>
<script src="assets/js/mustache.min.js" ></script>
<script src="https://unpkg.com/@aeternity/aepp-sdk/dist/aepp-sdk.browser-script.js"></script>
<script src="main.js"></script>
</body>
</html>