diff options
Diffstat (limited to 'plugins/Goals/templates/form_add_goal.tpl')
-rw-r--r-- | plugins/Goals/templates/form_add_goal.tpl | 149 |
1 files changed, 80 insertions, 69 deletions
diff --git a/plugins/Goals/templates/form_add_goal.tpl b/plugins/Goals/templates/form_add_goal.tpl index 76350d9f40..b60dbe7ad4 100644 --- a/plugins/Goals/templates/form_add_goal.tpl +++ b/plugins/Goals/templates/form_add_goal.tpl @@ -1,74 +1,85 @@ +{literal} +<style> +.goalInlineHelp{ +color:#9B9B9B; +} +</style> +{/literal} <span id='GoalForm' style="display:none;"> <form> -<table class="tableForm tableFormGoals"> - <tbody> - <tr> - <td>{'Goals_GoalName'|translate} </td> - <td><input type="text" name="name" value="" id="goal_name" /></td> - </tr> - <tr> - <td style='width:240px;'>{'Goals_GoalIsTriggered'|translate} - <select name="trigger_type"> - <option value="visitors">{'Goals_WhenVisitors'|translate}</option> - <option value="manually">{'Goals_Manually'|translate}</option> - </select> - </td> - <td> - <input type="radio" id="match_attribute_url" value="url" name="match_attribute" /> - <label for="match_attribute_url">{'Goals_VisitUrl'|translate}</label> - <br /> - <input type="radio" id="match_attribute_file" value="file" name="match_attribute" /> - <label for="match_attribute_file">{'Goals_Download'|translate}</label> - <br /> - <input type="radio" id="match_attribute_external_website" value="external_website" name="match_attribute" /> - <label for="match_attribute_external_website">{'Goals_ClickOutlink'|translate}</label> - </td> + <table class="tableForm"> + <tbody> + <tr> + <td>Goal Name </td> + <td><input type="text" name="name" value="" id="goal_name" /></td> </tr> - </tbody> - <tbody id="match_attribute_section"> - <tr> - <td>{'Goals_WhereThe'|translate} <span id="match_attribute_name"></span></td> - <td> - <select name="pattern_type"> - <option value="contains">{'Goals_Contains'|translate:""}</option> - <option value="exact">{'Goals_IsExactly'|translate:""}</option> - <option value="regex">{'Goals_MatchesExpression'|translate:""}</option> - </select> - - <input type="text" name="pattern" value="" /> - <br /> - <div id="examples_pattern" class="goalInlineHelp"></div> - <br /> - <span style="float:right"> - {'Goals_Optional'|translate} <input type="checkbox" id="case_sensitive" /> - <label for="case_sensitive">{'Goals_CaseSensitive'|translate}</label> - </span> - </td> - </tr> - </tbody> - <tbody id="manual_trigger_section" style="display:none"> - <tr><td colspan="2"> - {'Goals_WhereVisitedPageManuallyCallsJavascriptTrackerLearnMore'|translate:"<a target='_blank' href='misc/redirectToUrl.php?url=http://piwik.org/docs/javascript-tracking/'>":"</a>"} - </td></tr> - </tbody> - <tbody> - <tr> - <td>(optional) {'Goals_DefaultRevenue'|translate}</td> - <td>{'<input type="text" name="revenue" size="1" value="0" />'|money:$idSite} - <div class="goalInlineHelp"> {'Goals_DefaultRevenueHelp'|translate} </div> - </td> - </tr> - <tr> - <tr> - <td colspan="2" style="border:0"> - <input type="hidden" name="methodGoalAPI" value="" /> - <input type="hidden" name="goalIdUpdate" value="" /> - <center> - <input type="submit" value="" name="submit" id="goal_submit" class="submit" /> - </center> - </td> - </tr> - </tbody> -</table> + <tr> + <td>Goal is triggered + <select name="trigger_type"> + <option value="visitors">when visitors</option> + <option value="manually">manually</option> + </select> + </td> + <td> + <input type="radio" id="match_attribute_url" value="url" name="match_attribute"/> + <label for="match_attribute_url">Visit a given URL (page or group of pages)</label> + <br /> + <input type="radio" id="match_attribute_file" value="file" name="match_attribute"/> + <label for="match_attribute_file">Download a file</label> + <br /> + <input type="radio" id="match_attribute_external_website" value="external_website" name="match_attribute"/> + <label for="match_attribute_external_website">Click on a Link to an external website </label> + </td> + </tr> + </tbody> + <tbody id="match_attribute_section"> + <tr> + <td>where the <span id="match_attribute_name"></span></td> + <td> + <select name="pattern_type"> + <option value="contains">contains</option> + <option value="exact">is exactly</option> + <option value="regex">matches the expression</option> + </select> + + <input type="text" name="pattern" value=""/> + <br /> + <div id="examples_pattern" class="goalInlineHelp"></div> + <br /> + <span style="float:right"> + (optional) <input type="checkbox" id="case_sensitive"/> + <label for="case_sensitive">Case sensitive match</label> + </span> + </td> + </tr> + </tbody> + <tbody id="manual_trigger_section" style="display:none"> + <tr> + <td colspan="2"> + where the visited page manually calls the JavaScript piwikTracker.trackGoal() method (<a target='_blank' href='misc/redirectToUrl.php?url=http://piwik.org/docs/javascript-tracking/'>learn more</a>) + </td> + </tr> + </tbody> + <tbody> + <tr> + <td>(optional) Goal default value is </td> + <td>{$currency} <input type="text" name="revenue" size="1" value="0"/> + <div class="goalInlineHelp"> + For example, a Contact Form submitted by a visitor <br /> + may be worth $10 on average. Piwik will help you understand <br /> + how well your visitors segments are performing.</div> + </td> + </tr> + <tr> + <td colspan="2" style="border:0"> + <div class="submit"> + <input type="hidden" name="methodGoalAPI" value=""> + <input type="hidden" name="goalIdUpdate" value=""> + <input type="submit" value="Add Goal" name="submit" id="goal_submit" class="submit" /> + </div> + </td> + </tr> + </tbody> + </table> </form> </span> |