]> ruin.nu Git - ndwebbie.git/blobdiff - templates/raids.tmpl
gettargets
[ndwebbie.git] / templates / raids.tmpl
index 74489f3e8263d7edee604ce05344b12cc3ce86cf..cf6d1482469235c751b29e067b6c4980fd0ad143 100644 (file)
@@ -33,9 +33,9 @@
 <form action="index.pl" method="post">
        <p>
                <input type="button" value="Update claims"
-                       onclick = "update('index.pl?page=raids&amp;raid=<TMPL_VAR NAME=Raid>')"/>
+                       onclick = "update('index.pl?page=raids&amp;xml=1&amp;raid=<TMPL_VAR NAME=Raid>')"/>
                <input type="button" value="Update target list"
-                       onclick = "listTargets('index.pl?page=raids&amp;raid=<TMPL_VAR NAME=Raid>')"/>
+                       onclick = "listTargets('index.pl?page=raids&amp;xml=1&amp;raid=<TMPL_VAR NAME=Raid>')"/>
        </p>
 </form>
 <TMPL_LOOP Targets>
        <p class="claimlinks">
        <span id="claim<TMPL_VAR NAME=Id>">
        <TMPL_LOOP Claims>
+       <a class="<TMPL_VAR NAME=Command>" href="/index.pl?page=raids&amp;raid=<TMPL_VAR NAME=Raid>&amp;cmd=<TMPL_VAR NAME=Command>&amp;target=<TMPL_VAR NAME=Target>&amp;wave=<TMPL_VAR NAME=Wave>#<TMPL_VAR NAME=Target>"><TMPL_VAR NAME=Command> wave <TMPL_VAR NAME=Wave><TMPL_IF Claimers> (<TMPL_VAR NAME=Claimers>)</TMPL_IF></a>
+       <TMPL_IF Owner><a href="/index.pl?page=raids&amp;raid=<TMPL_VAR NAME=Raid>&amp;target=<TMPL_VAR NAME=Target>&amp;cmd=set&amp;joinable=<TMPL_IF Joinable>FALSE<TMPL_ELSE>TRUE</TMPL_IF>&amp;wave=<TMPL_VAR NAME=Wave>#<TMPL_VAR NAME=Target>"><TMPL_IF Joinable>N<TMPL_ELSE>J</TMPL_IF></a></TMPL_IF>
        </TMPL_LOOP>
        </span>
        </p>
        </form>
 </fieldset>
 </TMPL_LOOP>
+<TMPL_IF Ajax>
+       <script type="text/javascript">
+       update('index.pl?page=raids&amp;xml=1&amp;raid=<TMPL_VAR NAME=Raid>');
+       </script>
+</TMPL_IF>
 
 </TMPL_IF>