diff options
Diffstat (limited to 'backend/admin/templates/problem_new.html')
| -rw-r--r-- | backend/admin/templates/problem_new.html | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/backend/admin/templates/problem_new.html b/backend/admin/templates/problem_new.html new file mode 100644 index 0000000..ed8ad2a --- /dev/null +++ b/backend/admin/templates/problem_new.html @@ -0,0 +1,32 @@ +{{ template "base.html" . }} + +{{ define "breadcrumb" }} +<a href="{{ .BasePath }}admin/dashboard">Dashboard</a> | <a href="{{ .BasePath }}admin/problems">Problems</a> +{{ end }} + +{{ define "content" }} +<form method="post"> + <div> + <label>Title</label> + <input type="text" name="title" required> + </div> + <div> + <label>Description</label> + <textarea name="description" rows="10" required></textarea> + </div> + <div> + <label>Language</label> + <select name="language" required> + <option value="php">PHP</option> + <option value="swift">Swift</option> + </select> + </div> + <div> + <label>Sample Code</label> + <textarea name="sample_code" rows="15" required></textarea> + </div> + <div> + <button type="submit">Create</button> + </div> +</form> +{{ end }} |
