]> ruin.nu Git - ndwebbie.git/blob - root/src/calls/edit.tt2
Converted check/stats page
[ndwebbie.git] / root / src / calls / edit.tt2
1 [% META title = 'Edit call' %]
2
3 <form action="[% c.uri_for('postcallupdate',call.id) %]" method="post">
4 <fieldset> <legend>Call details, call# [% call.id %]</legend>
5 <table>
6 <tr>
7 <td>
8 <ul>
9         <li>Current DC: [% call.dc %]</li>
10         <li>Member: [% call.member %] </li>
11         <li>SMS: [% call.sms %] </li>
12         <li>Coords: <a href="[% c.uri_for('/stats/planet', call.planet) %]">[% call.coords %]</a></li>
13         <li>Landing at tick: <br>
14                 <input type="text" name="tick" value="[% call.landing_tick %]">
15                 <input type="checkbox" name="ctick"></li>
16         <li>Current ETA: [% call.landing_tick - TICK %]</li>
17 </ul>
18 </td>
19 <td>
20         <textarea rows="8" cols="40" name="info">[% call.info %]</textarea>
21 </td>
22 <td><ul>
23         <li>Change Notes? <input type="checkbox" name="cinfo"></li>
24         <li><input type="submit" name="cmd" value="Submit"></li>
25         <li><input type="submit" name="cmd" value="Take call"></li>
26         <li><input type="submit" name="cmd" value="[% cover %] call"></li>
27         <li><input type="submit" name="cmd" value="[% ignore %] call"></li>
28 </ul></td>
29 </tr>
30 </table>
31 </fieldset>
32 </form>
33 <fieldset><legend>Attackers:</legend>
34 <form action="[% c.uri_for('postattackerupdate',call.id) %]" method="post">
35         <table>
36         <tr>
37         <th></th>
38         <th>Coords</th>
39         <th>Planet status</th>
40         <th>Alliance</th>
41         <th>Race</th>
42         <th>Initial ETA</th>
43         <th>Amount</th>
44         <th>Shiptypes</th>
45         <th>Fleet</th>
46         <th>Change/remove?</th>
47         </tr>
48 [% FOR a IN attackers %]
49         <tr class="[% loop.count % 2 == 0 ? 'even' : 'odd' %]">
50                 <td><input type="button" onclick="$('#attacker[% a.id %]').toggle()" value="&dArr;" title="Show fleets"></td>
51                 <td><a href="[% c.uri_for('/stats/planet',a.id) %]">[% a.coords %]</a></td>
52                 <td class="[% a.planet_status %]">[% a.planet_status %]</td>
53                 <td class="[% a.relationship %]">[% a.alliance %] ([% a.relationship %])</td>
54                 <td>[% a.race %]</td>
55                 <td>[% a.eta %]</td>
56                 <td>[% a.amount %]</td>
57                 <td><input class="coord" type="text" name="shiptype:[% a.id %]" value="[% a.shiptype %]"></td>
58                 <td>[% a.fleet %]</td>
59                 <td><input type="checkbox" name="change:[% a.id %]"></td>
60         </tr>
61         <tr id="attacker[% a.id %]" class="hidden">
62         <td></td>
63         <td colspan="8">
64         [% PROCESS inc/missionlist.tt2 missions=a.missions %]
65         </td></tr>
66 [% END %]
67         </table>
68         <p>
69         <input type="submit" name="cmd" value="Change">
70         <input type="submit" name="cmd" value="Remove">
71         </p>
72 </form>
73 </fieldset>
74 <fieldset><legend>Member fleet</legend>
75 [% PROCESS inc/missionlist.tt2 missions=fleets %]
76 </fieldset>
77 <fieldset><legend>Defenders</legend>
78 [% PROCESS inc/missionlist.tt2 missions=defenders %]
79 </fieldset>
80
81 <div>
82 [% FOR post IN posts %]
83 <fieldset class="forum-post">
84 <legend class="unread:[% post.unread %]"><b>[% post.username %]</b> : [% post.time %]</legend>
85         [% post.message %]
86 </fieldset>
87 [% END %]
88
89 <form action="[% c.uri_for('postcallcomment', call.id) %]" method="post"><fieldset class="forum-post"> <legend>New Reply</legend>
90         <textarea rows="10" cols="60" name="message"></textarea>
91         <input type="submit" value="Submit">
92 </fieldset></form>
93 </div>