-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
188 lines (156 loc) · 5.95 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<!doctype html>
<html lang="en">
<head>
<title>STREET CHILDREN DONATION PLATFORM</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" >
<link rel="stylesheet" href="assets/css/scrollbar.css" >
<link rel="stylesheet" href="assets/css/loader.css" >
<body >
<div id="scrollbar">
<nav class="navbar navbar-expand-sm navbar-dark bg-success">
<a class="navbar-brand" href="#">STREET CHILDREN DONATION PLATFORM</a>
<div class="collapse navbar-collapse" id="collapsibleNavId">
<ul class="navbar-nav mr-auto mt-2 mt-lg-0">
</ul>
</div>
</nav>
<div class="col-sm-12">
<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>
<div class="container-fluid mt-5" id="main" style="display:none">
<div class="row">
<!-- Left Column -->
<div class="col-sm-5">
<!-- List-Group Panel -->
<div class="card">
<div class="card-header p-b-0">
<h5 class="card-title"><i class="fa fa-random" aria-hidden="true"></i> Register Child</h5>
</div>
<div class="card-body p-b-0">
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label for="name">Name</label>
<input type="text" name="name" id="name" class="form-control" placeholder="Name" aria-describedby="name">
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label for="age">Age</label>
<input type="text" name="age" id="age" class="form-control" placeholder="Age" aria-describedby="age">
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label for="">Gender</label>
<select class="form-control" name="gender" id="gender">
<option>Select Gender</option>
<option value="Male">Male</option>
<option value="Female">Female</option>
</select>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label for="age">Location</label>
<input type="text" name="location" id="location" class="form-control" placeholder="Location" aria-describedby="location">
</div>
</div>
<div class="col-sm-12">
<div class="form-group">
<label for="url">Photo Url</label>
<input type="text" name="url" id="url" class="form-control" placeholder="url" aria-describedby="url">
</div>
</div>
<div class="col-sm-12">
<div class="form-group">
<button type="button" id="saveBtn" class="btn btn-lg btn-primary float-right">Save User</button>
</div>
</div>
</div>
</div>
</div>
</div><!--/Left Column-->
<div class="col-sm-7">
<!-- Text Panel -->
<div class="card">
<div class="card-header p-b-0">
<h5 class="card-title"><i class="fa fa-cog" aria-hidden="true"></i> Donate & Save life</h5>
</div>
<div class="card-body" >
<p class="card-text">This are the list of Children that live in dificult invinronment . Please donate for them to save their life.</p>
<div id="child-list">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script id="template" type="x-tmpl-mustache">
{{#childsArray}}
<div class="card" style="width:300px">
<img class="card-img-top" src="{{url}}" height="200" alt="Card image">
<div class="card-body">
<h4 class="card-title">Name : {{name}}</h4>
<p class="card-text">Location: {{location}}</p>
<p class="card-text">Age : {{age}}</p>
<div class="card-text">Total : {{amount}} AE</p>
<div class="card-text">
{{#isOpened}}
Status : <span class="badge badge-success">OPENED</span>
{{/isOpened}}
{{^isOpened}}
Status : <span class="badge badge-danger">CLOSED</span>
{{/isOpened}}
</div>
{{#isOpened}}
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label for="">Donate:</label>
<input type="text" name="amount" id={{id}} class="form-control" placeholder="Amount in AE" aria-describedby="amount">
</div>
</div>
<div class="col-sm-12">
<div class="form-group">
<button type="button" class="btn btn-primary float-right donateBtn m-2 p-2" id={{id}}>Donate</button>
</div>
</div>
</div>
{{/isOpened}}
</div>
<div class="card-footer">
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<button type="button" class="btn btn-success col-sm-12 float-right openBtn m-2 p-2" id={{id}}>Open Donatiton</button>
</div>
</div>
<div class="col-sm-12">
<div class="form-group">
<button type="button" class="btn btn-danger col-sm-12 float-right closeBtn m-2 p-2" id={{id}}>Close Donation</button>
</div>
</div>
</div>
</div>
</div>
{{/childsArray}}
</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/[email protected]/dist/aepp-sdk.browser-script.js"></script>
<script src="main.js"></script>
</body>
</html>