Commit 346c338a authored by Leigh B Stoller's avatar Leigh B Stoller

Checkpoint reservation FAQ text so that other can edit.

parent 6662a20b
......@@ -2,7 +2,7 @@ $(function ()
{
'use strict';
var template_list = ["reserve-request", "reservation-list",
var template_list = ["reserve-request", "reserve-faq", "reservation-list",
"oops-modal", "waitwait-modal"];
var templates = APT_OPTIONS.fetchTemplateList(template_list);
var mainString = templates["reserve-request"];
......@@ -58,6 +58,18 @@ $(function ()
});
html = aptforms.FormatFormFieldsHorizontal(html);
$('#main-body').html(html);
$('.faq-contents').html(templates["reserve-faq"]);
// Handler for the FAQ link.
$('#reservation-faq-button').click(function (event) {
event.preventDefault();
sup.HideModal('#reservation-help-modal',
function () {
sup.ShowModal('#reservation-faq-modal');
});
});
// Set the manual link since the FAQ is not a template.
$('#reservation-manual').attr("href", window.MANUAL);
// This activates the popover subsystem.
$('[data-toggle="popover"]').popover({
......
......@@ -149,7 +149,7 @@ REQUIRE_UNDERSCORE();
REQUIRE_SUP();
REQUIRE_MOMENT();
REQUIRE_APTFORMS();
AddTemplateList(array("reserve-request", "reservation-list",
AddTemplateList(array("reserve-request", "reserve-faq", "reservation-list",
"oops-modal", "waitwait-modal"));
SPITREQUIRE("js/reserve.js",
"<script src='js/lib/jquery.tablesorter.min.js'></script>\n".
......
This diff is collapsed.
......@@ -321,9 +321,7 @@
promised to another user you will not be allowed to keep
them past the end of the reservation (requests to extend
your experiment will be denied).</li>
<li> Cluster; at what cluster you want resources. If you
need resources at multiple clusters, you need to submit a
request for each cluster.</li>
<li> Cluster; at what cluster you want resources.</li>
<li> Node type; reservations are for specific node types. You
might not care what node type you get, but the reservation
system requires it.</li>
......@@ -351,7 +349,27 @@
reservations will indicate which requests are pending
approval.
</p>
<p>
More info can be found in the
<a id="reservation-faq-button" href="#">reservation FAQ.</a>
</p>
</div>
</div>
</div>
</div>
<!-- FAQ -->
<div id='reservation-faq-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>
<div class="clearfix"></div>
<center><h4>Reservation FAQ</h4></center>
<div class="faq-contents"></div>
</div>
</div>
</div>
</div>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment