Newer
Older
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<style>
<!--
/* The profile description should not be bold, even though it is inside the <label> tag */
font-weight: normal;
}
-->
input[type="range"] {
display: inline;
width: 40%;
}
output {
display: inline;
width: 20%;
}
</style>
<p>   </p>
<div class="text-center" style="width: 100%; text-align: center">
<details>
<summary>
<p style="font-size: 150%; text-align: left">Advanced Options </p>
</summary>
<p>Click the slider to adjust values; once clicked arrow keys can be used</p>
<div style="margin-right: 20%; margin-left: 20%;">
<p>
<label for="gpus">GPUs </label> max 4
<br/>
<input type="range" name="gpus" value="0" min="0" max="4" oninput="this.nextElementSibling.value = this.value"/>
<output> default 0 </output>
</p>
<p>
<label for="gputype">GPU type</label>
<br/>
<select name="gputype" style="display: inline">
<option value="" selected="selected">Any</option>
<option value="NVIDIA-GeForce-GTX-1080">NVIDIA-GeForce-GTX-1080</option>
<option value="NVIDIA-GeForce-GTX-1080-Ti">NVIDIA-GeForce-GTX-1080-Ti</option>
<option value="NVIDIA-GeForce-RTX-2080-Ti">NVIDIA-GeForce-RTX-2080-Ti</option>
<option value="NVIDIA-GeForce-RTX-3090">NVIDIA-GeForce-RTX-3090</option>
</select>
</p>
<p>   </p>
<p>
<label for="cores">Cores </label> max 64
<br/>
<input type="range" name="cores" value="8" min="4" max="64" step="4" oninput="this.nextElementSibling.value = this.value"/>
<output> default 8 </output>
</p>
<p>   </p>
<p>
<label for="ram">RAM, GB </label> max 216
<br/>
<input type="range" name="ram" value="64" min="8" max="216" step="8" oninput="this.nextElementSibling.value = this.value"/>
<output> default 64 </output>
</p>
<!-- <label for="cephfscourse">Test course shared PVC </label>
<input style="display: inline" type="checkbox" name="cephfscourse"> -->
<!--
<label for="cephfs">Mount CephFS (if assigned)</label>
<input style="display: inline" type="checkbox" name="cephfs">
<br/>
-->
</div>
</details>
</div>
<br/>
<div class='form-group' id='kubespawner-profiles-list'>
<label style="font-size: 150%; font-weight: normal;">Image</label>
{% for profile in profile_list %}
<label style="font-weight: normal;" for='profile-item-{{ loop.index0 }}' class='form-control input-group'>
<div class='col-md-1'>
<input type='radio' name='profile' id='profile-item-{{ loop.index0 }}' value='{{ loop.index0 }}' {% if profile.default %}checked{% endif %} />
</div>
<div class='col-md-11'>
<strong>{{ profile.display_name }}</strong>
{% if profile.description %}
<p>{{ profile.description }}</p>
{% endif %}
</div>
</label>
{% endfor %}
</div>