Changeset 12650 for trunk/admin/themes


Ignore:
Timestamp:
Nov 21, 2011, 9:46:05 PM (12 years ago)
Author:
rvelices
Message:

feature 2486: Add an admin view for rates by user (improvement)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/template/rating_user.tpl

    r12625 r12650  
     1<h2>{$ratings|@count} {'Users'|@translate}</h2>
     2
    13<form action="{$F_ACTION}" method="GET">
    24<fieldset>
     
    1921function del(elt,uid,aid)
    2022{
    21         if (!confirm('{'Are you sure?'|@translate|@escape:'javascript'}'))
     23        if (!confirm({/literal}'{'Are you sure?'|@translate|@escape:'javascript'}'{literal}))
    2224                return false;
    2325        var tr = elt;
    2426        while ( tr.nodeName != "TR") tr = tr.parentNode;
    2527        tr = jQuery(tr).fadeTo(1000, 0.4);
    26         var ws = new PwgWS({/literal}'{$ROOT_URL|@escape:javascript}'{literal});
    27         ws.callService(
     28        (new PwgWS({/literal}'{$ROOT_URL|@escape:javascript}'{literal})).callService(
    2829                'pwg.rates.delete', {user_id:uid, anonymous_id:aid},
    2930                {
     
    4142        <td>{'Number of rates'|@translate}</td>
    4243        <td>{'Average rate'|@translate}</td>
    43         <td>StDev</td>
    44         <td>CV</td>
     44        <td>{'Variation'|@translate}</td>
     45        <td>{'Consensus deviation'|@translate|@replace:' ':'<br>'}</td>
    4546{foreach from=$available_rates item=rate}
    4647        <td>{$rate}</td>
     
    5354        <td>{$rating.count}</td>
    5455        <td>{$rating.avg|@number_format:2}</td>
    55         <td>{$rating.std|@number_format:3}</td>
    5656        <td>{$rating.cv|@number_format:3}</td>
     57        <td>{$rating.cd|@number_format:3}</td>
    5758        {foreach from=$rating.rates item=rates key=rate}
    5859        <td>{if !empty($rates)}
     
    6970{combine_script id='jquery.cluetip' load='footer' require='jquery' path='themes/default/js/plugins/jquery.cluetip.js'}
    7071{footer_script require='jquery.cluetip'}
    71 {literal}
    72         jQuery('.cluetip').cluetip({
    73                 width: 350,     splitTitle: '|'
     72jQuery(document).ready(function(){ldelim}
     73        jQuery('.cluetip').cluetip({ldelim}
     74                width: {$TN_WIDTH}, splitTitle: '|'
    7475        });
    75 {/literal}
     76})
    7677{/footer_script}
Note: See TracChangeset for help on using the changeset viewer.