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/add_edit_goal.tpl')
-rw-r--r--plugins/Goals/templates/add_edit_goal.tpl63
1 files changed, 29 insertions, 34 deletions
diff --git a/plugins/Goals/templates/add_edit_goal.tpl b/plugins/Goals/templates/add_edit_goal.tpl
index 5a5081ccaa..c09f1cdab3 100644
--- a/plugins/Goals/templates/add_edit_goal.tpl
+++ b/plugins/Goals/templates/add_edit_goal.tpl
@@ -1,49 +1,44 @@
+
+<div id="AddEditGoals">
{if isset($onlyShowAddNewGoal)}
- <h2>{'Goals_AddNewGoal'|translate}</h2>
+ <h2>Add a new Goal</h2>
{else}
- <h2>Goals management</h2>
- <ul class='listCircle'>
- <li><a onclick='' name='linkAddNewGoal'><u>{'Goals_CreateNewGOal'|translate}</u></a></li>
- <li><a onclick='' name='linkEditGoals'>{'Goals_ViewAndEditGoals'|translate}</a></li>
- <li>{'Goals_LearnMoreAboutGoalTrackingDocumentation'|translate:"<a href='misc/redirectToUrl.php?url=http://piwik.org/docs/tracking-goals-web-analytics/' target='_blank'>":"</a>"}</li>
- </ul>
- <br/>
+ <h2><a onclick='' name="linkAddNewGoal">+ Add a new Goal</a>
+ or <a onclick='' name="linkEditGoals">Edit</a> existing Goals</h2>
{/if}
-{ajaxErrorDiv}
-{ajaxLoadingDiv id=goalAjaxLoading}
+ <div>
+ <div id="ajaxError" style="display:none"></div>
+ <div id="ajaxLoading" style="display:none"><div id="loadingPiwik"><img src="themes/default/images/loading-blue.gif" alt="" /> {'General_LoadingData'|translate}</div></div>
+ </div>
-<div id="AddEditGoals">
- {if !isset($onlyShowAddNewGoal)}
- {include file="Goals/templates/list_goal_edit.tpl"}
- {/if}
+{if !isset($onlyShowAddNewGoal)}
+ {include file="Goals/templates/list_goal_edit.tpl"}
+{/if}
{include file="Goals/templates/form_add_goal.tpl"}
- <div id='goalsCancel'>{'General_OrCancel'|translate:"<a id='goalsCancelLink'>":"</a>"}</div>
+
<a id='bottom'></a>
</div>
-{loadJavascriptTranslations plugins='Goals'}
+{literal}
<script type="text/javascript" src="plugins/Goals/templates/GoalForm.js"></script>
-<script type="text/javascript">
-
-var mappingMatchTypeName = {ldelim}
- "url": "{'Goals_URL'|translate|escape}",
- "file": "{'Goals_Filename'|translate|escape}",
- "external_website": "{'Goals_ExternalWebsiteUrl'|translate|escape}"
-{rdelim};
-var mappingMatchTypeExamples = {ldelim}
- "url": "{'General_ForExampleShort'|translate} {'Goals_Contains'|translate:"'checkout/confirmation'"|escape} \
- <br />{'General_ForExampleShort'|translate|escape} {'Goals_IsExactly'|translate:"'http://example.com/thank-you.html'"|escape} \
- <br />{'General_ForExampleShort'|translate|escape} {'Goals_MatchesExpression'|translate:"'(.*)\\\/demo\\\/(.*)'"|escape}",
- "file": "{'General_ForExampleShort'|translate|escape} {'Goals_Contains'|translate:"'files/brochure.pdf'"|escape} \
- <br />{'General_ForExampleShort'|translate|escape} {'Goals_IsExactly'|translate:"'http://example.com/files/brochure.pdf'"|escape} \
- <br />{'General_ForExampleShort'|translate|escape} {'Goals_MatchesExpression'|translate:"'(.*)\\\.zip'"|escape}",
- "external_website": "{'General_ForExampleShort'|translate|escape} {'Goals_Contains'|translate:"'amazon.com'"|escape} \
- <br />{'General_ForExampleShort'|translate|escape} {'Goals_IsExactly'|translate:"'http://mypartner.com/landing.html'"|escape} \
- <br />{'General_ForExampleShort'|translate|escape} {'Goals_MatchesExpression'|translate:"'http://www.amazon.com\\\/(.*)\\\/yourAffiliateId'"|escape}"
-{rdelim};
+<script language="javascript">
+
+var mappingMatchTypeName = {
+ "url": "URL",
+ "file": "filename",
+ "external_website": "external website URL"
+};
+var mappingMatchTypeExamples = {
+ "url": "eg. contains 'checkout/confirmation'<br>eg. is exactly 'http://example.com/thank-you.html'<br>eg. matches the expression '(.*)\\\/demo\\\/(.*)'",
+ "file": "eg. contains 'files/brochure.pdf'<br>eg. is exactly 'http://example.com/files/brochure.pdf'<br>eg. matches the expression '(.*)\\\.zip'",
+ "external_website": "eg. contains 'amazon.com'<br>eg. is exactly 'http://mypartner.com/landing.html'<br>eg. matches the expression 'http://www.amazon.com\\\/(.*)\\\/yourAffiliateId'"
+};
+
bindGoalForm();
+{/literal}
+
{if !isset($onlyShowAddNewGoal)}
piwik.goals = {$goalsJSON};
bindListGoalEdit();