instantiate-new.html 29.7 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<style>
 .panel-heading-list {
     padding: 2px;
 }
 .panel-body-dashboard {
     padding: 2px;
 }
 .resgraph-size {
     max-height:300px;
     height:300px;
 }
 .resgraph-modal-size {
     max-height:600px;
     height:600px;
 }
 svg {
     display: block;
 } 
</style>  
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
<div>
  <div id='about_div'
       class='col-lg-8  col-lg-offset-2
	      col-md-8  col-md-offset-2
	      col-sm-10 col-sm-offset-1
	      col-xs-12 col-xs-offset-0'>
  </div>
  <div id='stepsContainer'>
    <h3>Select a Profile</h3>
    <div class='col-lg-8  col-lg-offset-2
		col-md-8  col-md-offset-2
		col-sm-10  col-sm-offset-1
		col-xs-12 col-xs-offset-0'>
      <form id='step0-form' role='form' class="step-forms"
	    enctype='multipart/form-data'
	    method='post' action='instantiate.php'>
	<!-- Guest users see the first wizard step in a panel -->
	<div <% if (!registered) { %>class='panel panel-default'<% } %>>
	  <% if (!registered) { %>
	    <div class='panel-heading'>
	      <h3 class='panel-title'>
		<center>Start Experiment
		  <% if (profilename) { %>
		    using profile '<%= profilename %>'
		  <% } %>
		</center>
	      </h3>
	    </div>
	  <% } %>
	  <div <% if (!registered) { %>class='panel-body'<% } %>>
	    <% if (!registered) { %>
	      <% if (profilename) { %>
		<!-- Will only show header when linked to a profile -->
		<h3 style='margin: 0px;'>
		  <center>Start Experiment
		    using profile '<%= profilename %>'
		  </center>
		</h3>
	      <% } %>
59 60
	      <!-- If linked to a specific profile, description goes here -->
	      <% if (profilename) { %>
61 62 63 64
		<p>
		  Fill out the form below to run an experiment
		  using this profile:
		</p>
65 66 67 68 69 70 71 72
		<blockquote>
		  <p><span id='selected_profile_description'></span></p>
		</blockquote>
		<p>
		  When you click the 'Create' button, the virtual or
		  physical machines described in the profile will be booted
		  on <%= clustername %>'s hardware
		</p>
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
	      <% } %>
	      <div class='form-group format-me'>
		<input name="username"
		       id='input_username'
		       value='<%- formfields.username %>'
		       class="form-control"
		       data-key="username"
		       data-label="Username"
		       placeholder='Pick a user name'
		       autofocus
		       type='text'>
		<label class='control-label control-error hidden'
		       for='input_username'></label>
	      </div>
	      <div class='form-group format-me'>
		<input name="email"
		       id='input_email'
		       value="<%- formfields.email %>"
		       class="form-control"
		       data-key="email"
		       data-label="Email"
		       placeholder='Your email address'
		       type='text'>
		<label class='control-label control-error hidden'
		       for='input_email'></label>
	      </div>
	      <%
	      var title_text  = "";
	      var expand_text = "";
	      if (formfields.sshkey == "") {
		title_text = "<span class='text-warning'>" +
		      "No SSH key, browser shell only!<span>";
		expand_text = "Add Key";
	      }
	      else {
		title_text  = "<span class='text-info'>Your SSH key</span>";
		expand_text = "Update";
	      }
	      %>
	      <div class='form-group row' style='margin-bottom: 0px;'>
		<div class='col-md-12'>
		  <div class='panel panel-default'>
		    <div class='panel-heading'><%= title_text %>
		      <a class='pull-right'
			 data-toggle='collapse' href='#mysshkey'>
			<%- expand_text %>
		      </a>
		    </div>
		    <div id='mysshkey' class='panel-collapse collapse'>
		      <div class='panel-body'>
			<div class='form-group format-me'>
			  <span class='help-block'>
			    Upload a file or paste it in the
			    text box. This will allow you to
			    login using your favorite ssh
			    client. Without a SSH key, you will
			    be limited to using a shell window
			    in your browser. If you already see
			    a key here, you can change it and
			    we will remember your new key for
			    next time.  Not sure how to
			    generate your SSH key?
			    See <a href='https://help.github.com/articles/generating-ssh-keys'>this tutorial.</a>
			  </span>
			  <input type='file'
				 name='keyfile'
				 id="input_keyfile"
				 class="form-control"
				 data-key="keyfile"
				 data-label="Keyfile">
			  <label class='control-label control-error hidden'
				 for='input_keyfile'></label>
			</div>
			<div class='form-group format-me'>
			  <textarea name="sshkey"
				    id='input_sshkey'
				    placeholder='Paste in your ssh public key.'
				    class='form-control'
				    data-key='sshkey'
				    data-label='SSH key'
				    rows=4
				    cols=45><%- formfields.sshkey %></textarea>
			  <label class='control-label control-error hidden'
				 for='input_sshkey'></label>
			</div>
		      </div>
		      <div class='clearfix'></div>
		    </div>
		  </div>
		</div>
	      </div>
164 165 166 167 168 169 170 171 172 173 174 175 176 177 178
	    <% } %>
	    <% if (registered || !profilename) { %>
	      <div class='form-group row' style='margin-bottom: 0px;'>
		<div class='col-md-12'>
		  <div class='panel panel-default'>
		    <div class='panel-heading'>
		      <span class='panel-title'>
			<strong>Selected Profile:</strong> 
			<span id='selected_profile_text'></span>
		      </span>
		    </div>
		    <div class='panel-body'>
		      <div id='selected_profile_description'></div>
		    </div>
		    <div class='panel-footer'>
179
		      <% if (cancopy && !fromrepo) { %>
180 181 182 183 184 185 186
			<button class='btn btn-default btn-sm pull-left' 
				type='button' id='profile_copy_button'
				style='margin-right: 10px;'
				data-toggle='popover'
				data-delay='{hide:1500, show:500}'
				data-html='true'
				data-content='When you copy a profile you are
187 188 189 190 191 192
				  creating a new profile that uses the same
				  source code and metadata (description,
				  instructions) as the original profile, but
				  without creating a new disk image. Instead,
				  the new profile uses whatever images the
				  original profile uses.'>
193 194 195 196 197 198 199 200 201
			  Copy Profile
			</button>
			<button class='btn btn-default btn-sm pull-left'
				type='button' id='profile_show_button'>
			  Show Profile
			</button>
		      <% } %>
		      <!-- Profile selection box -->
		      <% if (showpicker) { %>
202
			<button id='change-profile'
203 204 205 206
				class='btn btn-primary btn-sm pull-right' 
				type='button' name='profile_button'>
			  Change Profile
			</button>
207 208
		      <% } %>
		      <div class='clearfix'></div>
209 210 211
		    </div>
		  </div>
		</div>
212 213
	      </div>
	    <% } %>
214 215 216 217 218 219 220 221 222 223 224 225 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
	  </div>
	</div>
      </form>
    </div>
    <!-- Place holder for parameterized profile step.  -->
    <h3>Parameterize</h3>
    <div class='col-lg-8  col-lg-offset-2
		col-md-8  col-md-offset-2
		col-sm-10 col-sm-offset-1
		col-xs-12 col-xs-offset-0'>
      <div id="pp-container"></div>
    </div>

    <!-- Last step -->
    <h3>Finalize</h3>
    <div class='col-lg-8  col-lg-offset-2
		col-md-8  col-md-offset-2
		col-sm-10 col-sm-offset-1
		col-xs-12 col-xs-offset-0'>
      <!-- Each step needs its own form cause we might put another
	   form into step2 for a parameterized profile, and cannot nest
	   forms -->
      <form id='step2-form' role='form' class="step-forms"
	    method='post' action='instantiate.php'>
	<!-- JS code sets this after selection change. -->
	<input id='selected_profile'
	       type='hidden'
	       name='profile'>
	<!-- JS code sets this if all the nodes are bound. -->
	<input id='fully_bound'
	       type='hidden'
	       name='fully_bound' value="0">
	<div id='finalize_container'
	     class='col-lg-8 col-md-8 col-sm-8 col-xs-12'>
	  <div class='panel panel-default' style="margin-bottom: 5px">
	    <div class='panel-body'
		 style="padding-top: 5px; padding-bottom: 0px;">
	      <table class='table table-condensed nospaceafter border-none'
		     style="font-size: 14px; font-family: Arial,sans-serif;">
		<tr>
254
		  <td style="padding: 0px; border: 0;">
255 256 257
		    <span style="font-weight: bolder;">Profile:</span>
		    <span id='finalize_profile_name'><%= profilename %></span>
		  </td>
258
		  <td style="padding: 0px; border: 0;">
259 260 261 262
		    <span style="font-weight: bolder;">Version:</span>
		    <span id='finalize_profile_version'><%= profilevers %>
		    </span>
		  </td>
263
		  <td style="padding: 0px; border: 0;">
264 265 266 267 268 269 270 271
		    <button class='btn btn-primary btn-xs'
			    type='button'
			    id="show_xml_modal_button">
		      Source</button></td>
		</tr>
	      </table>
	    </div>
	  </div>
272 273 274 275 276 277
	  <% if (!registered) { %>
	    <!-- Show non-specific errors here. -->
	    <div style='margin-bottom: 10px;'>
	      <font color=red>
		<center><span id="general_error"></span></center>
	      </font>
278
	    </div>
279 280 281
	  <% } else { %>
	    <div class='panel panel-default'>
	      <div class='panel-heading'>
282 283
		<span style='text-align: center;'>
		  Please review the selections below and then click Next.</span>
284
	      </div>
285 286 287 288 289 290 291 292
	      <div class='panel-body'>
		<!-- Show non-specific errors here. -->
		<div style='margin-bottom: 10px;'>
		  <font color=red>
		    <center><span id="general_error"></span></center>
		  </font>
		</div>
		<div id='finalize_options'>
293 294 295 296
		  <!-- Optional experiment name -->
		  <div id='name_selector'
		       class='form-horizontal experiment_option'>               
		    <div class='form-group format-me'>
297
		      <label class='col-sm-4 control-label'
298 299 300 301 302 303
			     style='text-align: right;'>Name:</label>
		      <div class='col-sm-6'
			   data-toggle='popover'
			   data-delay='{hide:1500, show:500}'
			   data-html='true'
			   data-content='Provide a unique name to
Eric Eide's avatar
Eric Eide committed
304
			   identify your new experiment. If you are in 
Eric Eide's avatar
Eric Eide committed
305 306
			   the habit of starting more than one
			   experiment at a time, this is really handy
307 308 309 310 311 312 313 314 315 316 317 318 319 320
			   when trying to tell one experiment from
			   another, or when referring to
			   an experiment when asking for help.'>
			<input id='experiment_name'
			       placeholder='Optional'
			       class='form-control'
			       data-key='name'
			       name='name'
			       value='<%= formfields.name %>'>
			<label class='control-label control-error hidden'
			       for='experiment_name'></label>
		      </div>
		    </div>
		  </div>
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 350 351 352 353 354 355 356 357
		  <% if (projects && Object.keys(projects).length) { %>
		    <% if (Object.keys(projects).length == 1) { %>
		      <!-- We need this to look like the selector below,
			   for the JS code. -->
		      <div class='hidden' id='project_selector'>
			<input id='profile_pid' type='hidden'
			       name='pid'
			       value='<%- formfields.pid %>'>
		      </div>
		    <% } else { %>
		      <div class='form-horizontal experiment_option'
			   id='project_selector'>
			<div class='form-group format-me'>
			  <label class='col-sm-4 control-label'
				 style='text-align: right;'>Project:</label>
			  <div class='col-sm-6'>
			    <select name="pid"
				    data-key='pid'
				    id='profile_pid'
				    class='form-control'>
			      <% _.each(projects, function(gids, name) { %>
				<option 
				    <% if (formfields.pid == name) { %>
				    selected
				    <% } %>
				    value='<%- name %>'><%- name %>
				</option>
			      <% }); %>
			    </select>
			    <label class='control-label control-error hidden'
				   for='profile_pid'></label>
			  </div>
			</div>
		      </div>
		    <% } %>
		    <div class='form-horizontal experiment_option hidden'
			 id='group_selector'>
358
		      <div class='form-group format-me'>
359
			<label class='col-sm-4 control-label'
360
			       style='text-align: right;'>Group:</label>
361
			<div class='col-sm-6'>
362 363 364 365
			  <select name='gid'
				  data-key='gid'
				  id='profile_gid'
				  class='form-control'></select>
366
			  <label class='control-label control-error hidden'
367
				 for='profile_gid'></label>
368 369 370 371
			</div>
		      </div>
		    </div>
		  <% } %>
372
		  <% if (clusterselect) { %>
373 374 375
		    <div id='aggregate_selector'>
		      <!-- The JS code fills this in -->
		      <div id='cluster_selector' class='hidden'></div>
376
		      <div id='reservation_warning' class='hidden col-sm-12'>
Leigh Stoller's avatar
Leigh Stoller committed
377
			<label id='reservation_text' class='alert-warning col-sm-10 col-sm-offset-1'>There is an upcoming reservation on this cluster that may impact your ability to reserve or extend resources. This reservation is from <span class='reservation_start'>start</span> until <span class='reservation_end'>end</span>.</label> 
378
		      </div>
379 380 381 382 383
		      <div id='reservation_confirmation'
			   class='hidden col-sm-12'>
			<label id='reservation_text'
			       class='alert-success col-sm-10 col-sm-offset-1'>
			</label> 
384 385
		      </div>
		      <div id='reservation_future' class='hidden col-sm-12'>
386
			<label id='reservation_text' class='alert-warning col-sm-10 col-sm-offset-1'>Project <span class="reservation_project"></span> has a reservation on this cluster beginning <span class='reservation_start'>start</span>.</label> 
387
		      </div>
388
		    </div>
389 390
		  <% } %>
		  <% if (1) { %>
391 392 393 394 395 396 397 398 399
		    <h5>
		      <a href="#advanced_options_dropdown" data-toggle="collapse">
			<span class="glyphicon glyphicon-plus-sign pull-left" 
			      style="font-weight: bold;"></span>
			<span style="font-weight: bold; margin-left: 12px">Advanced Options</span>
		      </a>
		    </h5>
		    <div id="advanced_options_dropdown"
			 class="panel-collapse collapse">
400
		      <% if (0) { %>
401 402
		      <div class='form-horizontal experiment_option'>
			<div class='form-group format-me'>
403
			  <label class='col-sm-4 control-label'
404 405 406 407 408 409
				 style='text-align: right;'>Experiment Duration:</label>
			  <div class="col-sm-6"
			       data-toggle='popover'
			       data-delay='{hide:1500, show:500}'
			       data-html='true'
			       data-content="Sets the intial amount of time that the 
410
			       experiment will run. Limit: <%- maxduration %> hours. If more time is needed, the duration can be extended after the
411 412 413 414 415
			       experiment has been created.">
			    <input id='experiment_duration'
				   class='form-control'
				   data-key='duration'
				   name='duration'
416
				   value='<%- maxduration %>'>
417 418 419 420 421 422 423 424 425
			    <label style='position: absolute;
					  top: 6px;
					  right: 22px;
					  font-weight: normal;
					  color: #aaa'>
			      hours
			    </label>
			    <label class='control-label control-error hidden'
				   for='duration'></label>
426
			  </div>
427
			</div>
428
		      </div>
429
		      <% } %>
430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446
		      <div class='form-horizontal experiment_option'>
			<div class='form-group format-me'>
			  <div class="row">
			    <label class='col-sm-4 control-label'
				   style='text-align: right;'>Ignore Failures:</label>
			    <div class='col-sm-2'>
			      <input id='failure_okay' type="checkbox"
				     value="checked"
				     class=''
				     data-key='failure_okay'
				     name='failure_okay'
				     <%= formfields.failure_okay %>>
			    </div>
			  </div>
			  <label class='control-label control-error hidden'
				 for='failure_okay'></label>
			</div>
447 448
		      </div>
		    </div>
449 450 451
		  <% } %>
		</div>
		<div id="cluster_status_link"><center>
Leigh Stoller's avatar
Leigh Stoller committed
452
		  <a target="_blank" href="resinfo.php">
453
		    Check Resource Availability</a></center>
454
		</div>
455 456
	      </div>
	    </div>
457
	  <% } %>
458
	</div>
459
	<div id='inline_container' style="min-height: 150px;"
460 461 462 463 464
	     class='col-lg-4 col-md-4 col-sm-4 col-xs-12'>
	  <a id='inline_overlay' href='#'>
	    <span class='glyphicon glyphicon-fullscreen'
		  aria-hidden='true'></span>
	  </a> 
465
	  <div id='inline_jacks' style="min-height: 150px;"></div>
466
	</div>
467 468 469
	<!-- This is for a PP rspec or a repo-based profile -->
	<textarea name='rspec'
		  id='rspec_textarea'
470 471
		  class='form-control hidden'
		  type='textarea'></textarea>
472 473 474 475 476 477 478 479
	<textarea name='script'
		  id='script_textarea'
		  class='form-control hidden'
		  type='textarea'></textarea>
	<!-- JS code sets these for repo based profiles -->
	<input id='reporef' type='hidden' name='reporef'>
	<input id='repohash' type='hidden' name='repohash'>
	<input id='paramdefs' type='hidden' name='paramdefs'>
480 481
      </form>
    </div>
482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 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 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 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 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 684 685 686 687 688 689
    <!-- Last step -->
    <h3>Schedule</h3>
    <div class='col-lg-8  col-lg-offset-2
		col-md-8  col-md-offset-2
		col-sm-10 col-sm-offset-1
		col-xs-12 col-xs-offset-0'>
      <form id='step3-form' role='form' class="step-forms"
	    method='post' action='instantiate.php'>
      <div class='panel panel-default'>
	<div class='panel-heading'>
	  Please select when you would like to start this experiment
	  and then click Finish.
	</div>
	<div class='panel-body'>
	  <center>Start immediately
	    <div class="row">
	      <input id='start-immediately' type="checkbox"
		     name="start-immediately"
		     value="checked" checked>
	    </div>
	    <div style="margin-top: 3px;">
	      or
	    </div>
	    <div style="margin-top: 0px;">
	      Start on date/time
	    </div>
	  </center>
	  <input id="start" name="start" type="hidden">
	  <input id="end" name="end" type="hidden">
	  <div class="row"
	       style="margin-top: 10px;">
	    <div class="col-xs-4 col-xs-offset-2 format-me">
	      <input name="start_day"
		     style='position: relative;'
		     id='start_day'
		     value="<%- formfields.start %>"
		     class="form-control"
		     placeholder="MM/DD/YYYY"
		     data-key="start_day"		 
		     type="text">
	      <label class='control-label control-error hidden'
		     for='start_hour'></label>
	    </div>
	    <div class="col-xs-4 format-me">
	      <select name="start_hour" disabled
		      id='start_hour'
		      value=""
		      class="form-control"
		      data-key="start_hour"
		      type="text">
		<option value="">Time</option>
		<option value="0">12:00 AM</option>
		<option value="1">1:00 AM</option>
		<option value="2">2:00 AM</option>
		<option value="3">3:00 AM</option>
		<option value="4">4:00 AM</option>
		<option value="5">5:00 AM</option>
		<option value="6">6:00 AM</option>
		<option value="7">7:00 AM</option>
		<option value="8">8:00 AM</option>
		<option value="9">9:00 AM</option>
		<option value="10">10:00 AM</option>
		<option value="11">11:00 AM</option>
		<option value="12">12:00 PM</option>
		<option value="13">1:00 PM</option>
		<option value="14">2:00 PM</option>
		<option value="15">3:00 PM</option>
		<option value="16">4:00 PM</option>
		<option value="17">5:00 PM</option>
		<option value="18">6:00 PM</option>
		<option value="19">7:00 PM</option>
		<option value="20">8:00 PM</option>
		<option value="21">9:00 PM</option>
		<option value="22">10:00 PM</option>
		<option value="23">11:00 PM</option>
	      </select>
	      <label class='control-label control-error hidden'
		     for='start_day'></label>
	    </div>
	    <div class="col-xs-1" style="padding-left: 0px;">
	      <a href='#' class='btn btn-xs' id="start-hour-help"
		 style="padding-left: 0px;"
		 data-toggle='popover'
		 data-html='true'
		 data-delay='{"hide":1000}'
		 data-content='Times are in your local timezone.
			       Start day/time is optional; your experiment
			       will start immediately if you select the
			       <em>start immediately</em> option. A typical
			       use for this option, is to schedule your
			       experiment to start shortly after a resource
			       reservation starts. See the <a target=_blank
			       href=<%- window.MANUAL %>/reservations.html>
			       manual</a> for more info on reservations.'>
		<span class='glyphicon glyphicon-question-sign'></span>
	      </a>
	    </div>
	  </div>
	  <div>
	    <center style="margin-top: 25px;">
	      Experiment Duration
	    </center>
	    <div class="row" style="margin-top: 10px;">
	      <div class="col-xs-3 format-me" style="margin-left: 38%">
		<input id='experiment_duration'
		       class='form-control'
		       data-key='duration'
		       name='duration'
		       value='<%- maxduration %>'>
		<label style='position: absolute;
			      top: 6px;
			      right: 22px;
			      font-weight: normal;
			      color: #aaa'>hours</label>
		<label class='control-label control-error hidden'
		       for='duration'></label>
	      </div>
	      <div class="col-xs-1" style="padding-left: 0px;">
		<a href='#' class='btn btn-xs' id="start-hour-help"
		   style="padding-left: 0px;"
		   data-toggle='popover'
		   data-html='true'
		   data-delay='{"hide":500}'
		   data-content='Sets the intial amount of time that the 
		   experiment will run. Limit: <%- maxduration %> hours.
		   If more time is needed, the duration can be extended
		   after the experiment has been created. Note that when
                   resources are in short supply you might need to supply 
		   a smaller duration to avoid reservation system resource  
		   errors, but typically you would leave the default
                   value as is.'>
		  <span class='glyphicon glyphicon-question-sign'></span>
		</a>
	      </div>
	    </div>
	  </div>
	  <div class="hidden">
	    <center style="margin-top: 25px;">
	      End on date/time (optional)
	    </center>
	    <div class="row" style="margin-top: 10px;">
	      <div class="col-xs-4 col-xs-offset-2 format-me">
		<input name="end_day"
		       style='position: relative;'
		       id='end_day'
		       data-key="end_day"
		       value="<%- formfields.start %>"
		       class="form-control"
		       placeholder="MM/DD/YYYY"
		       type="text">
		<label class='control-label control-error hidden'
		       for='end_day'></label>
	      </div>
	      <div class="col-xs-4 format-me">
		<select name="end_hour"
			id='end_hour'
			data-key="end_hour"
			value=""
			class="form-control"
			type="text">
		  <option value="">Time</option>
		  <option value="0">12:00 AM</option>
		  <option value="1">1:00 AM</option>
		  <option value="2">2:00 AM</option>
		  <option value="3">3:00 AM</option>
		  <option value="4">4:00 AM</option>
		  <option value="5">5:00 AM</option>
		  <option value="6">6:00 AM</option>
		  <option value="7">7:00 AM</option>
		  <option value="8">8:00 AM</option>
		  <option value="9">9:00 AM</option>
		  <option value="10">10:00 AM</option>
		  <option value="11">11:00 AM</option>
		  <option value="12">12:00 PM</option>
		  <option value="13">1:00 PM</option>
		  <option value="14">2:00 PM</option>
		  <option value="15">3:00 PM</option>
		  <option value="16">4:00 PM</option>
		  <option value="17">5:00 PM</option>
		  <option value="18">6:00 PM</option>
		  <option value="19">7:00 PM</option>
		  <option value="20">8:00 PM</option>
		  <option value="21">9:00 PM</option>
		  <option value="22">10:00 PM</option>
		  <option value="23">11:00 PM</option>
		</select>
		<label class='control-label control-error hidden'
		       for='end_hour'></label>
	      </div>
	      <div class="col-xs-1" style="padding-left: 0px;">
		<a href='#' class='btn btn-xs' id="end-hour-help"
		   style="padding-left: 0px;"
		   data-toggle='popover'
		   data-html='true'
		   data-delay='{"hide":500}'
		   data-content='Times are in your local timezone.
				 End day/time is optional; your experiment
				 will terminate automatically
				 <%- maxduration %> hours after it starts.'>
		  <span class='glyphicon glyphicon-question-sign'></span>
		</a>
	      </div>
	    </div>
	  </div>
	</div>
      </div>
      </form>
    </div>
690 691 692 693 694 695 696 697 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 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746
  </div>
</div>
<!-- This is the user verify modal -->
<div id='verify_modal' class='modal fade'
     data-keyboard="false" data-backdrop="static">
  <div class='modal-dialog'>
    <div class='modal-content'>
      <div class='modal-header'>
	<h3>Important</h3>
      </div>
      <div class='modal-body'>
	<p>Check your email for a verification code, and
	  enter it here:</p>
	<div class='form-group'>
	  <input name='verify' class='form-control'
		 id="verification_token"
		 placeholder='Verification code'
		 autofocus type='text' />
	  <label class='control-label control-error hidden'
		 id="verification_token_error"
		 for='verification_token'></label>
	</div>
	<div class='form-group'>
	  <button class='btn btn-primary form-control'
		  id='verify_modal_submit'
		  type='submit'>
	    Continue</button>
	</div>
      </div>
    </div>
  </div>
</div>
<!-- This is the topology view modal -->
<div id='quickvm_topomodal' class='modal fade'>
  <div class='modal-dialog'  id='showtopo_dialog'>
    <div class='modal-content'>
      <div class='modal-header'>
	<button type='button' class='close' data-dismiss='modal'
		aria-hidden='true'>
	  &times;</button>
	<h3>Select a Profile</h3>
      </div>
      <div class='modal-body'>
	<!-- This topo diagram goes inside this div -->
	<div class='row' id='showtopo_container'>
	  <div class='form-group col-md-3 col-sm-3 col-xs-3'>
	    <input type='text' class='form-control'
		   placeholder='Search'
		   id='profile_picker_search'>
	    <ul class='list-group' id='profile_name'
		name='profile'>
		<span id='title_recently_used'>
		  <% if (!registered || showpopular) { %>Popular<% }
		     else { %>Recent<% } %>
		  <span class='category_collapsable expanded'></span>
		</span>
		<ul class='list-category' id='recently_used'>
747
		<% for (var i = 0; i < recent.length; i++) { 
748
		  var key = recent[i][0]; var value = recent[i][1]; %>
749 750 751 752
		  <li class='list-group-item profile-item clearfix'
		      value='<%- key %>' name='<%- value.name %>'><%- value.name %>
		    <div class="project_info pull-right"><%- value.project %></div>
		  </li>
753
		<% }; %>
754 755
		</ul>

756 757
	      <% var hidefav = (registered && !$.isEmptyObject(favorites)) ? '' : 'hidden';%>
		<span id='title_favorites' class='<%- hidefav %>'>
758 759 760 761 762 763 764 765 766 767 768 769
		  Favorites
		  <span class='category_collapsable expanded'></span>
		</span>
		<ul class='list-category' id='favorites'>
		<% _.each(favorites, function(value, key) {  %>
		  <li class='list-group-item profile-item clearfix'
		      value='<%- key %>' name='<%- value.name %>'><%- value.name %>
		    <div class="project_info pull-right"><%- value.project %></div>
		  </li>
		<% }); %>
		</ul>   

770
		<% var hidemy = (registered && !$.isEmptyObject(myprofiles)) ? '' : 'hidden';%>
771
		<span id='title_myprofiles' class='<%- hidemy %>'>
772 773 774 775 776 777 778 779 780 781 782 783
		  My Profiles
		  <span class='category_collapsable expanded'></span>
		</span>
		<ul class='list-category' id='myprofiles'>
		<% _.each(myprofiles, function(value, key) {  %>
		  <li class='list-group-item profile-item clearfix'
		      value='<%- key %>' name='<%- value.name %>'><%- value.name %>
		    <div class="project_info pull-right"><%- value.project %></div>
		  </li>
		<% }); %>
		</ul>

784 785 786 787 788 789 790 791 792 793 794 795 796 797
	      <% _.each(projprofiles, function(value, key) { %>
		<span id='title_<%- key %>_profiles'>
		  <%- key %>
		  <span class='category_collapsable expanded'></span>
		</span>
		<ul class='list-category' id='<%- key %>_profiles'>
		<% _.each(value, function(v,k) { %>
		  <li class='list-group-item profile-item clearfix'
		    value='<%- k %>' name='<%- v.name %>'><%- v.name %> 
		  </li>
		<% }); %>
		</ul>
	      <%}); %>

798
		<span id='title_default_profiles'>
799 800 801
		  Default Profiles
		  <span class='category_collapsable expanded'></span>
		</span>
802
		<ul class='list-category' id='default_profiles'>
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 838 839
	      <% _.each(systemprofiles, function(value, key) { %>
		<li class='list-group-item profile-item clearfix'
		    value='<%- key %>' name='<%- value.name %>'><%- value.name %>
		</li>
	      <% }); %>
		</ul>

		<span id='title_other_profiles'>
		  Other Profiles
		  <span class='category_collapsable expanded'></span>
		</span>
		<ul class='list-category' id='other_profiles'>
	      <% _.each(otherprofiles, function(value, key) { %>
		<li class='list-group-item profile-item clearfix'
		    value='<%- key %>' name='<%- value.name %>'><%- value.name %>
		    <div class="project_info pull-right"><%- value.project %></div>
		</li>
	      <% }); %>
		</ul>
	    </ul>
	  </div> 
	  <div class='col-md-9 col-sm-9 col-xs-9'>
	    <div class='panel-body'>
	      <span id='showtopo_title'></span>
	      <div id='showtopo_details'>
		  <div class='clearfix'>
		      <div class='col-md-3'>Created By:</div>
		      <div id='showtopo_author' class='col-md-9'></div>
		  </div>
		  <div class='clearfix'>
		      <div class='col-md-3'>Project:</div>
		      <div id='showtopo_project' class='col-md-9'></div>
		  </div>
		  <div class='clearfix'>
		      <div class='col-md-3'>Latest Version:</div>
		      <div id='showtopo_version' class='col-md-9'></div>
		  </div>
840 841 842 843 844 845 846 847
		  <div class='clearfix hidden showtopo_repoinfo'>
		      <div class='col-md-3'>Repo Based?:</div>
		      <div id='showtopo_repobased' class='col-md-9'>Yes</div>
		  </div>
		  <div class='clearfix hidden showtopo_repoinfo'>
		      <div class='col-md-3'>Repo Hash:</div>
		      <div id='showtopo_repohash' class='col-md-9'></div>
		  </div>
848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865
		  <div class='clearfix'>
		      <div class='col-md-3'>Last Updated:</div>
		      <div id='showtopo_last_updated' class='col-md-9'></div>
		  </div>
		  <div class='clearfix'>
		      <div class='col-md-3'>Description:</div>
		      <div id='showtopo_description' class='col-md-9'></div>
		  </div>
	      </div>
	      <div id='showtopo_div' class='jacks'></div>
	    </div>
	  </div>
	</div>
	<div id='showtopo_buttons' class='pull-right'>
	  <button id='showtopo_select'
		  class='btn btn-primary btn-sm'
		  type='submit' name='select'>
	    Select Profile</button>
866 867
	  <button type='button' class='btn btn-default btn-sm'
		  id='showtopo_cancel'		  
868 869 870 871 872 873 874
		  data-dismiss='modal' aria-hidden='true'>
	    Cancel</button>
	</div>
      </div>
    </div>
  </div>
</div>
875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904
<!-- Graph Help -->
<div id='resgraph-help-modal' class='modal fade'>
  <div class='modal-dialog'>
    <div class='modal-content'>
      <div class='modal-body'>
        <button type='button' class='close' data-dismiss='modal'
                aria-hidden='true'>&times;</button>
	<br>
	<p>
	  The graph tells you how many of each node type are available
	  for use in an experiment, at a specific time in the
	  future. Note that nodes available immediately might not be
	  available later, although in general as you move further out
	  in time, more nodes are available.  Here are some helpful
	  features of the graphs:<ul>
	  <li> Click on a node type label to turn off that type's
	    line. This will rescale the other lines, sometimes
	    making it easier to see those other lines.</li>
	  <li> Hover over and move around the graph to show a
	    tooltip that will provide the date and time, and the free
	    count for all of the node types at the time stamp you are
	    hovering over.</li>
	  <li> To reserve nodes for an experiment, please visit the
	    <a href="reserve.php">reservation</a> page.
	  </ul>
	</p>
      </div>
    </div>
  </div>
</div>
905 906 907 908 909
<div id='waitwait_div'></div>
<div id='rspecview_div'></div>
<div id='ppviewmodal_div'></div>
<div id='ppmodal_div'></div>
<div id='instantiate_div'></div>
910
<div id='editmodal_div'></div>