diff options
Diffstat (limited to 'plugins/Goals/templates/list_goal_edit.tpl')
-rw-r--r-- | plugins/Goals/templates/list_goal_edit.tpl | 39 |
1 files changed, 29 insertions, 10 deletions
diff --git a/plugins/Goals/templates/list_goal_edit.tpl b/plugins/Goals/templates/list_goal_edit.tpl index 92cab34b25..805f3c2277 100644 --- a/plugins/Goals/templates/list_goal_edit.tpl +++ b/plugins/Goals/templates/list_goal_edit.tpl @@ -1,22 +1,41 @@ <span id='EditGoals' style="display:none;"> - <table class="tableForm"> + <table class="tableForm tableFormGoals"> <thead style="font-weight:bold"> <td>Id</td> - <td>Goal Name</td> - <td>Goal is Triggered when</td> - <td>Revenue</td> - <td>Edit</td> - <td>Delete</td> + <td>{'Goals_GoalName'|translate}</td> + <td>{'Goals_GoalIsTriggeredWhen'|translate}</td> + <td>{'Goals_ColumnRevenue'|translate}</td> + <td>{'General_Edit'|translate}</td> + <td>{'General_Delete'|translate}</td> </thead> {foreach from=$goals item=goal} <tr> <td>{$goal.idgoal}</td> <td>{$goal.name}</td> - <td>{$goal.match_attribute} {if isset($goal.pattern_type)}<br>Pattern {$goal.pattern_type}: {$goal.pattern}</b>{/if}</td> - <td>{if $goal.revenue==0}-{else}{$currency}{$goal.revenue}{/if}</td> - <td><a href='#' name="linkEditGoal" id="{$goal.idgoal}"><img src='plugins/UsersManager/images/edit.png' border=0> Edit</a></td> - <td><a href='#' name="linkDeleteGoal" id="{$goal.idgoal}"><img src='plugins/UsersManager/images/remove.png' border=0> Delete</a></td> + <td><span class='matchAttribute'>{$goal.match_attribute}</span> {if isset($goal.pattern_type)}<br />{'Goals_Pattern'|translate} {$goal.pattern_type}: {$goal.pattern}</b>{/if}</td> + <td>{if $goal.revenue==0}-{else}{$goal.revenue|money:$idSite}{/if}</td> + <td><a href='#' name="linkEditGoal" id="{$goal.idgoal}"><img src='plugins/UsersManager/images/edit.png' border="0" /> {'General_Edit'|translate}</a></td> + <td><a href='#' name="linkDeleteGoal" id="{$goal.idgoal}"><img src='plugins/UsersManager/images/remove.png' border="0" /> {'General_Delete'|translate}</a></td> </tr> {/foreach} </table> </span> + +<script type="text/javascript"> +var goalTypeToTranslation = {ldelim} + "manually" : "{'Goals_ManuallyTriggeredUsingJavascriptFunction'|translate}", + "file" : "{'Goals_Download'|translate}", + "url" : "{'Goals_VisitUrl'|translate}", + "external_website" : "{'Goals_ClickOutlink'|translate}" +{rdelim} +{literal} +$(document).ready( function() { + // translation of the goal "match attribute" to human readable description + $('.matchAttribute').each( function() { + matchAttribute = $(this).text(); + translation = goalTypeToTranslation[matchAttribute]; + $(this).text(translation); + }); +} ); +{/literal} +</script> |