2024-02-14 10:02:07 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>[TEST] Spawner Form</title>
|
|
|
|
<!-- Latest compiled and minified CSS -->
|
|
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.4.1/dist/css/bootstrap.min.css"
|
|
|
|
integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
|
|
|
|
|
|
|
|
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
|
|
|
|
<script src="https://code.jquery.com/jquery-1.12.4.min.js"
|
|
|
|
integrity="sha384-nvAa0+6Qg9clwYCGGPpDQLVpLNn0fRaROjHqs13t4Ggj3Ez50XnGQqc/r8MhnRDZ"
|
|
|
|
crossorigin="anonymous"></script>
|
|
|
|
|
|
|
|
<!-- Latest compiled and minified JavaScript -->
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.4.1/dist/js/bootstrap.min.js"
|
|
|
|
integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd"
|
|
|
|
crossorigin="anonymous"></script>
|
|
|
|
|
2024-02-19 16:49:10 +01:00
|
|
|
<!-- Font-awesome CSS stylesheet -->
|
|
|
|
<link href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.css" rel="stylesheet"
|
|
|
|
type='text/css'>
|
|
|
|
|
2024-02-14 10:02:07 +01:00
|
|
|
<!-- Jupyter CSS stylesheet -->
|
|
|
|
<link rel="stylesheet" href="/static/jupyter.css" type="text/css">
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<div class="container">
|
|
|
|
|
|
|
|
<div class="row text-center">
|
|
|
|
<h1>🚧 Spawner options form 🚧</h1>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row col-sm-offset-2 col-sm-8">
|
|
|
|
<form enctype="multipart/form-data" id="spawn_form" action="/submit" method="post" role="form">
|
|
|
|
<br>
|
|
|
|
{{spawner_options_form | safe}}
|
|
|
|
<br>
|
|
|
|
<div class="feedback-container">
|
|
|
|
<input type="submit" value="Submit" class="btn btn-jupyter form-control">
|
|
|
|
<div class="feedback-widget hidden">
|
|
|
|
<i class="fa fa-spinner"></i>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="clearfix visible-block"></div>
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
<div class="row text-center">
|
|
|
|
<h2>🐛 Debug <a href="/">🔄</a></h2>
|
|
|
|
</div>
|
|
|
|
<div id="debug-results">
|
|
|
|
<div class="row col-sm-offset-2 col-sm-8">
|
|
|
|
<h3>🔤 Input options form</h3>
|
|
|
|
<pre>{{options|pprint}}</pre>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
var $debug = $('#debug-results');
|
|
|
|
var $form = $('#spawn_form');
|
|
|
|
|
|
|
|
$('input').change(function(){
|
|
|
|
$form.submit();
|
|
|
|
});
|
|
|
|
|
|
|
|
$('select').change(function(){
|
|
|
|
$form.submit();
|
|
|
|
});
|
|
|
|
|
|
|
|
$form.submit(function (e) {
|
|
|
|
e.preventDefault();
|
|
|
|
$.ajax({
|
|
|
|
type: "POST",
|
|
|
|
url: "/submit",
|
|
|
|
data: $("#spawn_form").serialize(),
|
|
|
|
success: function (content) {
|
|
|
|
$debug.empty();
|
|
|
|
$debug.append(content);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|