status.html 27.4 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
.panel-body-nopad {
23
24
25
26
27
28
29
30
31
    padding: 5px;
 }
.table-condensed > thead > tr > th,
.table-condensed > tbody > tr > th,
.table-condensed > tfoot > tr > th,
.table-condensed > thead > tr > td,
.table-condensed > tbody > tr > td,
.table-condensed > tfoot > tr > td {
    padding: 3px;
32
}
33
</style>
34
35
36
<div class='row'>
  <div class='col-lg-6  col-lg-offset-3
       col-md-8  col-md-offset-2
37
       col-sm-8  col-sm-offset-2
38
       col-xs-12 col-xs-offset-0'>
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
    <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'>
54
55
56
57
58
59
60
61
62
63
64
65
66
67
	  <!-- 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>
68
69
	    <td class='border-none'>Name:</td>
	    <td class='border-none'><%- name %></td>
70
71
72
73
74
75
76
77
78
	  </tr>
	  <tr>
	    <td class='border-none'>State:</td>
	    <td class='border-none'>
              <span id='quickvm_status'>
		<font></font>
              </span>
	    </td>
	  </tr>
79
	  <% if (profileUUID && profileUUID != "") { %>
80
81
	  <tr>
	    <td class='border-none'>Profile:</td>
82
83
84
	    <td class='border-none'>
	      <a target=_blank href='show-profile.php?uuid=<%- profileUUID %>'>
		 <%- profileName %></a></td>
85
	  </tr>
86
	  <% } %>
87
88
89
90
91
92
93
94
95
	  <% if (reporef !== undefined) { %>
	    <tr>
	      <td class='border-none'>RefSpec:</td>
	      <td class='border-none'>
		<span><%= reporef %></span>
		(<%= repohash %>)
	      </td>
	    </tr>
	  <% } %>
96
	  <% if (isadmin) { %>
97
98
99
100
	    <tr>
	      <td class='border-none'>Creator:</td>
	      <td class='border-none'>
		<% if (registered) { %>
101
		  <a href="user-dashboard.php?user=<%- creatorUid %>">
102
103
104
105
106
107
108
109
		    <%- creatorUid %></a>
		<% } else { %>
	          <a href="mailto:<%- creatorEmail %>"><%- creatorEmail %></a>
	        <% } %>
	      </td>
	    </tr>
	    <% if (project) { %>
	      <tr>
110
111
112
113
114
115
116
117
118
119
120
		<% 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>
		<% } %>
121
122
	      </tr>
	    <% } %>
123
	  <% } %>
Leigh B Stoller's avatar
Leigh B Stoller committed
124
125
126
127
	  <tr>
	    <td class='border-none'>Created:</td>
	    <td class='border-none format-date'><%- sliceCreated %></td>
	  </tr>
128
129
	  <tr>
	    <td class='border-none'>Expires:</td>
130
131
	    <td class='border-none'>
	      <span id='instance_expiration'>
Leigh B Stoller's avatar
Leigh B Stoller committed
132
133
		<span id='quickvm_expires' class='format-date'>
		  <%- sliceExpires %></span>
134
135
		(<span id='quickvm_countdown'></span>)
	      </span>
136
137
	    </td>
	  </tr>
138
	  <tr id="maximum-extension" class="hidden">
139
	    <td class='border-none'>Extendable:</td>
140
	    <td class='border-none'>
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
	      <span id="maximum-extension-string"></span>
	      <a href='#' class='btn btn-xs'
		 data-toggle='popover'
		 data-html='true'
		 data-delay='{"hide":500}'
		 data-content="This is the maximum extension that is
			       <em>possible</em> because of future reservation
			       promises for the resources you are using. It
			       does not mean you will be granted an extension
			       till this date.">
		<span class='glyphicon glyphicon-question-sign'
		      style='margin-bottom: 4px;'></span>
	      </a>
	    </td>
	  </tr>
156
157
	  </table>
	  <div class='pull-left'>
Leigh B Stoller's avatar
Leigh B Stoller committed
158
	    <a class='btn btn-info btn-xs pull-left hidden'
159
               style='margin-right: 10px;'
Leigh B Stoller's avatar
Leigh B Stoller committed
160
161
	       id='sliverinfo_button'
               href='#'
162
163
164
165
166
167
168
169
170
171
172
173
	       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>
174
	  </div>
175
176
177
178
179
180
181
182
	  <div class='pull-left'>
	    <a class='hidden'
               style='margin-right: 10px;'
	       id='logfile_button'
               href='#'
	       target='_blank'
               type='button'>Logfile</a>
	  </div>
183
	  <div class='pull-right'>
184
	    <% if (registered && !isfadmin) { %>
185
186
187
188
189
190
191
192
	      <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>
193
194
195
196
	    <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
197
		    id='snapshot_button' type=button>
198
              Snapshot</button>
199
	    <% if (profileUUID && profileUUID != "") { %>
Leigh B Stoller's avatar
Leigh B Stoller committed
200
201
	    <a class='btn btn-xs btn-primary'
		    href='manage_profile.php?action=copy&uuid=<%= profileUUID %>'
202
203
		    id='copy_button' type=button
		    data-toggle='popover'
Leigh B Stoller's avatar
Leigh B Stoller committed
204
	            data-delay='{"hide":1500, "show":500}'
205
206
207
208
209
		    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
210
211
		    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
212
	      Copy</a>
213
	    <% } %>
214
	    <% } %>
215
216
	    <button class='btn btn-xs btn-success' disabled
		    id='extend_button' type=button>
217
218
219
220
221
222
223
224
              <% 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>
	    <% } %>
225
	  </div>
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
	  <% if (isadmin) { %>
	    <div class='clearfix'></div>	  
	    <div>
	      <div class='pull-left'
		   data-toggle='popover'
		   data-delay='{"hide":500, "show":500}'
		   data-content="When checked, only administrator can extend
				 this experiment. No free time is granted to
				 user at all."> 
		<label class="checkbox-inline" style='margin-right: 10px;'>
		  <input type="checkbox" id="lockout_checkbox"
			 <% if (lockout) { %>checked<% } %> >Lockout</label>
	      </div>
	    </div>
	    <div class='pull-left'
		 data-toggle='popover'
		 data-delay='{"hide":500, "show":500}'
		 data-content="When checked, the experiment 
			       cannot be terminated by the user unless the
			       user verifies 
			       the lockdown code when clicking the Terminate
			       button. This prevents accidental termination,
			       and is automatically set whenever an experiment
			       is extended for more then two weeks.
			       Use the admin lockdown flag to fully prevent
			       termination."> 
	      <label class="checkbox-inline" style='margin-right: 10px;'>
		<input type="checkbox" id="user_lockdown_checkbox"
		       <% if (user_lockdown) { %>checked<% } %> >
		User Lockdown</label>
	    </div>
	    <div class='pull-left'
		 data-toggle='popover'
		 data-delay='{"hide":500, "show":500}'
		 data-content="When checked, the experiment 
			       cannot be terminated by the user. Only an
			       admin can do it.">
	      <label class="checkbox-inline" style='margin-right: 10px;'>
		<input type="checkbox" id="admin_lockdown_checkbox"
		       <% if (admin_lockdown) { %>checked<% } %> >
		Admin Lockdown</label>
	    </div>
	    <div class='pull-left'
		 data-toggle='popover'
		 data-delay='{"hide":500, "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>
279
280
281
282
283
284
285
286
	    <div class='pull-left
			<% if (!hasnotes) { %>hidden<% } %>'
		 data-toggle='popover'
		 data-delay='{"hide":500, "show":500}'
		 data-content="This experiment has admin notes">
	      <a target="_blank"
		 href='adminextend.php?uuid=<%= uuid %>'>Admin Notes</a>
	    </div>
287
	  <% } %>
288
289
290
291
292
	</div>
      </div>
    </div>
  </div>
</div>
293
294
295
296
297
298
299
300
301
302
303
<!-- 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">
304
	<code style="white-space: pre-wrap" id="error_panel_text"></code>
305
      </div>
306
      <div class="panel-footer">
307
308
309
	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
310
311
	of your experiment (hint, its '<%= name %>') and the name of your
	profile (hint, its '<%= profileName %>').
312
      </div>
313
314
315
    </div>
  </div>
</div>
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
<!-- 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'>
350
	  <ul id='quicktabs_ul' class='nav nav-tabs'>
351
	    <li class='active'>
Leigh B Stoller's avatar
Leigh B Stoller committed
352
              <a href='#topology' data-toggle='tab'>Topology View</a>
353
354
355
356
357
            </li>
	    <li>
              <a href='#listview' data-toggle='tab'>List View</a>
            </li>
	    <li>
358
359
              <a href='#manifest' id='show_manifest_tab'
		 data-toggle='tab'>Manifest</a>
360
            </li>
361
362
	    <li class="hidden" id="show_idlegraphs_li">
              <a href='#Idlegraphs' id='show_idlegraphs_tab'
Leigh B Stoller's avatar
Leigh B Stoller committed
363
364
365
366
367
368
		 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>
369
            </li>
370
371
372
373
374
375
376
377
378
	    <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>
379
380
	  </ul>
	  <div id='quicktabs_content' class='tab-content'>
Leigh B Stoller's avatar
Leigh B Stoller committed
381
            <div class='tab-pane active' id='topology'>
382
	      <div id='showtopo_statuspage' class='jacks'></div>
383
              <small>Click on a node for more options. 
384
                Click and drag to move things around.</small>
385
	      <% if (registered) { %>
386
387
388
		<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
389
			data-delay='{"hide":1000, "show":500}'
390
391
			data-content='Ask cluster for updated node status'>
		  Refresh Status</button>
392
		<span>
Leigh B Stoller's avatar
Leigh B Stoller committed
393
394
		  <button class='btn btn-xs btn-success pull-right hidden'
			  disabled
395
			  data-toggle='popover'
Leigh B Stoller's avatar
Leigh B Stoller committed
396
			  data-delay='{"hide":1000, "show":500}'
397
398
399
400
401
			  data-content='Run linktest on the topology'
			  style='margin-right: 10px;'
			  id='linktest-modal-button' type=button>
		    Run Linktest</button>
		</span>
402
		<% if (1) { %>
Leigh B Stoller's avatar
Leigh B Stoller committed
403
404
405
406
407
408
409
410
411
412
413
414
415
		  <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>
		<% } %>
	      <% } %>
416
417
418
419
420
421
422
	    </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>
423
                      <th>ID</th>
424
                      <th>Node</th>
425
                      <th>Type</th>
426
427
428
                      <th>SSH command <small>
			  (if you provided your own key)</small>
                      </th>
Leigh B Stoller's avatar
Leigh B Stoller committed
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
                      <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>
446
447
448
449
450
451
452
453
                    </tr>
                  </thead>
                  <tbody>
                  </tbody>
		</table>
              </div>
            </div>
	    <div class='tab-pane' id='manifest'>
454
              <div id='manifest_textarea' style='width: 100%;'></div>
455
	    </div>
456
457
458
459
460
461
462
463
464
465
466
467
468
	    <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>
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
		  <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"
489
			class='fixedsize-panel with-3d-shadow with-transitions'>
490
491
			<svg></svg>
		      </div>
492
493
494
495
496
497
498
499
500
501
		    </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>
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
		  <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"
522
			class='fixedsize-panel with-3d-shadow with-transitions'>
523
524
			<svg></svg>
		      </div>
525
526
527
528
529
530
531
532
533
534
		    </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>
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
		  <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"
553
			class='fixedsize-panel with-3d-shadow with-transitions'>
554
555
			<svg></svg>
		      </div>
556
557
558
559
560
		    </div>
		  </div>
		</div>
	      </div>
	    </div>
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
	    <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>
620
621
622
623
624
625
626
627
	  </div>
	</div>
      </div>
    </div>
  </div>
</div>
<div>
  <!-- place to hang the modals for now -->
628
629
630
631
632
633
634
  <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
635
636
637
638
639
640
641
642
643
644
	  <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
645
646
	    profile source code yourself (you will receive email with the
	    name/url of the new image).
647
648
649
	    <br>
	    <br>
	  </div>
650
651
652
653
654
655
656
657
658
659
660
661
	  <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>
662
663
664
665
666
667
668
669
670
671
672
	  <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
673
	  </div>
674
675
676
677
678
679
680
681
682
	  <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
683
684
685
686
687
688
689
690
691
692
693
694
	      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.
695
	  </div>
696
	  <br>
Leigh B Stoller's avatar
Leigh B Stoller committed
697
698
699
700
701
702
703
704
705
	  <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>
706
707
708
709
	</div>
      </div>
    </div>
  </div>
Leigh B Stoller's avatar
Leigh B Stoller committed
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
  <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>
736
  <div id="context-menu">
737
738
      <ul class="dropdown-menu" role="menu"
	  style='cursor: pointer; cursor: hand'>
Leigh B Stoller's avatar
Leigh B Stoller committed
739
740
741
742
743
744
	<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
745
	<li id="delete"><a name="delete">Delete Node</a></li>
746
747
      </ul>
  </div>
748
749
  <div id="context"></div>
  <div id="context-menus"></div>
Leigh B Stoller's avatar
Leigh B Stoller committed
750
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
  <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>
777
778
779
780
  <div id='confirm_reload_modal' class='modal fade'>
    <div class='modal-dialog'>
      <div class='modal-content'>
	<div class='modal-body'>
781
          <center><h3>Confirm Node <span id="confirm-which"></span></h3>
782
783
784
785
786
787
788
789
790
791
792
793
            <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>
794
795
796
797
798
799
800
  <!-- 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>
801
	  <h5>Extension History</h5>
802
	</div>
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
	<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>
838
839
840
841
	</div>
      </div>
    </div>
  </div>
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
  <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>
868
869
870
871
872
  <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>
873
  <div id='imaging_div'></div>
874
  <div id='oneonly_div'></div>
875
  <div id='approval_div'></div>
876
  <div id='linktest_div'></div>
877
</div>
878