-
Notifications
You must be signed in to change notification settings - Fork 67
Expand file tree
/
Copy pathupdate.html
More file actions
28 lines (28 loc) · 1.25 KB
/
update.html
File metadata and controls
28 lines (28 loc) · 1.25 KB
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
{% extends "admin/challenges/update.html" %}
{% block category %}
<div class="form-group">
<label>
Category<br>
<small class="form-text text-muted">Challenge Category</small>
</label>
<input type="text" class="form-control chal-category" name="category" value="{{ challenge.category }}">
</div>
<div class="form-group">
<label for="DockerImage" id='dockerimage_label'>Docker Image:
<i class="far fa-question-circle text-muted cursor-help" data-toggle="tooltip" data-placement="right" title="The docker image for your challenge"></i>
</label>
<select id="dockerimage_select" name="docker_image" class="form-control" required></select>
</div>
<div class="form-group">
<label for="ports" id="ports_label"><span id="ports_text">Published Ports, Separated With Comma:</span>
<i id="ports_tooltip" class="far fa-question-circle text-muted cursor-help" data-toggle="tooltip" data-placement="right" title="Leave empty to publish all exposed ports"></i>
</label>
<input id="docker_image_ports" type="text" class="form-control" name="ports">
</div>
{% endblock %}
{% block footer %}
<script>
var DOCKER_IMAGE = '{{ challenge.docker_image }}';
var DOCKER_IMAGE_PORTS = '{{ challenge.ports }}';
</script>
{% endblock %}