# HG changeset patch # User Paul Boddie # Date 1353262937 -3600 # Node ID 56b7bd844f1e528a1fc06d1c56b8ea01b031ca71 # Parent 95d68ee34d9d70cfad10cf2903760e27bebf0284 Added a link to the help page from the new event action. Added help for page name overriding. diff -r 95d68ee34d9d -r 56b7bd844f1e actions/EventAggregatorNewEvent.py --- a/actions/EventAggregatorNewEvent.py Sun Nov 18 00:17:20 2012 +0100 +++ b/actions/EventAggregatorNewEvent.py Sun Nov 18 19:22:17 2012 +0100 @@ -145,6 +145,13 @@ template_default = getattr(request.cfg, "event_aggregator_new_event_template", "EventTemplate") + # Help page location. + + help_page_name = getattr(request.cfg, "event_aggregator_new_event_help", "HelpOnEventAggregatorNewEvent") + help_page_url = Page(request, help_page_name).url(request) + + # Substitution of parameters. + d = { "buttons_html" : buttons_html, "form_trigger" : escattr(self.form_trigger), @@ -221,6 +228,9 @@ "advanced_label" : escape(_("Show advanced options")), "basic_label" : escape(_("Hide advanced options")), + + "help_page_url" : escattr(help_page_url), + "help_page_label" : escape(_("Help on creating events")), } # Prepare the output HTML. @@ -539,6 +549,12 @@ %(buttons_html)s + + + + %(help_page_label)s + +