diff options
Diffstat (limited to 'admin/themes/default/template/comments.tpl')
-rw-r--r-- | admin/themes/default/template/comments.tpl | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/admin/themes/default/template/comments.tpl b/admin/themes/default/template/comments.tpl index 67a392db7..3b3a40422 100644 --- a/admin/themes/default/template/comments.tpl +++ b/admin/themes/default/template/comments.tpl @@ -15,26 +15,26 @@ jQuery(document).ready(function(){ jQuery(".checkComment").click(function(event) { var checkbox = jQuery(this).children("input[type=checkbox]"); if (event.target.type !== 'checkbox') { - jQuery(checkbox).attr('checked', !jQuery(checkbox).is(':checked')); + jQuery(checkbox).prop('checked', !jQuery(checkbox).prop('checked')); } highlighComments(); }); jQuery("#commentSelectAll").click(function () { - jQuery(".checkComment input[type=checkbox]").attr('checked', true); + jQuery(".checkComment input[type=checkbox]").prop('checked', true); highlighComments(); return false; }); jQuery("#commentSelectNone").click(function () { - jQuery(".checkComment input[type=checkbox]").attr('checked', false); + jQuery(".checkComment input[type=checkbox]").prop('checked', false); highlighComments(); return false; }); jQuery("#commentSelectInvert").click(function () { jQuery(".checkComment input[type=checkbox]").each(function() { - jQuery(this).attr('checked', !$(this).is(':checked')); + jQuery(this).prop('checked', !$(this).prop('checked')); }); highlighComments(); return false; @@ -43,10 +43,16 @@ jQuery(document).ready(function(){ }); {/literal}{/footer_script} -<div class="titrePage"> - <h2>{'Pending Comments'|@translate} {$TABSHEET_TITLE}</h2> +<h2>{'User comments'|@translate} {$TABSHEET_TITLE}</h2> + +<div class="commentFilter"> + <a href="{$F_ACTION}&filter=all" class="{if $filter == 'all'}commentFilterSelected{/if}">{'All'|@translate}</a> ({$nb_total}) + | <a href="{$F_ACTION}&filter=pending" class="{if $filter == 'pending'}commentFilterSelected{/if}">{'Waiting'|@translate}</a> ({$nb_pending}) +{if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if} </div> + + {if !empty($comments) } <form method="post" action="{$F_ACTION}" id="pendingComments"> @@ -59,7 +65,7 @@ jQuery(document).ready(function(){ <td> <div class="comment"> <a class="illustration" href="{$comment.U_PICTURE}"><img src="{$comment.TN_SRC}"></a> - <p class="commentHeader"><strong>{$comment.AUTHOR}</strong> - <em>{$comment.DATE}</em></p> + <p class="commentHeader">{if $comment.IS_PENDING}<span class="pendingFlag">{'Waiting'|@translate}</span> - {/if}<strong>{$comment.AUTHOR}</strong> - <em>{$comment.DATE}</em></p> <blockquote>{$comment.CONTENT}</blockquote> </div> </td> @@ -75,8 +81,8 @@ jQuery(document).ready(function(){ </p> <p class="bottomButtons"> - <input class="submit" type="submit" name="validate" value="{'Validate'|@translate}"> - <input class="submit" type="submit" name="reject" value="{'Reject'|@translate}"> + <input type="submit" name="validate" value="{'Validate'|@translate}"> + <input type="submit" name="reject" value="{'Reject'|@translate}"> </p> </form> |