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