source: trunk/admin/themes/default/template/comments.tpl @ 10100

Last change on this file since 10100 was 9586, checked in by patdenice, 14 years ago

feature:2114
Simplify all admin templates.

  • Property svn:eol-style set to LF
File size: 2.1 KB
Line 
1{footer_script}{literal}
2jQuery(document).ready(function(){
3  jQuery(".checkComment").click(function(event) {
4    if (event.target.type !== 'checkbox') {
5      var checkbox = jQuery(this).children("input[type=checkbox]");
6      jQuery(checkbox).attr('checked', !jQuery(checkbox).is(':checked'));
7    }
8  });
9
10  jQuery("#commentSelectAll").click(function () {
11    jQuery(".checkComment input[type=checkbox]").attr('checked', true);
12    return false;
13  });
14
15  jQuery("#commentSelectNone").click(function () {
16    jQuery(".checkComment input[type=checkbox]").attr('checked', false);
17    return false;
18  });
19
20  jQuery("#commentSelectInvert").click(function () {
21    jQuery(".checkComment input[type=checkbox]").each(function() {
22      jQuery(this).attr('checked', !$(this).is(':checked'));
23    });
24    return false;
25  });
26
27});
28{/literal}{/footer_script}
29
30<div class="titrePage">
31  <h2>{'Waiting'|@translate} {$TABSHEET_TITLE}</h2>
32</div>
33
34<h3>{'User comments validation'|@translate}</h3>
35
36{if !empty($comments) }
37<form method="post" action="{$F_ACTION}">
38 
39<table width="99%">
40  {foreach from=$comments item=comment name=comment}
41  <tr valign="top" class="{if $smarty.foreach.comment.index is odd}row2{else}row1{/if}">
42    <td style="width:50px;" class="checkComment">
43      <input type="checkbox" name="comments[]" value="{$comment.ID}">
44    </td>
45    <td>
46  <div class="comment">
47    <a class="illustration" href="{$comment.U_PICTURE}"><img src="{$comment.TN_SRC}"></a>
48    <p class="commentHeader"><strong>{$comment.AUTHOR}</strong> - <em>{$comment.DATE}</em></p>
49    <blockquote>{$comment.CONTENT}</blockquote>
50  </div>
51    </td>
52  </tr>
53  {/foreach}
54</table>
55
56  <p class="checkActions">
57    {'Select:'|@translate}
58    <a href="#" id="commentSelectAll">{'All'|@translate}</a>,
59    <a href="#" id="commentSelectNone">{'None'|@translate}</a>,
60    <a href="#" id="commentSelectInvert">{'Invert'|@translate}</a>
61  </p>
62
63  <p class="bottomButtons">
64    <input class="submit" type="submit" name="validate" value="{'Validate'|@translate}">
65    <input class="submit" type="submit" name="reject" value="{'Reject'|@translate}">
66  </p>
67
68</form>
69{/if}
Note: See TracBrowser for help on using the repository browser.