status.html 25.7 KB
Newer Older
1
<style>
2
3
4
5
.scrollable-panel {
	max-height:350px;
	overflow-y:scroll;
}
6
7
8
9
.fixedsize-panel {
	max-height:350px;
	height:350px;
}
10
.smalldiv {
11
12
	max-height:400px;
	height:400px;
13
}
14
15
16
17
18
19
20
21
.history-tstamp {
	min-width: 100px;
	width:100px;
	max-width: 100px;
}
pre {
	white-space: pre-wrap;
}
22
23
24
.panel-body-nopad {
	padding: 5px;
}
25
</style>
26
27
28
<div class='row'>
  <div class='col-lg-6  col-lg-offset-3
       col-md-8  col-md-offset-2
29
       col-sm-8  col-sm-offset-2
30
       col-xs-12 col-xs-offset-0'>
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
    <div class='panel panel-default' id='status_panel'>
      <div class="panel-heading">
	<h5>
	  <a data-toggle="collapse" id="profile_status_toggle"
	     href="#profile_status_collapse">
	    <span id='status_message'></span>
	    <span class="glyphicon glyphicon-chevron-right pull-right"></span>
	  </a>
	</h5>
      </div>
      <div id="profile_status_collapse"
	   class="panel-collapse collapse
		  <% if (status_panel_show) { %>in<% } %>">
	<div class='panel-body'>
	  <table class='table table-condensed nospaceafter border-none'>
46
47
48
49
50
51
52
53
54
55
56
57
58
59
	  <!-- The spinner will start out invisible -->
	  <tr>
	    <td colspan=2 class='border-none'>
	      <div id='status_progress_outerdiv' class='hidden'>
		<div id='status_progress_div'
                     class='progress progress-striped active nospaceafter'>
		  <div class='progress-bar' role='progressbar'
                       id='status_progress_bar'
                       style='width: 33%;'></div>
		</div>
	      </div>
	    </td>
	  </tr>
	  <tr>
60
61
	    <td class='border-none'>Name:</td>
	    <td class='border-none'><%- name %></td>
62
63
64
65
66
67
68
69
70
	  </tr>
	  <tr>
	    <td class='border-none'>State:</td>
	    <td class='border-none'>
              <span id='quickvm_status'>
		<font></font>
              </span>
	    </td>
	  </tr>
71
	  <% if (profileUUID && profileUUID != "") { %>
72
73
	  <tr>
	    <td class='border-none'>Profile:</td>
74
75
76
	    <td class='border-none'>
	      <a target=_blank href='show-profile.php?uuid=<%- profileUUID %>'>
		 <%- profileName %></a></td>
77
	  </tr>
78
	  <% } %>
79
80
81
82
83
84
85
86
87
	  <% if (reporef !== undefined) { %>
	    <tr>
	      <td class='border-none'>RefSpec:</td>
	      <td class='border-none'>
		<span><%= reporef %></span>
		(<%= repohash %>)
	      </td>
	    </tr>
	  <% } %>
88
	  <% if (isadmin) { %>
89
90
91
92
	    <tr>
	      <td class='border-none'>Creator:</td>
	      <td class='border-none'>
		<% if (registered) { %>
93
		  <a href="user-dashboard.php?user=<%- creatorUid %>">
94
95
96
97
98
99
100
101
		    <%- creatorUid %></a>
		<% } else { %>
	          <a href="mailto:<%- creatorEmail %>"><%- creatorEmail %></a>
	        <% } %>
	      </td>
	    </tr>
	    <% if (project) { %>
	      <tr>
102
103
104
105
106
107
108
109
110
111
112
		<% if (project == group) { %>
		  <td class='border-none'>Project:</td>
		  <td class='border-none'>
		    <a href="show-project.php?pid=<%- project %>">
		      <%- project %></a></td>
		<% } else { %>
		  <td class='border-none'>Group:</td>
		  <td class='border-none'>
		    <a href="show-group.php?pid=<%- project %>&gid=<%- group %>">
		      <%- project %>:<%- group %></a></td>
		<% } %>
113
114
	      </tr>
	    <% } %>
115
	  <% } %>
Leigh B Stoller's avatar
Leigh B Stoller committed
116
117
118
119
	  <tr>
	    <td class='border-none'>Created:</td>
	    <td class='border-none format-date'><%- sliceCreated %></td>
	  </tr>
120
121
	  <tr>
	    <td class='border-none'>Expires:</td>
122
123
	    <td class='border-none'>
	      <span id='instance_expiration'>
Leigh B Stoller's avatar
Leigh B Stoller committed
124
125
		<span id='quickvm_expires' class='format-date'>
		  <%- sliceExpires %></span>
126
127
		(<span id='quickvm_countdown'></span>)
	      </span>
128
129
	    </td>
	  </tr>
130
131
	  </table>
	  <div class='pull-left'>
Leigh B Stoller's avatar
Leigh B Stoller committed
132
	    <a class='btn btn-info btn-xs pull-left hidden'
133
               style='margin-right: 10px;'
Leigh B Stoller's avatar
Leigh B Stoller committed
134
135
	       id='sliverinfo_button'
               href='#'
136
137
138
139
140
141
142
143
144
145
146
147
	       target='_blank'
               type='button'>Sliver</a>
	    <div id='sliverinfo_dropdown' class='hidden'>
	      <select style='margin-right: 0px;'>
		<option value='selectme'>Slivers</option>
	      </select>
	      <a class='btn btn-info btn-tiny'
		 style='margin-right: 10px;'
		 href='#'
		 target='_blank'
		 type='button'>Go</a>
	    </div>
148
	  </div>
149
150
151
152
153
154
155
156
	  <div class='pull-left'>
	    <a class='hidden'
               style='margin-right: 10px;'
	       id='logfile_button'
               href='#'
	       target='_blank'
               type='button'>Logfile</a>
	  </div>
Leigh B Stoller's avatar
Leigh B Stoller committed
157
	  <% if (isadmin) { %>
158
159
	  <div class='pull-left'
	       data-toggle='popover'
160
	       data-delay='{"hide":1000, "show":500}'
161
162
	       data-content="When checked, only administrator can extend
			     this experiment. No free time is granted to
163
			     user at all."> 
Leigh B Stoller's avatar
Leigh B Stoller committed
164
165
	    <label class="checkbox-inline" style='margin-right: 10px;'>
	      <input type="checkbox" id="lockout_checkbox"
Leigh B Stoller's avatar
Leigh B Stoller committed
166
		     <% if (lockout) { %>checked<% } %> >Lockout</label>
Leigh B Stoller's avatar
Leigh B Stoller committed
167
	  </div>
Leigh B Stoller's avatar
Leigh B Stoller committed
168
169
170
171
172
173
174
175
176
177
178
179
180
	  <div class='pull-left'
	       data-toggle='popover'
	       data-delay='{"hide":1000, "show":500}'
	       data-content="When checked, the experiment 
			     cannot be terminated until the lockdown bit
			     is cleared by an admininstrator, or if the user
			     verifies 
			     the lockdown code when clicking the Terminate
			     button."> 
	    <label class="checkbox-inline" style='margin-right: 10px;'>
	      <input type="checkbox" id="lockdown_checkbox"
		     <% if (lockdown) { %>checked<% } %> >Lockdown</label>
	  </div>
181
182
183
184
185
186
187
188
189
190
191
	  <div class='pull-left'
	       data-toggle='popover'
	       data-delay='{"hide":1000, "show":500}'
	       data-content="When checked, the experiment is put into
			     Quarantine (emulab panic) mode.">
	    <label class="checkbox-inline" style='margin-right: 10px;'>
	      <input type="checkbox" id="quarantine_checkbox"
		     <% if (paniced) { %>checked<% } %> >
	      <span <% if (paniced) { %>class="text-danger"<% } %> >
		Quarantined</span></label>
	  </div>
Leigh B Stoller's avatar
Leigh B Stoller committed
192
	  <% } %>
193
	  <div class='pull-right'>
194
	    <% if (registered && !isfadmin) { %>
195
196
197
198
199
200
201
202
	      <span>
		<button class='btn btn-xs btn-success hidden' disabled
			style='margin-right: 10px;'
			id='linktest-stop-button' type=button
			data-toggle='popover'
			data-content='Stop a running or wedged linktest'>
 		  Stop Linktest</button>
	      </span>
203
204
205
206
	    <button class='btn btn-xs btn-primary hidden' disabled
		    id='clone_button' type=button>
              Clone</button>
	    <button class='btn btn-xs btn-primary hidden' disabled
Leigh B Stoller's avatar
Leigh B Stoller committed
207
		    id='snapshot_button' type=button>
208
              Snapshot</button>
209
	    <% if (profileUUID && profileUUID != "") { %>
Leigh B Stoller's avatar
Leigh B Stoller committed
210
211
	    <a class='btn btn-xs btn-primary'
		    href='manage_profile.php?action=copy&uuid=<%= profileUUID %>'
212
213
		    id='copy_button' type=button
		    data-toggle='popover'
Leigh B Stoller's avatar
Leigh B Stoller committed
214
	            data-delay='{"hide":1500, "show":500}'
215
216
217
218
219
		    data-html='true'
		    data-content="When you <em>copy</em> (instead of
		    clone), you are creating a new profile that
		    uses the same source code and metadata (description,
		    instructions) as the original profile, but without
Leigh B Stoller's avatar
Leigh B Stoller committed
220
221
		    creating a new disk image. Instead, the new profile uses
		    whatever images the original profile uses."> 
Leigh B Stoller's avatar
Leigh B Stoller committed
222
	      Copy</a>
223
	    <% } %>
224
	    <% } %>
225
226
	    <button class='btn btn-xs btn-success' disabled
		    id='extend_button' type=button>
227
228
229
230
231
232
233
234
              <% if (isfadmin) { %>Extension History<% } else { %>Extend<% } %>
	    </button>
	    <% if (!isfadmin) { %>
	      <button class='btn btn-xs btn-danger' disabled
		      id='terminate_button' type=button
		      data-toggle='modal' data-target='#terminate_modal'>
		Terminate</button>
	    <% } %>
235
	  </div>
236
237
238
239
240
	</div>
      </div>
    </div>
  </div>
</div>
241
242
243
244
245
246
247
248
249
250
251
<!-- Add a hidden div for errors returned by the instantiation. -->
<div class='row hidden' id='error_panel'>
  <div class='col-lg-6  col-lg-offset-3
       col-md-8  col-md-offset-2
       col-sm-8  col-sm-offset-2
       col-xs-12 col-xs-offset-0'>
    <div class="panel panel-danger">
      <div class="panel-heading">
        <center><h4>Error Message</h4></center>
      </div>
      <div class="panel-body">
252
	<code style="white-space: pre-wrap" id="error_panel_text"></code>
253
      </div>
254
      <div class="panel-footer">
255
256
257
	Not sure what the error message means or how to proceed? Join the
        <a href='<%= errorURL %>'>users group</a> and ask a question. Be
        sure to include the error message in your question, and the name
258
259
	of your experiment (hint, its '<%= name %>') and the name of your
	profile (hint, its '<%= profileName %>').
260
      </div>
261
262
263
    </div>
  </div>
</div>
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
<!-- Add a div for the instructions if there are instructions. The cliet
     will actually fill in the div though, since it is markdown and that
     is more easily done on the client side for now. -->
<div class='row hidden' id='instructions_panel'>
  <div class='col-lg-6  col-lg-offset-3
       col-md-8  col-md-offset-2
       col-sm-8  col-sm-offset-2
       col-xs-12 col-xs-offset-0'>
    <!-- Collapsable panel -->
    <div class="panel panel-info">
      <div class="panel-heading">
	<h5>
	  <a data-toggle="collapse" href="#instructions">Profile Instructions
	    <span class="glyphicon glyphicon-chevron-right pull-right"></span>
	  </a>
	</h5>
      </div>
      <div id="instructions" class="panel-collapse collapse">
	<div class="panel-body">
	  <div id="instructions_text"></div>
	</div>
      </div>
    </div>
  </div>
</div>
<!-- The topo diagram goes inside this div, when it becomes available. -->
<div class='row'>
  <div class='col-lg-10  col-lg-offset-1
       col-md-10  col-md-offset-1
       col-sm-10  col-sm-offset-1
       col-xs-12 col-xs-offset-0'>
    <div class='panel panel-default invisible' id='showtopo_container'>
      <div class='panel-body'>
	<div id='quicktabs_div'>
298
	  <ul id='quicktabs_ul' class='nav nav-tabs'>
299
300
301
302
303
304
305
	    <li class='active'>
              <a href='#profile' data-toggle='tab'>Topology View</a>
            </li>
	    <li>
              <a href='#listview' data-toggle='tab'>List View</a>
            </li>
	    <li>
306
307
              <a href='#manifest' id='show_manifest_tab'
		 data-toggle='tab'>Manifest</a>
308
            </li>
309
310
	    <li class="hidden" id="show_idlegraphs_li">
              <a href='#Idlegraphs' id='show_idlegraphs_tab'
Leigh B Stoller's avatar
Leigh B Stoller committed
311
312
313
314
315
316
		 data-toggle='tab'>Graphs
		<button class='close hidden'
			style="margin-top:0px;"
			type='button' id="graphs-refresh-button">
		  <span class='glyphicon glyphicon-repeat'></span></button>
	      </a>
317
            </li>
318
319
320
321
322
323
324
325
326
	    <li class="hidden" id="show_openstack_li">
              <a href='#Openstack' id='show_openstack_tab'
		 data-toggle='tab'>Openstack Data
		<button class='close hidden'
			style="margin-top:0px;"
			type='button' id="openstack-refresh-button">
		  <span class='glyphicon glyphicon-repeat'></span></button>
	      </a>
            </li>
327
328
329
	  </ul>
	  <div id='quicktabs_content' class='tab-content'>
            <div class='tab-pane active' id='profile'>
330
	      <div id='showtopo_statuspage' class='jacks'></div>
331
              <small>Click on a node for more options. 
332
                Click and drag to move things around.</small>
333
	      <% if (registered) { %>
334
335
336
		<button class='btn btn-xs btn-success pull-right' disabled
			id='refresh_button' type=button
			data-toggle='popover'
Leigh B Stoller's avatar
Leigh B Stoller committed
337
			data-delay='{"hide":1000, "show":500}'
338
339
			data-content='Ask cluster for updated node status'>
		  Refresh Status</button>
340
		<span>
Leigh B Stoller's avatar
Leigh B Stoller committed
341
342
		  <button class='btn btn-xs btn-success pull-right hidden'
			  disabled
343
			  data-toggle='popover'
Leigh B Stoller's avatar
Leigh B Stoller committed
344
			  data-delay='{"hide":1000, "show":500}'
345
346
347
348
349
			  data-content='Run linktest on the topology'
			  style='margin-right: 10px;'
			  id='linktest-modal-button' type=button>
		    Run Linktest</button>
		</span>
350
		<% if (1) { %>
Leigh B Stoller's avatar
Leigh B Stoller committed
351
352
353
354
355
356
357
358
359
360
361
362
363
		  <span>
		    <button class='btn btn-xs btn-success pull-right'
			    disabled
			    data-toggle='popover'
			    data-delay='{"hide":1000, "show":500}'
			    data-content='Reload the topology in case it has
					  changed at the cluster'
			    style='margin-right: 10px;'
			    id='reload-topology-button' type=button>
		      Reload Topo</button>
		  </span>
		<% } %>
	      <% } %>
364
365
366
367
368
369
370
	    </div>
            <div class='tab-pane' id='listview'>
	      <div id='showtopo_listview'>
		<table class='table table-striped table-hover table-condensed'
                       id='listview_table'>
                  <thead>
                    <tr>
371
                      <th>ID</th>
372
                      <th>Node</th>
373
                      <th>Type</th>
374
375
376
                      <th>SSH command <small>
			  (if you provided your own key)</small>
                      </th>
Leigh B Stoller's avatar
Leigh B Stoller committed
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
                      <th style='text-align: left;'>
			<div id='listview-action-menu' class='dropdown'>
			  <input type="checkbox" id="select-all">
			  <button id='action-menu-button' type='button'
				  class='btn btn-primary btn-sm dropdown-toggle'
				  data-toggle='dropdown'>
			    <span class='glyphicon glyphicon-cog'></span>
			  </button>
			  <ul class='dropdown-menu text-left' role='menu'>
			    <li><a href='#' name='reboot'>Reboot Selected</a>
			    </li>
			    <li><a href='#' name='reload'>Reload Selected</a>
			    </li>
			  </ul>
			</div>
		      </th>
		      <th style='text-align: center;'>Actions</th>
394
395
396
397
398
399
400
401
                    </tr>
                  </thead>
                  <tbody>
                  </tbody>
		</table>
              </div>
            </div>
	    <div class='tab-pane' id='manifest'>
402
              <div id='manifest_textarea' style='width: 100%;'></div>
403
	    </div>
404
405
406
407
408
409
410
411
412
413
414
415
416
	    <div class='tab-pane hidden' id='Idlegraphs'>
	      <div class="hidden"id="nodata">
		<br>
		<center>
		  There is insufficient data to graph, please check back later.
		</center>
	      </div>
	      <div class='row'>
		<div class='panel panel-default hidden'
		     id="loadavg-panel-div">
		  <div class="panel-heading">
		    <h5>Load Average Graph</h5>
		  </div>
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
		  <div class='panel-body panel-body-nopad'>
		    <!-- The col setting gives us a "relative" position div -->
		    <div class='col-xs-12 col-xs-offset-0'
			 style="padding:0px;">
		      <!-- So now we can use an "absolute" position to put
		           the radio button in the upper left of the graph
		           where it will not overwrite anything.
		      -->
		      <div class="hidden toggles"
			   style='position:absolute;left:5px;top:0px'>
			<label class="radio-inline">
			  <input type="radio" name="loadav-radio"
				 checked="checked" value="max"> Max
			</label>
			<label class="radio-inline">
			  <input type="radio" name="loadav-radio"
				 value="avg"> Avg
			</label>
		      </div>
		      <div id="loadavg-chart"
437
			class='fixedsize-panel with-3d-shadow with-transitions'>
438
439
			<svg></svg>
		      </div>
440
441
442
443
444
445
446
447
448
449
		    </div>
		  </div>
		</div>
	      </div>
	      <div class='row'>
		<div class='panel panel-default hidden'
		     id="ctrl-traffic-panel-div">
		  <div class="panel-heading">
		    <h5>Control Traffic Graph</h5>
		  </div>
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
		  <div class='panel-body panel-body-nopad'>
		    <!-- The col setting gives us a "relative" position div -->
		    <div class='col-xs-12 col-xs-offset-0'
			 style="padding:0px;">
		      <!-- So now we can use an "absolute" position to put
		      the radio button in the upper left of the graph
		      where it will not overwrite anything.
		      -->
		      <div class="hidden toggles"
			   style='position:absolute;left:5px;top:0px'>
			<label class="radio-inline">
			  <input type="radio" name="ctrl-radio"
				 checked="checked" value="max"> Max
			</label>
			<label class="radio-inline">
			  <input type="radio" name="ctrl-radio"
				 value="avg"> Avg
			</label>
		      </div>
		      <div id="ctrl-traffic-chart"
470
			class='fixedsize-panel with-3d-shadow with-transitions'>
471
472
			<svg></svg>
		      </div>
473
474
475
476
477
478
479
480
481
482
		    </div>
		  </div>
		</div>
	      </div>
	      <div class='row'>
		<div class='panel panel-default hidden'
		     id="expt-traffic-panel-div">
		  <div class="panel-heading">
		    <h5>Experiment Traffic Graph</h5>
		  </div>
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
		  <div class='panel-body panel-body-nopad'>
		    <!-- The col setting gives us a "relative" position div -->
		    <div class='col-xs-12 col-xs-offset-0'
			 style="padding:0px;">
		      <!-- So now we can use an "absolute" position to put
		      the radio button in the upper left of the graph
		      where it will not overwrite anything.
		      -->
		      <div class="hidden toggles"
			   style='position:absolute;left:5px;top:0px'>
			<label class="radio-inline">
			  <input type="radio" name="ctrl-radio"
				 checked="checked" value="max"> Max</label>
			<label class="radio-inline">
			  <input type="radio" name="ctrl-radio"
				 value="avg"> Avg</label>
		      </div>
		      <div id="expt-traffic-chart"
501
			class='fixedsize-panel with-3d-shadow with-transitions'>
502
503
			<svg></svg>
		      </div>
504
505
506
507
508
		    </div>
		  </div>
		</div>
	      </div>
	    </div>
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
	    <div class='tab-pane hidden' id='Openstack'>
	      <div class="hidden" id="nodata">
		<br>
		<center>
		  There is no Openstack data (yet), please check back later.
		</center>
	      </div>
	      <div id="openstack-div" class="hidden">
		<ul id='chart-tabs' class='nav nav-tabs'>
		  <li class="active">
		    <a href='#jsondata' data-toggle='tab'>Raw Data</a>
		  </li>
		  <li>
		    <a href='#activity' id="activity-tab"
		       data-toggle='tab'>Activity</a>
		  </li>
		</ul>
		<div id='chart-contents' class='tab-content'>
		  <div class='tab-pane active' id='jsondata'></div>
		  <div class='tab-pane' id='activity'>
		    <div class='smalldiv with-3d-shadow with-transitions'>
		      <svg></svg>
		    </div>
		  </div>
		  <div class='tab-pane hidden' id='template'>
		    <div class='panel panel-default cpu'>
		      <div class="panel-heading">
			<h5>CPU Utilization</h5>
		      </div>
		      <div class='panel-body panel-body-nopad'>
			<div class='smalldiv with-3d-shadow with-transitions'>
			  <svg></svg>
			</div>
		      </div>
		    </div>
		    <div class='panel panel-default netout'>
		      <div class="panel-heading">
			<h5>Outgoing Traffic</h5>
		      </div>
		      <div class='panel-body panel-body-nopad'>
			<div class='smalldiv with-3d-shadow with-transitions'>
			  <svg></svg>
			</div>
		      </div>
		    </div>
		    <div class='panel panel-default netin'>
		      <div class="panel-heading">
			<h5>Incoming Traffic</h5>
		      </div>
		      <div class='panel-body panel-body-nopad'>
			<div class='smalldiv with-3d-shadow with-transitions'>
			  <svg></svg>
			</div>
		      </div>
		    </div>
		  </div>
		</div>
	      </div>
	    </div>
568
569
570
571
572
573
574
575
	  </div>
	</div>
      </div>
    </div>
  </div>
</div>
<div>
  <!-- place to hang the modals for now -->
576
577
578
579
580
581
582
  <div id='snapshot_modal' class='modal fade'>
    <div class='modal-dialog'>
      <div class='modal-content'>
	<div class='modal-header'>
          <center><h3>Confirm to Snapshot</h3>
	</div>
	<div class='modal-body'>
Leigh B Stoller's avatar
Leigh B Stoller committed
583
584
585
586
587
588
589
590
591
592
	  <div id='snapshot_update_profile_div' class='hidden'>
	    <center>
	      <b>Update Profile?</b>
	      <br>
	      <input type=checkbox
		     id='snapshot_update_profile' checked value=yes>
	    </center>
	    Check this box if you want us to update your profile to use the
	    new disk image. All nodes running the same image will be
	    updated. If you uncheck the box, you will need to modify the
593
594
	    profile source code yourself (you will receive email with the
	    name/url of the new image).
595
596
597
	    <br>
	    <br>
	  </div>
598
599
600
601
602
603
604
605
606
607
608
609
	  <div id='snapshot_update_script_div' class='hidden'>
	    <center>
	      <b>Please Note!</b>
	    </center>
	    Since your profile is a <em>geni-lib python</em> script, you
	    will need to update the images inside the script yourself, we
	    cannot do this for you.
	    At the end of the snapshot, we will tell you the new image name
	    so you can edit your script. 
	    <br>
	    <br>
	  </div>
610
611
612
613
614
615
616
617
618
619
620
	  <div id='snapshot_update_prepare_div'>
	    <center>
	      <b>Did you add any accounts or groups to your image?</b>
	      <br>
	      <input type=checkbox
		     id='snapshot_update_prepare' value=yes>
	    </center>
	    Check this box if you installed any software that added new
	    users or groups. If you are not sure, ask us first since
	    checking this box needlessly can have negative side effects. 
	    <br>
Leigh B Stoller's avatar
Leigh B Stoller committed
621
	  </div>
622
623
624
625
626
627
628
629
630
	  <div id='wholedisk_div' class='hidden'>
	    <br>
	    <center>
	      Whole disk image?<br>
	      <input type=checkbox id=wholedisk value=yes>
	    </center>
	    Check this box if you need to capture the entire disk; you only
	    need to do this if you put data into one of the unused
	    partitions on the local disk. <b><em>Do not check this box if you
631
632
633
634
635
636
637
638
639
640
641
642
	      do not know what this means!</em></b>
	  </div>
	  <div id='nameyourimage_div' class='hidden'>
	    <br>
	    <center>
	      <b>Name your image?</b><br>
	      <input id="nameyourimage_name"
		     placeholder="alphanumeric only" type="text">
	    </center>
	    Do you want to choose the name of your image yourself? We
	    do not recommend it, but you can if you want. Alphanumeric
	    only please.
643
	  </div>
644
	  <br>
Leigh B Stoller's avatar
Leigh B Stoller committed
645
646
647
648
649
650
651
652
653
	  <center>
            <button style='margin-right: 20px;'
                    class='btn btn-primary btn-sm' 
                    data-dismiss='modal' aria-hidden='true'>
	      Cancel</button>
            <button class='btn btn-danger btn-sm'; type='button'
		    id='snapshot_confirm'>
	      Confirm</button>
	  </center>
654
655
656
657
	</div>
      </div>
    </div>
  </div>
Leigh B Stoller's avatar
Leigh B Stoller committed
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
  <div id='deletenode_modal' class='modal fade'>
    <div class='modal-dialog'>
      <div class='modal-content'>
	<div class='modal-header'>
          <center><h3>Confirm to Delete Nodes</h3>
	</div>
	<div class='modal-body'>
          <p>
	    Are you <b>sure</b> you want to delete nodes from your
            experiment?  This operation cannot be stopped once it is
            started!

	  </p>
	  <center>
            <button style='margin-right: 20px;'
                    class='btn btn-primary btn-sm' 
                    data-dismiss='modal' aria-hidden='true'>
	      Cancel</button>
            <button class='btn btn-danger btn-sm'; type='button'
		    id='deletenode_confirm'>
	      Confirm</button>
	  </center>
	</div>
      </div>
    </div>
  </div>
684
  <div id="context-menu">
685
686
      <ul class="dropdown-menu" role="menu"
	  style='cursor: pointer; cursor: hand'>
Leigh B Stoller's avatar
Leigh B Stoller committed
687
688
689
690
691
692
	<li id="shell"><a name="shell">Shell</a></li>
	<li id="console"><a name="console">Console</a></li>
	<li id="consolelog"><a name="consolelog">Console Log</a></li>
	<li id="reboot"><a name="reboot">Reboot</a></li>
	<li id="reload"><a name="reload">Reload</a></li>
	<li id="snapshot"><a name="snapshot">Snapshot</a></li>
Leigh B Stoller's avatar
Leigh B Stoller committed
693
	<li id="delete"><a name="delete">Delete Node</a></li>
694
695
      </ul>
  </div>
696
697
  <div id="context"></div>
  <div id="context-menus"></div>
Leigh B Stoller's avatar
Leigh B Stoller committed
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
  <div id='console_password_modal' class='modal fade'>
    <div class='modal-dialog'>
      <div class='modal-content'>
	<div class='modal-header'>
          <button type='button' class='close' data-dismiss='modal'
                  aria-hidden='true'>&times;</button>
          <center><h4>Console Password for
	      <span id='console_password_clientid'></span></h4></center>
	</div>
	<div class='modal-body'>
	  <form class="form-horizontal">
	    <div class="row">
	      <div class="col-sm-4 col-sm-offset-4">
		<div class="form-group">
		  <input onClick="this.select();"
			 id='console_password_input'
			 class='form-control'
			 readonly
			 value='#'>
		</div>
	      </div>
	    </div>
	  </form>
	</div>
      </div>
    </div>
  </div>
725
726
727
728
  <div id='confirm_reload_modal' class='modal fade'>
    <div class='modal-dialog'>
      <div class='modal-content'>
	<div class='modal-body'>
729
          <center><h3>Confirm Node <span id="confirm-which"></span></h3>
730
731
732
733
734
735
736
737
738
739
740
741
            <button type='button' style='margin-right: 20px;'
                    class='btn btn-primary btn-sm' 
                    data-dismiss='modal' aria-hidden='true'>
	      Cancel</button>
            <button class='btn btn-danger btn-sm'
		    id='confirm_reload_button'>
	      Confirm</button>
	  </center>
	</div>
      </div>
    </div>
  </div>
742
743
744
745
746
747
748
  <!-- This is the extend history modal for foreign admins -->
  <div id='extend_history_modal' class='modal fade'>
    <div class='modal-dialog'>
      <div class='modal-content'>
	<div class='modal-header'>
          <button type='button' class='close' data-dismiss='modal'
                  aria-hidden='true'>&times;</button>
749
	  <h5>Extension History</h5>
750
	</div>
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
	<div class='modal-body scrollable-panel'>
	  <table class="table table-condensed">
	    <thead>
	      <tr>
		<th>Date</th>
		<th>Action</th>
		<th>Wanted</th>
		<th>Granted</th>
	      </tr>
	    </thead>
	    <tbody>
	      <%  _.each(extensions, function(extension, idx) { %>
		<tr>
		  <td rowspan="2" class="history-tstamp">
		    <%- extension.tstamp %></td>
		  <td>
		    <% if (extension.action == "request" && extension.admin == "1") { %>
		      admin<% } else { %><%- extension.action %><% } %>
		  </td>
		  <% if (extension.action == "request") { %>
		    <td><%- extension.wanted %></td>
		    <td><%- extension.granted %></td>
		  <% } else { %>
		    <td>n/a</td>
		    <td>n/a</td>
 	          <% } %>
		</tr>
		<tr>
		  <td colspan="3">
		    <pre class="history-reason"><%- extension.reason %></pre>
		  </td>
		</tr>
  	      <% }); %>
	    </tbody>
	  </table>
786
787
788
789
	</div>
      </div>
    </div>
  </div>
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
  <div id='extension-denied-modal' class='modal fade'>
    <div class='modal-dialog'>
      <div class='modal-content'>
	<div class='modal-header'>
          <center><h3>Your recent extension request was denied!</h3></center>
	</div>
	<div class='modal-body'>
	  <div class="well" id="extension-denied-modal-reason"></div>
	  <p>
	    We sent you an email notification, but just in case you
	    did not receive it, we are letting you know again. 
	    Clicking Dismiss will hide this message. You may also request
	    another extension if you have more information to add, or to plead
	    your case. 
	  </p>
	  <div>
	    <center>
              <button class='btn btn-primary btn-sm'
		      id='extension-denied-modal-dismiss'>
		Dismiss</button>
	    </center>
	  </div>
	</div>
      </div>
    </div>
  </div>
816
817
818
819
820
  <div id='waitwait_div'></div>
  <div id='terminate_div'></div>
  <div id='oops_div'></div>
  <div id='register_div'></div>
  <div id='extend_div'></div>
821
  <div id='imaging_div'></div>
822
  <div id='oneonly_div'></div>
823
  <div id='approval_div'></div>
824
  <div id='linktest_div'></div>
825
</div>
826