-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
179 lines (178 loc) · 7.88 KB
/
Copy pathindex.html
File metadata and controls
179 lines (178 loc) · 7.88 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
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
<!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">
<title>DDP Migrator UI</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/ddpmigratorui.css">
<script src="js/jquery.min.js"></script>
</head>
<body>
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container-fluid">
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li>
<a href="#" onclick="openRepo()"><span class="glyphicon glyphicon-hdd" aria-hidden="true"></span> Open repo</a>
</li>
<li class="divider-vertical"></li>
<li>
<a href="#" onclick="refreshLocalAndRemote()"><span class="glyphicon glyphicon-refresh" aria-hidden="true" id="navRefreshIcon"></span> Refresh</a>
</li>
<li class="divider-vertical"></li>
<li>
<a href="#" onclick="pushSelectedDdps()"><span class="glyphicon glyphicon-upload" aria-hidden="true"></span> Push selected</a>
</li>
<li class="divider-vertical"></li>
<li>
<a href="#" onclick="pullSelectedDdps()"><span class="glyphicon glyphicon-download" aria-hidden="true"></span> Pull selected</a>
</li>
<li class="divider-vertical"></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="#" data-toggle="modal" data-target="#sfdcLoginModal"><span class="glyphicon glyphicon-cloud" aria-hidden="true"></span> <span id="sfdcLoggedIn">Log in</span></a>
</li>
</ul>
</div>
</div>
</nav>
<!-- Modals go in here -->
<div class="modal fade" tabindex="-1" role="dialog" id="sfdcLoginModal" aria-labelledby="sfdcLoginModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="sfdcLoginModalLabel">Log in Salesforce</h4>
</div>
<div class="modal-body" id="sfdcLoginForm">
<div class="alert alert-danger hidden" role="alert" id="sfdcLoginAlert">
<span></span>
</div>
<form>
<div class="form-group">
<label for="sfdcLoginUsername">Username</label>
<input type="email" class="form-control" id="sfdcLoginUsername" placeholder="Email">
</div>
<div class="form-group">
<label for="sfdcLoginPassword" class="control-label">Password</label>
<input type="password" class="form-control" id="sfdcLoginPassword" placeholder="Password">
</div>
<div class="checkbox">
<label>
<input type="checkbox" id="sfdcLoginIsProduction">
<label for="sfdcLoginIsProduction">
<span class="fa fa-lg fa-check-square-o"></span>
<span class="fa fa-lg fa-square-o"></span>
Production
</label>
</label>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default btn-sm" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary btn-sm" onclick="logInSalesforce('sfdcLogin')"><span class="glyphicon glyphicon-cloud" id="sfdcLoginSpinnerIcon"></span> Log in</button>
</div>
</div> <!-- /.modal-content -->
</div> <!-- /.modal-dialog -->
</div> <!-- /.modal -->
<!-- DDP Migrator console modal -->
<div class="modal fade" tabindex="-1" role="dialog" id="ddpMigratorModal" aria-labelledby="ddpMigratorModalLabel">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="ddpMigratorModalLabel">DDP Migrator Output</h4>
</div>
<div class="modal-body">
<div class="alert alert-info" role="alert" id="ddpMigratorExitcode">
<span></span>
</div>
<pre id="ddpMigratorOutput">
</pre>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary btn-sm hidden" data-dismiss="modal" id="ddpMigratorCloseButton">Close</button>
</div>
</div> <!-- /.modal-content -->
</div> <!-- /.modal-dialog -->
</div> <!-- /.modal -->
<div class="container-fluid">
<div class="row">
<div class="left-pane col-sm-6 no-float">
<h3>Local</h3>
<h5 id="localDirName"> </h5>
<table class="table table-condensed">
<thead>
<tr>
<th class="valign-center">
<input type="checkbox" id="local-all-ddps-checkbox" onchange="onTableHeaderCheckboxChange('localDdps')"/>
<label for="local-all-ddps-checkbox">
<span class="fa fa-lg fa-check-square-o"></span>
<span class="fa fa-lg fa-square-o"></span>
</label>
</th>
<th>
<form class="form-inline">
<div class="form-group">
<label for="localDdpFilter">Name</label>
<input type="text" class="form-control input-sm" id="localDdpFilter" onkeyup="filterDdps('localDdps', this)">
</div>
</form>
</th>
<th class="valign-center text-center">Push</th>
</tr>
</thead>
<tbody id="localDdps"></tbody>
</table>
</div>
<div class="right-pane col-sm-6 no-float">
<h3>Salesforce</h3>
<h5 id="sfdcLoggedInUser"> </h5>
<table class="table table-condensed">
<thead>
<tr>
<th class="valign-center">
<input type="checkbox" id="remote-all-ddps-checkbox" onchange="onTableHeaderCheckboxChange('remoteDdps')">
<label for="remote-all-ddps-checkbox">
<span class="fa fa-lg fa-check-square-o"></span>
<span class="fa fa-lg fa-square-o"></span>
</label>
</th>
<th>
<form class="form-inline">
<div class="form-group">
<label for="remoteDdpFilter">Name</label>
<input type="text" class="form-control input-sm" id="remoteDdpFilter" onkeyup="filterDdps('remoteDdps', this)">
</div>
</form>
</th>
<th class="valign-center text-center">Pull</th>
</tr>
</thead>
<tbody id="remoteDdps"></tbody>
</table>
</div>
</div> <!-- .row -->
</div> <!-- .container-fluid -->
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/ddpmigratorui.js"></script>
<script>
function setUpEnterHandlingForLoginModal() {
$('#sfdcLoginModal > .modal-dialog > .modal-content').keypress(function(e) {
if (e.which == 13) {
logInSalesforce('sfdcLogin')
}
})
}
$(document).ready(function() {
setUpEnterHandlingForLoginModal()
})
</script>
</body>
</html>