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