]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Make a merge player form. Does not do anything yet though.
authorAnt Zucaro <azucaro@gmail.com>
Mon, 16 Jun 2014 02:37:02 +0000 (22:37 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Mon, 16 Jun 2014 02:37:02 +0000 (22:37 -0400)
xonstat/templates/merge.mako

index da82beb2a7bd22322d580f1b7c5bae69ca54bbbb..1b4f8efcec026aca01e77c4ed07e0b6747b509a6 100644 (file)
@@ -7,5 +7,44 @@ ${nav.nav('players')}
 
 <h1>Player Merge</h1>
 
-<h2>Merge two players below. The destination player_id is on the right.</h2>
-<p>(the destination player_id is the one that lives on after the merge)</p>
+<h2>Merge two players below.</h2>
+
+<div class="row">
+  <div class="span6">
+    <form style="margin-top:20px;" class="form-horizontal">
+      <fieldset>
+
+        <div class="control-group">
+          <label class="control-label" for="w_pid">Winning Player</label>
+          <div class="controls">
+            <input id="w_pid" name="w_pid" placeholder="Player ID #" class="input-small" type="text">
+            <p class="help-block">This player record will live on after the merge is complete.</p>
+          </div>
+        </div>
+
+        <div class="control-group">
+          <label class="control-label" for="l_pid">Losing Player</label>
+          <div class="controls">
+            <input id="l_pid" name="l_pid" placeholder="Player ID #" class="input-small" type="text">
+            <p class="help-block">This player record will be deactivated when the merge is complete.</p>
+          </div>
+        </div>
+
+        <!-- Form submitted? -->
+        <input type="hidden" name="fs" />
+
+        <input type="hidden" name="token" value=${request.session.get_csrf_token()}/>
+
+        <!-- Button -->
+        <div class="control-group">
+          <label class="control-label"></label>
+          <div class="controls">
+            <button id="submit" name="submit" type="submit" class="btn btn-primary">Submit</button>
+          </div>
+        </div>
+
+      </fieldset>
+    </form>
+
+  </div>
+</div>