]> ruin.nu Git - ndwebbie.git/blob - root/src/intel/planet.tt2
4e5eb631185398fbd9ceb3e990edbc69e80d5340
[ndwebbie.git] / root / src / intel / planet.tt2
1 [% META title = 'Intel' %]
2
3 <div class="leftinfo">
4 <form action="[% c.uri_for('planet',p.id) %]" method="post">
5         <p>Show last <input type="text" name="ticks" value="[% showticks %]"> ticks <input type="submit" value="Show"></p>
6 </form>
7 <form action="[% c.uri_for('postplanetupdate',p.id) %]" method="post">
8         <table>
9                 <tr>
10                         <th></th>
11                         <th>Value</th>
12                         <th>Change?</th>
13                 </tr>
14                 <tr><td>Nick</td>
15                         <td><input type="text" name="nick" value="[% p.nick %]"></td>
16                         <td><input type="checkbox" name="cnick"></td>
17                 </tr>
18                 <tr><td>Channel</td>
19                         <td><input type="text" name="channel" value="[% p.channel %]"></td>
20                         <td><input type="checkbox" name="cchannel"></td>
21                 </tr>
22                 <tr><td>Government</td>
23                         <td><select name="gov">
24 [% FOR gov IN govs %]
25                                 <option value="[% gov %]" [% IF gov == p.gov %]selected[% END %]> [% gov %]</option>
26 [% END %]
27                                 </select></td>
28                         <td><input type="checkbox" name="cgov"></td>
29                 </tr>
30                 <tr><td>Planet status</td>
31                         <td><select name="status">
32 [% FOR ps IN planetstatus %]
33                                 <option value="[% ps %]" [% IF ps == p.planet_status %]selected[% END %]> [% ps %]</option>
34 [% END %]
35                                 </select></td>
36                         <td><input type="checkbox" name="cstatus"></td>
37                 </tr>
38                 <tr><td>Alliance</td>
39                         <td><select name="alliance">
40 [% FOR a IN alliances %]
41                                 <option value="[% a.alliance %]" [% IF a.aid == p.aid %]selected[% END %]> [% a.alliance %]</option>
42 [% END %]
43                                 </select></td>
44                         <td><input type="checkbox" name="calliance"></td>
45                 </tr>
46         </table>
47         <p><input type="submit" value="Change">
48         </p>
49 </form>
50
51 [% IF channelusers.size > 0 %]
52 <table class="stats">
53         <tr>
54         <th>Coords</th><th>Alliance</th><th>Nick</th><th>Channel</th>
55         </tr>
56         [% FOR cu IN channelusers %]
57         <tr>
58                 <td><a href="[% c.uri_for('planet',cu.id) %]">[% cu.coords %]</a></td>
59                 <td>[% cu.alliance %]</td><td>[% cu.nick %]</td><td>[% cu.channel %]</td>
60         </tr>
61         [% END %]
62 </table>
63 [% END %]
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>Ingal</th><th>Reported by</th>
69         </tr>
70 [% FOR i IN incoming %]
71         <tr class="[% loop.count % 2 == 0 ? 'even' : 'odd' %]">
72         <td>[% i.salliance %]</td>
73         <td><a href="[% c.uri_for('planet',i.sender) %]">[% i.scoords %]</a></td>
74         <td class="[% i.ingal ? 'ingal' : i.mission %]">[% i.mission %]</td>
75         <td align="center">[% i.landingtick %]</td>
76         <td align="center">[% i.eta %]</td>
77         <td>[% i.amount %]</td>
78         <td>[% i.ingal %]</td>
79         <td>[% i.username %]</td>
80         </tr>
81 [% END %]
82 </table>
83
84 <table class="stats">
85         <tr>
86                 <th>Mission</th><th>Landing tick</th><th>ETA</th><th>Amount</th>
87                 <th>Target</th><th>Alliance</th>
88                 <th>Ingal</th><th>Reported by</th>
89         </tr>
90 [% FOR i IN outgoing %]
91         <tr class="[% loop.count % 2 == 0 ? 'even' : 'odd' %]">
92         <td class="[% i.ingal ? 'ingal' : i.mission %]">[% i.mission %]</td>
93         <td align="center">[% i.landingtick %]</td>
94         <td align="center">[% i.eta %]</td>
95         <td>[% i.amount %]</td>
96         <td><a href="[% c.uri_for('planet',i.target) %]">[% i.tcoords %]</a></td>
97         <td>[% i.talliance %]</td>
98         <td>[% i.ingal %]</td>
99         <td>[% i.username %]</td>
100         </tr>
101 [% END %]
102 </table>
103 </div>
104
105 <div class="leftinfo">
106 [% FOR post IN posts %]
107 <fieldset class="forum-post">
108 <legend class="unread:[% post.unread %]"><b>[% post.username %]</b> : [% post.time %]</legend>
109         [% post.message %]
110 </fieldset>
111 [% END %]
112
113 <form action="[% c.uri_for('postplanetcomment', p.id) %]" method="post"><fieldset class="forum-post"> <legend>New Reply</legend>
114         <textarea rows="10" cols="60" name="message"></textarea>
115         <input type="submit" value="Submit">
116 </fieldset></form>
117 </div>