Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Goals/templates/list_goal_edit.tpl')
-rw-r--r--plugins/Goals/templates/list_goal_edit.tpl39
1 files changed, 10 insertions, 29 deletions
diff --git a/plugins/Goals/templates/list_goal_edit.tpl b/plugins/Goals/templates/list_goal_edit.tpl
index 805f3c2277..92cab34b25 100644
--- a/plugins/Goals/templates/list_goal_edit.tpl
+++ b/plugins/Goals/templates/list_goal_edit.tpl
@@ -1,41 +1,22 @@
<span id='EditGoals' style="display:none;">
- <table class="tableForm tableFormGoals">
+ <table class="tableForm">
<thead style="font-weight:bold">
<td>Id</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>
+ <td>Goal Name</td>
+ <td>Goal is Triggered when</td>
+ <td>Revenue</td>
+ <td>Edit</td>
+ <td>Delete</td>
</thead>
{foreach from=$goals item=goal}
<tr>
<td>{$goal.idgoal}</td>
<td>{$goal.name}</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>
+ <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>
</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>