Remove Persona since it was shut down. :(
[xonotic/xonstat.git] / xonstat / templates / merge.mako
1 <%inherit file="base.mako"/>
2 <%namespace name="nav" file="nav.mako" />
3
4 <%block name="navigation">
5 ${nav.nav('players')}
6 </%block>
7
8 <h1>Player Merge</h1>
9
10 <h2>Merge two players below.</h2>
11
12 % if len(request.session.peek_flash("failure")) > 0:
13 <div class="row">
14   <div class="span6">
15     <div class="alert alert-error">
16       <button type="button" class="close" data-dismiss="alert">&times;</button>
17       ${request.session.pop_flash("failure")[0]}
18     </div>
19   </div>
20 </div>
21 % endif
22
23 % if len(request.session.peek_flash("success")) > 0:
24 <div class="row">
25   <div class="alert alert-success">
26     <button type="button" class="close" data-dismiss="alert">&times;</button>
27     ${request.session.pop_flash("success")[0]}
28   </div>
29 </div>
30 % endif
31
32 <div class="row">
33   <div class="span6">
34     <form style="margin-top:20px;" class="form-horizontal">
35       <fieldset>
36
37         <div class="control-group">
38           <label class="control-label" for="w_pid">Winning Player</label>
39           <div class="controls">
40             <input id="w_pid" name="w_pid" placeholder="Player ID #" class="input-small" type="text">
41             <p class="help-block">This player record will live on after the merge is complete.</p>
42           </div>
43         </div>
44
45         <div class="control-group">
46           <label class="control-label" for="l_pid">Losing Player</label>
47           <div class="controls">
48             <input id="l_pid" name="l_pid" placeholder="Player ID #" class="input-small" type="text">
49             <p class="help-block">This player record will be deactivated when the merge is complete.</p>
50           </div>
51         </div>
52
53         <!-- Form submitted? -->
54         <input type="hidden" name="fs" />
55
56         <input type="hidden" name="csrf_token" value="${request.session.get_csrf_token()}"/>
57
58         <!-- Button -->
59         <div class="control-group">
60           <label class="control-label"></label>
61           <div class="controls">
62             <button id="submit" name="submit" type="submit" class="btn btn-primary">Submit</button>
63           </div>
64         </div>
65
66       </fieldset>
67     </form>
68
69   </div>
70 </div>