about summary refs log tree commit diff
path: root/hosted
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-10-18 23:22:25 +0200
committerEmile <hanemile@protonmail.com>2019-10-18 23:22:25 +0200
commit57b708418beede17ac18f20004eb3d47bebd41c0 (patch)
treee030e19dd6cac5135773a5295f4b87349456a3ef /hosted
parent09dcadfea9748bc0cb163b6dab8d527b6b850186 (diff)
created a create challenge page
Diffstat (limited to 'hosted')
-rw-r--r--hosted/create.html97
1 files changed, 97 insertions, 0 deletions
diff --git a/hosted/create.html b/hosted/create.html
new file mode 100644
index 0000000..d21d492
--- /dev/null
+++ b/hosted/create.html
@@ -0,0 +1,97 @@
+<!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="/edit">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>
+
+		          <div class="form-group">
+		        	<label for="challengeName">Challenge Name</label>
+		        	<input type="text" class="form-control" id="challengeName" placeholder="name">
+		        	<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">
+		        	<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">
+		        	<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="conatiner-name">
+		        	<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">
+		        	<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">
+		        	<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">
+		        	<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>