]> ruin.nu Git - ndwebbie.git/blobdiff - root/src/members/index.tt2
List of members with fleets and other information
[ndwebbie.git] / root / src / members / index.tt2
index 05e56d54018768cee881179c46cfb058f981a3dc..902c541ff1fc355b4907a19c5af2c45e906206e7 100644 (file)
@@ -18,7 +18,7 @@
 [% END %]
 <div class="clear"></div>
 
-[% IF c.user.planet %]
+[% IF p %]
 <table class="stats">
        <tr align="center"><th colspan="4">Rank</th>
        </tr>
        <tr><td></td><th>Target</th><th>Mission</th><th>Amount</th><th>Landing Tick</th><th>Back home</th><th>change?</th></tr>
 [% FOR f IN fleets %]
        <tr class="[% loop.count % 2 == 0 ? 'even' : 'odd' %]">
-               <td><input type="button" onclick="$('#fleet[% f.id %]').toggle()" value="&dArr;" title="Show fleets"></td>
+               <td><input type="button" onclick="$('#fleet[% f.fid %]').toggle()" value="&dArr;" title="Show fleets"></td>
                <td>[% IF f.target %]<a href="[% c.uri_for('/stats/planet',f.target) %]">[% f.coords %]</a>[% END %]</td>
                <td>[% f.mission %]</td>
                <td>[% f.amount %]</td><td>[% f.tick %]</td>
-               <td>[% IF f.back %]<input style="width:5em" type="text" name="back:[% f.id %]" value="[% f.back %]">[% END %]</td>
-               <td>[% IF f.back %]<input type="checkbox" name="change:[% f.id %]">[% END %]</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>
        </tr>
-       <tr id="fleet[% f.id %]" class="hidden">
+       <tr id="fleet[% f.fid %]" class="hidden">
                <td>
                <td colspan="5"><table>
        [% FOR s IN f.ships %]
 <fieldset class="forum-post"> <legend>SMS</legend>
        <p>Number:
        <input type="text" name="sms" value="[% u.sms %]">
+       Info to DCs: <input type="text" name="smsnote" value="[% u.sms_note | html %]">
+       </p>
+       <p>
+       Wake me up if needed:
+       <input type="checkbox" name="callme" value="TRUE"
+       [% IF u.call_if_needed %]checked[% END %]>
        <input type="submit" value="Submit">
        </p>
 </fieldset>