Newer
Older
Stefano Alberto Russo
committed
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
95
96
97
98
99
100
101
102
103
{% load static %}
{% include "header.html" %}
{% include "navigation.html" with main_path='/main/' %}
<br/>
<br/>
<div class="container">
<div class="dashboard">
<div class="span8 offset2">
<h1>Add container</h1>
<hr>
{% if not data.added %}
<h3>Configure the new container.</h3>
<br/>
<form action="#" method="POST">
{% csrf_token %}
<table class="dashboard" style="max-width:430px">
<tr>
<td><b>Type</b></td><td>
<select name="container_type" >
<option value="docker" selected>Docker</option>
<option value="singularity">Singularity</option>
</select>
</td>
</tr>
<tr>
<td><b>Registry</b></td><td>
<select name="container_registry" >
<option value="docker_local" selected>Local</option>
<option value="docker_hub">Docker Hub</option>
<option value="singularityhub">Singularity Hub</option>
</select>
</td>
</tr>
<tr>
<td><b>Container image</b></td>
<td>
<input type="text" name="container_image" value="" placeholder="" size="23" required />
</td>
</tr>
<tr>
<td><b>Service port(s)</b></td>
<td>
<input type="text" name="container_service_ports" value="" placeholder="" size="5" required />
</td>
</tr>
<tr>
<td colspan=2 align=center style="padding:20px">
<input type="submit" value="Add">
</td>
</tr>
</table>
</form>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
{% else %}
Ok, Container added. Go back to your <a href="/tasks">tasks list</a>.
{% endif %}
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
</div>
</div>
</div>
{% include "footer.html" %}