aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/admin/templates/problem_new.html
blob: ed8ad2a8b4a0cd9d0967a27736f336e59ff05fa5 (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
{{ 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 }}