blob: 8e27986ca4de815a9d4f041c45df7d118a12e0ca (
plain)
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
|
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
</head>
<body>
<nav class="navbar navbar-expand-md navbar-dark bg-dark mb-4">
<a class="navbar-brand" href="/">Circus manager</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="/">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="/create">Create</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/view">View</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/editSelect">Edit</a>
</li>
</ul>
<div class="btn-toolbar" role="toolbar">
<div class="btn-group mr-2" role="group">
<button class="btn btn-danger my-2 my-sm-0"
onclick="logoutThenRedirect()">Logout (currently unsupported)</button>
</div>
</div>
</div>
</nav>
<main class="container" role="main">
<div class="jumbotron">
<h1 class="display-4">Create a challenge</h1>
<form method="POST">
<div class="form-group">
<label for="challengeName">Challenge Name</label>
<input type="text" class="form-control" id="challengeName" placeholder="name" name="challengeName">
<small id="challengeNameHelp" class="form-text text-muted">Enter the name for your new challenge.</small>
</div>
<div class="form-group">
<label for="challengeDescription">Description</label>
<input type="text" class="form-control"
id="challengeDescription" placeholder="desciption" name="challengeDescription">
<small id="challengeNameHelp" class="form-text text-muted">Enter a description for your challenge.</small>
</div>
<div class="form-group">
<label for="challengeFlag">Flag</label>
<input type="text" class="form-control" id="challengeFlag" placeholder="flag" name="challengeFlag">
<small id="challengeFlag" class="form-text text-muted">Enter a flag for your challenge.</small>
</div>
<div class="form-group">
<label for="challengeContainer">Container</label>
<input type="text" class="form-control"
id="challengeContainer" placeholder="container-name" name="challengeContainer">
<small id="challengeFlag" class="form-text text-muted">Enter the name of the docker-container the challenge is based on. <br> Example: registry.darknebu.la/ctf-challenges/snakebtte</small>
</div>
<div class="form-group">
<label for="challengeCategory">Category</label>
<input type="text" class="form-control"
id="challengeCategory" placeholder="category" name="challengeCategory">
<small id="challengeFlag" class="form-text text-muted">Enter the challenge category</small>
</div>
<div class="form-group">
<label for="challengePoints">Points</label>
<input type="text" class="form-control" id="challengePoints" placeholder="Points" name="challengePoints">
<small id="challengeFlag" class="form-text text-muted">Enter the amount of points the challenge should give.</small>
</div>
<div class="form-check">
<input type="checkbox" class="form-check-input" id="challengeStatic" name="challengeStatic">
<label class="form-check-label" for="challangeStatic">Static Challenge</label>
<small id="challengeFlag" class="form-text text-muted">If the challenge is not hosted on a docker-container, check this.</small>
</div>
<br>
<div class="form-check">
<input type="checkbox" class="form-check-input" id="rickroll">
<label class="form-check-label" for="rickroll">I've read the <a href="https://www.youtube.com/watch?v=dQw4w9WgXcQ">Terms and Conditions</a></label>
</div>
<br>
<button type="submit" class="btn btn-primary">Submit</button>
</form>
</div>
</main>
</body>
</html>
|