-
Notifications
You must be signed in to change notification settings - Fork 0
/
spawn.html
78 lines (71 loc) · 2.71 KB
/
spawn.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{% extends "page.html" %}
{% if announcement_spawn is string %}
{% set announcement = announcement_spawn %}
{% endif %}
{% block main %}
<div class="container"
style="
background-image: url('{{ static_url("images/ndp-landing-image.png") }}');
background-position: center;
background-size: contain;
background-repeat: no-repeat;
background-color: rgba(255, 255, 255, 0.9);
">
{% block heading %}
<div class="row text-center">
<h1>NDP JupyterHub Server Options</h1>
<p><a href="https://portal.nrp-nautilus.io/resources" target="_blank">Available resources page</a></p>
</div>
{% endblock heading %}
<div class="row justify-content-center" style="
display: flex;
justify-content: center;
">
<div class="col-md-8">
{% if for_user and user.name != for_user.name -%}
<p>Spawning server for {{ for_user.name }}</p>
{% endif -%}
{% if error_message -%}<p class="spawn-error-msg alert alert-danger">Error: {{ error_message }}</p>{% endif %}
<form enctype="multipart/form-data"
id="spawn_form"
action="{{ url | safe }}"
method="post"
role="form">
{{ spawner_options_form | safe }}
<!-- <br>-->
<div class="feedback-container" style="
display: flex;
justify-content: center;
">
<button type="submit" class="btn btn-lg btn-primary" style="
background-color: #3182ce;
width: 300px;
height: 40px;
padding: 5px 5px;
font-size: 15px;
">Start</button>
<div class="feedback-widget hidden">
<i class="fa fa-spinner"></i>
</div>
</div>
</form>
<!-- <p>The National Data Platform was funded by-->
<!-- <a target="_blank" rel="noopener" class="chakra-link css-spn4bz" href="https://www.nsf.gov/awardsearch/showAward?AWD_ID=2333609">NSF 2333609</a>-->
<!-- under CI, CISE Research Resources programs. Any opinions, findings, conclusions, or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the funders.-->
<!-- </p>-->
</div>
</div>
</div>
{% endblock main %}
{% block script %}
{{ super() }}
<script>
// setup onSubmit feedback
$('form').submit((e) => {
var form = $(e.target);
form.find('.feedback-container>input').attr('disabled', true);
form.find('.feedback-container>*').toggleClass('hidden');
form.find('.feedback-widget>*').toggleClass('fa-pulse');
});
</script>
{% endblock script %}