]> ruin.nu Git - ndwebbie.git/blob - root/src/alliances/edit.tt2
3c766d1ddead456d0d3d2292498d746b9de8719f
[ndwebbie.git] / root / src / alliances / edit.tt2
1 [% META title = 'Edit Alliance' %]
2
3 <fieldset> <legend>Alliances: </legend>
4 <form action="[% c.uri_for('postallianceupdate',a.id) %]" method="post">
5 <div class="leftinfo">
6         <p>Alliance: [% a.name %]</p>
7         <p>Relationship: <select name="relationship">
8 [% FOR rel IN ['','Friendly','NAP','Hostile'] %]
9                 <option value="[% rel %]"[% IF rel == a.relationship %]selected[% END %]>[% rel %]</option>
10 [% END %]
11                 </select>
12                 <input type="checkbox" name="crelationship"></p>
13         <p>Paste a list of coords that you want to add to this alliance</p>
14         <textarea rows="10" cols="40" name="coords"></textarea>
15         <p class="claimlinks"><input type="submit" value="Submit"></p>
16 </div>
17 </form>
18 <div class="leftinfo">
19 <fieldset> <legend></legend>
20 <form action="[% c.uri_for('postremoveallplanets',a.id) %]" method="post">
21         <p>Yes, remove all planets <input type="checkbox" name="cremoveall"
22                 onclick="$('#removeall').attr('disabled',null)"></p>
23         <p><input type="submit" id='removeall' disabled value="Remove All Planets"></p>
24 </form>
25 </fieldset>
26 </div>
27 </fieldset>
28 <div class="leftinfo">
29 <img class="graph" src="[% c.uri_for('/graphs/alliancevsintel',a.id,STICK) %]" alt="Alliance size and score vs members" height="300" width="500">
30 <img class="graph" src="[% c.uri_for('/graphs/avgalliancevsintel',a.id,STICK) %]" alt="Avg alliance size and score vs members" height="300" width="500">
31 </div>
32 <div class="leftinfo">
33 <table class="stats">
34         <tr>
35                 <th><a href="[% c.uri_for('edit',a.id,'coords') %]">Coords</a></th>
36                 <th>Nick</th>
37                 <th><a href="[% c.uri_for('edit',a.id,'hit_us') %]">Hit us</a></th>
38                 <th>Planet</th>
39                 <th><a href="[% c.uri_for('edit',a.id,'race') %]">Race</a></th>
40                 <th><a href="[% c.uri_for('edit',a.id,'sizerank') %]">Size (rank)</a></th>
41                 <th><a href="[% c.uri_for('edit',a.id,'scorerank') %]">Score (rank)</a></th>
42                 <th><a href="[% c.uri_for('edit',a.id,'valuerank') %]">Value (rank)</a></th>
43                 <th><a href="[% c.uri_for('edit',a.id,'xprank') %]">XP (rank)</a></th>
44         </tr>
45 [% FOR m IN members %]
46         <tr class="[% loop.count % 2 == 0 ? 'even' : 'odd' %]">
47                 <td><a href="[% c.uri_for('/stats/planet',m.id) %]">[% m.coords %]</a></td>
48                 <td class="[% m.planet_status %]"><a href="[% c.uri_for('/intel/planet',m.id) %]">[% m.nick %]([% m.planet_status %])</a></td>
49                 <td>[% m.hit_us %]</td>
50                 <td>[% m.ruler %] <b>OF</b> [% m.planet %]</td>
51                 <td>[% m.race %]</td>
52                 <td>[% m.size %] ([% m.sizerank %])</td>
53                 <td>[% m.score %] ([% m.scorerank %])</td>
54                 <td>[% m.value %] ([% m.valuerank %])</td>
55                 <td>[% m.xp %] ([% m.xprank %])</td>
56         </tr>
57 [% END %]
58 </table>
59 </div>
60 <div class="leftinfo">
61 <form action="[% c.uri_for('edit',a.id,order) %]" method="post">
62         <p>Show last <input type="text" name="ticks" value="[% showticks %]"> ticks <input type="submit" value="Show"></p>
63 </form>
64 <table class="stats">
65         <tr>
66                 <th>Alliance</th><th>Sender</th>
67                 <th>Mission</th><th>Landing tick</th><th>ETA</th><th>Amount</th>
68                 <th>Target</th><th>Alliance</th>
69                 <th>Reported by</th>
70         </tr>
71 [% FOR i IN intel %]
72         <tr class="[% loop.count % 2 == 0 ? 'even' : 'odd' %]">
73         <td>[% i.oalliance %]</td>
74         <td><a href="[% c.uri_for('/intel/planet',i.sender) %]">[% i.ocoords %]</a></td>
75         <td class="[% i.mission %]">[% i.mission %]</td>
76         <td align="center">[% i.landingtick %]</td>
77         <td align="center">[% i.eta %]</td>
78         <td>[% i.amount %]</td>
79         <td><a href="[% c.uri_for('/intel/planet',i.target) %]">[% i.tcoords %]</a></td>
80         <td>[% i.talliance %]</td>
81         <td>[% i.username %]</td>
82         </tr>
83 [% END %]
84 </table>
85 </div>