diff options
-rw-r--r-- | hosted/edit_uuid.html | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/hosted/edit_uuid.html b/hosted/edit_uuid.html new file mode 100644 index 0000000..f0863f1 --- /dev/null +++ b/hosted/edit_uuid.html @@ -0,0 +1,110 @@ +{{define "edit_uuid"}} +<!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"> + + <form method="POST"> + + <div class="form-group row"> + <label for="challengeUUID" class="col-sm-2 col-form-label">UUID:</label> + <div class="col-sm-10"> + <input type="text" class="form-control" id="challengeUUID" placeholder="uuid" value="{{.UUID}}" name="challengeUUID"> + </div> + </div> + + <div class="form-group row"> + <label for="challengeName" class="col-sm-2 col-form-label">Name:</label> + <div class="col-sm-10"> + <input type="text" class="form-control" id="challengeName" placeholder="name" value="{{.Name}}" name="challengeName"> + </div> + </div> + + <div class="form-group row"> + <label for="challengeDescription" class="col-sm-2 col-form-label">Description:</label> + <div class="col-sm-10"> + <input type="text" class="form-control" id="challengeDescription" placeholder="description" value="{{.Description}}" name="challengeDescription"> + </div> + </div> + + <div class="form-group row"> + <label for="challengeFlag" class="col-sm-2 col-form-label">Flag:</label> + <div class="col-sm-10"> + <input type="text" class="form-control" id="challengeFlag" placeholder="flag" value="{{.Flag}}" name="challengeFlag"> + </div> + </div> + + <div class="form-group row"> + <label for="challengeContainer" class="col-sm-2 col-form-label">Container:</label> + <div class="col-sm-10"> + <input type="text" class="form-control" id="challengeContainer" placeholder="container" value="{{.Container}}" name="challengeContainer"> + </div> + </div> + + <div class="form-group row"> + <label for="challengeCategory" class="col-sm-2 col-form-label">Category:</label> + <div class="col-sm-10"> + <input type="text" class="form-control" id="challengeCategory" placeholder="category" value="{{.Category}}" name="challengeCategory"> + </div> + </div> + + <div class="form-group row"> + <label for="challengePoints" class="col-sm-2 col-form-label">Points:</label> + <div class="col-sm-10"> + <input type="text" class="form-control" id="challengePoints" placeholder="points" value="{{.Points}}" name="challengePoints"> + </div> + </div> + + <div class="form-group row"> + <label for="challengeStatic" class="col-sm-2 col-form-label">Static:</label> + <div class="col-sm-10"> + <input type="text" class="form-control" id="challengeStatic" placeholder="static" value="{{.Static}}" name="challengeStatic"> + </div> + </div> + + <div class="form-group row"> + <div class="col-sm-10"> + <button type="submit" class="btn btn-primary float-right">Save changes</button> + </div> + </div> + + </form> + </div> + </main> + </body> +</html> +{{end}} |