-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathoptions.html
56 lines (56 loc) · 2.33 KB
/
options.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
<html ng-app="optionsApp">
<head>
<title>LND Chrome Extension settings</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/bootstrap-theme.min.css">
<script type="text/javascript" src="assets/js/jquery-3.2.1.slim.min.js"></script>
<script type="text/javascript" src="assets/js/bootstrap.min.js"></script>
<script type="text/javascript" src="assets/js/angular.min.js"></script>
<script type="text/javascript" src="options.js"></script>
</head>
<body>
<div class="container">
<h1>LND Chrome Extension settings</h1>
<div ng-controller="ClientListController as clientList">
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>Endpoint</th>
<th>Login</th>
<th></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="client in clientList.clients">
<td>{{ client.endpoint }}</td>
<td>{{ client.login }}</td>
<td>
<div class="btn-toolbar pull-right">
<button type="button" class="btn btn-default btn-sm" title="Edit" aria-label="Edit" ng-click="clientList.editClient(client)"><span class="glyphicon glyphicon-edit" aria-hidden="true"></span></button>
<button type="button" class="btn btn-default btn-sm" title="Close" aria-label="Close" ng-click="clientList.removeClient(client)"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></button>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="form-group">
<label for="url">LND web client URL</label>
<input type="text" id="url" ng-model="clientList.endpoint" class="form-control" placeholder="Client URL"/>
</div>
<div class="form-group">
<label for="login">Login</label>
<input type="text" id="login" ng-model="clientList.login" class="form-control" placeholder="Login"/>
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" id="password" ng-model="clientList.password" class="form-control" placeholder="Password"/>
</div>
<button ng-if="clientList.endpoint" class="btn btn-default" ng-click="clientList.addClient()">Save</button>
<button ng-if="!clientList.endpoint" class="btn btn-default" ng-click="clientList.addClient()">Add</button>
</div>
</div>
</body>
</html>