about summary refs log tree commit diff
path: root/templates/battleNew.html
diff options
context:
space:
mode:
authorEmile <git@emile.space>2024-11-09 16:28:47 +0100
committerEmile <git@emile.space>2024-11-09 16:28:47 +0100
commit5fb4b1f7dd6b373786a64dfe0ac59955fb6d964c (patch)
tree26ae664159632ae14b2c608d01ee4561b931bf8d /templates/battleNew.html
parentc685cc8f25adc5b2b72e4bda185fef7ec8dd6592 (diff)
yolo r2con push all
Diffstat (limited to 'templates/battleNew.html')
-rw-r--r--templates/battleNew.html40
1 files changed, 38 insertions, 2 deletions
diff --git a/templates/battleNew.html b/templates/battleNew.html
index 30923e7..1992e1d 100644
--- a/templates/battleNew.html
+++ b/templates/battleNew.html
@@ -50,7 +50,21 @@
           <label class="label-for-check" for="bit-{{$bit.ID}}">{{$bit.Name}}</label>
           {{- end }}
         </td>
-      </td>
+      </tr>
+
+      <tr>
+        <td>Arena size:</td>
+        <td>
+          <input class="border" type="number" name="arena-size" id="arena-size" value="4096"/>
+        </td>
+      </tr>
+
+      <tr>
+        <td>Max Rounds:</td>
+        <td>
+          <input class="border" type="number" name="max-rounds" id="max-rounds" value="100"/>
+        </td>
+      </tr>
 
       <tr>
         <td>Public:</td>
@@ -63,6 +77,23 @@
       </td>
 
       <tr>
+        <td>Owners</td>
+        <td>
+          {{ $viewerID := .user.ID }}
+          {{ range $idx, $u := .users}}{{if $idx}},{{- end}}
+            <input
+              type="checkbox"
+              class="check-with-label"
+              name="owner-{{ $u.ID }}"
+              id="owner-{{ $u.ID }}"
+              {{if eq $u.ID $viewerID}}checked{{end}}
+              />
+            <label class="label-for-check" for="owner-{{ $u.ID }}">{{$u.Name}}</label>
+          {{- end }}
+        </td>
+      </tr>
+
+      <tr>
         <td></td>
         <td><input class="border" type="submit" value="Create"></td>
       </tr>
@@ -70,11 +101,16 @@
       {{ if .res }}
       <tr>
         <td></td>
-        <td>{{ .res }}</td>
+        <td><div style="border: 1px solid blue; padding: 1ex">{{ .res }}</div></td>
       </tr>
       {{ end }}
     </form>
   </table>
+
+  <span id="debug"></span>
+  <h2><a href="#debug">Debug</a></h2>
+
+  <pre>{{ . }}</pre>
 </body>
 {{ template "footer" . }}
 {{ end }}