]> ruin.nu Git - ndwebbie.git/blobdiff - root/src/members/index.tt2
Revert "Remove attack groups"
[ndwebbie.git] / root / src / members / index.tt2
index 2120afe12ade5fba015d015d90275abdd930cf3a..a2ef6fbb653fca5faa277b7a7e08de42cc85bd03 100644 (file)
 [% END %]
 [% IF calls %]
 <table>
-       <tr><th>Call</th><th>DC</th><th>Landing tick</th><th>Races</th><th>Amount</th><th>Shiptypes</th><th>Current eta</th><th>Inital eta</th><th>Attackers</th></tr>
+       <tr><th>Call</th><th>Status</th><th>DC</th><th>Landing tick</th><th>Races</th><th>Amount</th><th>Shiptypes</th><th>Current eta</th><th>Inital eta</th><th>Attackers</th></tr>
        [% FOR call IN calls %]
        <tr align="center" class="[% loop.count % 2 == 0 ? 'even' : 'odd' %]">
-               <td class="[% UNLESS call.dc %]Hostile[%END%]"><a href="[% c.uri_for('/calls/edit',call.id) %]">[% call.id %]</a></td>
+               <td class="[% UNLESS call.dc %]Hostile[%END%]"><a href="[% c.uri_for('/calls/edit',call.call) %]">[% call.call %]</a></td>
+               <td>[% call.status %]</td>
                <td>[% call.dc %]</td>
                <td>[% call.landing_tick %]</td>
                <td>[% call.race.unique.join('/') %]</td>
@@ -82,7 +83,7 @@
        <li> Scan points: [% u.scan_points %] </li>
        <li> Humor points: [% u.humor_points %] </li>
        <li> Total points: [% u.total_points %] </li>
-       <li> Member of the following groups: [% groups.join(',') %]</li>
+       <li> Member of the following groups: [% groups.join(', ') %]</li>
        </ul>
 </fieldset>
 
@@ -98,6 +99,7 @@
                <td>[% f.amount %]</td><td>[% f.tick %]</td>
                <td>[% IF f.back %]<input style="width:5em" type="text" name="back:[% f.fid %]" value="[% f.back %]">[% END %]</td>
                <td>[% IF f.back %]<input type="checkbox" name="change:[% f.fid %]">[% END %]</td>
+               <td><a href="[% c.uri_for('/raids/fleetcalc',f.fid) %]" rel="external">Calc</a></td>
        </tr>
        <tr id="fleet[% f.fid %]" class="hidden">
                <td>
        </p>
 </form>
 </fieldset>
+<fieldset class="forum-post"> <legend>Attack classes</legend>
+<form action="[% c.uri_for('postattackgroups') %]" method="post">
+<p>Pick the classes you use for your attack fleets:</p>
+<p>
+FiCo: <input type="checkbox" name="class" value="x"[% IF attackgroups.grep('x').size > 0 %] checked[%END%]>
+FrDe: <input type="checkbox" name="class" value="y"[% IF attackgroups.grep('y').size > 0 %] checked[%END%]>
+CrBs: <input type="checkbox" name="class" value="z"[% IF attackgroups.grep('z').size > 0 %] checked[%END%]>
+<input type="submit" name="cmd" value="Submit">
+</p>
+</form>
+</fieldset>
 <form action="[% c.uri_for('posthostupdate') %]" method="post">
 <fieldset class="forum-post"> <legend>Hostname</legend>
        <p>Hostname:
        </p>
 </fieldset>
 </form>
-[% IF c.user.planet %]
-<form action="[% c.uri_for('postfleetupdate') %]" method="post">
-<fieldset class="forum-post"> <legend>Fleet</legend>
-       <p>Paste your total fleet from ships section on overview here (do it daily to see the menus):</p>
-       <textarea rows="15" cols="50" name="fleet"></textarea>
-       <br><input type="submit" value="Submit">
-</fieldset>
-</form>
-[% END %]
 </div>
 [% IF c.user.planet %]
 <img class="graph" src="[% c.uri_for('/graphs/planetstats',c.user.planet,STICK) %]" alt="stats for your planet" height="300" width="500">