From: <ri...@us...> - 2008-06-26 15:55:38
|
Revision: 13362 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=13362&view=rev Author: ricks99 Date: 2008-06-26 08:55:15 -0700 (Thu, 26 Jun 2008) Log Message: ----------- [UI] move select all check to column heading, as in other pages. Modified Paths: -------------- branches/1.10/templates/tiki-list_comments.tpl Modified: branches/1.10/templates/tiki-list_comments.tpl =================================================================== --- branches/1.10/templates/tiki-list_comments.tpl 2008-06-26 14:57:38 UTC (rev 13361) +++ branches/1.10/templates/tiki-list_comments.tpl 2008-06-26 15:55:15 UTC (rev 13362) @@ -11,7 +11,7 @@ <input type="hidden" name="sort_mode" value="{$sort_mode|escape}" /> </td> </tr> -<tr><td class="findtable" colspan="2"> +<tr><td class="findtable" colspan="2">{tr}in{/tr}: {*<select name="types[]" multiple="multiple" size="5">*} {foreach key=key item=selected from=$list_types} <input type="checkbox" name="types[]" value="{$key|escape}" {if $selected eq 'y'}checked="checked"{/if} />{tr}{$key|escape}{/tr} @@ -29,23 +29,21 @@ {section name=ix loop=$types} <input type="hidden" name="types[]" value="{$types[ix]|escape}" /> {/section} -<div class="formcolor"> + +{/if} + +<table class="normal"> +<tr> +<th class="heading">{if $comments} <script type="text/javascript"> <!--//--><![CDATA[//><!-- // check / uncheck all. // in the future, we could extend this to happen serverside as well for the convenience of people w/o javascript. // for now those people just have to check every single box - document.write("<input name=\"switcher\" id=\"clickall\" type=\"checkbox\" onclick=\"switchCheckboxes(this.form,'checked[]',this.checked)\"/>"); - document.write("<label for=\"clickall\">{tr}Select All{/tr}</label>"); + document.write("<input name=\"switcher\" id=\"clickall\" type=\"checkbox\" title=\"{tr}Select All{/tr}\" onclick=\"switchCheckboxes(this.form,'checked[]',this.checked)\"/>"); //--><!]]> -</script> - {tr}Perform action with checked:{/tr} <input type="submit" name="remove" value="{tr}Delete{/tr}" /> -</div> -{/if} - -<table class="normal"> -<tr> -<th class="heading"> </th> +</script>{/if} +</th> {if is_array($types) and count($types) > 1}<th class="heading">{self_link _class="tableheading" _sort_arg="sort_mode" _sort_field="objectType"}{tr}Type{/tr}{/self_link}</th>{/if} <th class="heading">{self_link _class="tableheading" _sort_arg="sort_mode" _sort_field="object"}{tr}Object{/tr}{/self_link}</th> <th class="heading">{self_link _class="tableheading" _sort_arg="sort_mode" _sort_field="title"}{tr}Title{/tr}{/self_link}</th> @@ -73,16 +71,7 @@ </table> {if $comments} <div class="formcolor"> -<script type="text/javascript"> -<!--//--><![CDATA[//><!-- - // check / uncheck all. - // in the future, we could extend this to happen serverside as well for the convenience of people w/o javascript. - // for now those people just have to check every single box - document.write("<input name=\"switcher\" id=\"clickall\" type=\"checkbox\" onclick=\"switchCheckboxes(this.form,'checked[]',this.checked)\"/>"); - document.write("<label for=\"clickall\">{tr}Select All{/tr}</label>"); -//--><!]]> -</script> - {tr}Perform action with checked:{/tr} <input type="submit" name="remove" value="{tr}Delete{/tr}" /> +{tr}Perform action with checked:{/tr} <input type="submit" name="remove" value="{tr}Delete{/tr}" /> </div> </form> {/if} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |