diff options
Diffstat (limited to 'plugins/Goals/templates/add_edit_goal.tpl')
-rw-r--r-- | plugins/Goals/templates/add_edit_goal.tpl | 68 |
1 files changed, 39 insertions, 29 deletions
diff --git a/plugins/Goals/templates/add_edit_goal.tpl b/plugins/Goals/templates/add_edit_goal.tpl index c09f1cdab3..e78a8eb391 100644 --- a/plugins/Goals/templates/add_edit_goal.tpl +++ b/plugins/Goals/templates/add_edit_goal.tpl @@ -1,44 +1,54 @@ - -<div id="AddEditGoals"> {if isset($onlyShowAddNewGoal)} - <h2>Add a new Goal</h2> + <h2>{'Goals_AddNewGoal'|translate}</h2> + <p>{'Goals_DescriptionGoalsManagement'|translate} </p> + <p>{'Goals_LearnMoreAboutGoalTrackingDocumentation'|translate:"<a href='misc/redirectToUrl.php?url=http://piwik.org/docs/tracking-goals-web-analytics/' target='_blank'>":"</a>"} + </p> {else} - <h2><a onclick='' name="linkAddNewGoal">+ Add a new Goal</a> - or <a onclick='' name="linkEditGoals">Edit</a> existing Goals</h2> + <h2>{'Goals_GoalsManagement'|translate}</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/> {/if} - <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> +{ajaxErrorDiv} +{ajaxLoadingDiv id=goalAjaxLoading} -{if !isset($onlyShowAddNewGoal)} - {include file="Goals/templates/list_goal_edit.tpl"} -{/if} +<div id="AddEditGoals"> + {if !isset($onlyShowAddNewGoal)} + {include file="Goals/templates/list_goal_edit.tpl"} + {/if} {include file="Goals/templates/form_add_goal.tpl"} - + {if !isset($onlyShowAddNewGoal)} + <div id='goalsCancel'>{'General_OrCancel'|translate:"<a id='goalsCancelLink'>":"</a>"}</div> + {/if} <a id='bottom'></a> </div> -{literal} +{loadJavascriptTranslations plugins='Goals'} <script type="text/javascript" src="plugins/Goals/templates/GoalForm.js"></script> -<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'" -}; - +<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}; bindGoalForm(); -{/literal} - {if !isset($onlyShowAddNewGoal)} piwik.goals = {$goalsJSON}; bindListGoalEdit(); |