diff options
Diffstat (limited to 'templates/web/default/alert')
-rw-r--r-- | templates/web/default/alert/index.html | 2 | ||||
-rw-r--r-- | templates/web/default/alert/list.html | 8 |
2 files changed, 3 insertions, 7 deletions
diff --git a/templates/web/default/alert/index.html b/templates/web/default/alert/index.html index da057f785..d4fcccf94 100644 --- a/templates/web/default/alert/index.html +++ b/templates/web/default/alert/index.html @@ -12,6 +12,8 @@ within a certain distance of a particular location.') %] <ul class="error"><li>[% loc('That location does not appear to be covered by a council, perhaps it is offshore - please try somewhere more specific.') %]</li></ul> [% ELSIF location_error %] <ul class="error"><li>[% location_error | html %]</li></ul> +[% ELSE %] + [% INCLUDE 'errors.html' %] [% END %] <form method="get" action="/alert/list"> diff --git a/templates/web/default/alert/list.html b/templates/web/default/alert/list.html index 547cd27d3..8c434daf6 100644 --- a/templates/web/default/alert/list.html +++ b/templates/web/default/alert/list.html @@ -29,13 +29,7 @@ [% loc('Select which type of alert you\'d like and click the button for an RSS feed, or enter your email address to subscribe to an email alert') %] </p> - [% IF errors %] - <ul class="error"> - [% FOREACH error IN errors %] - <li>[% error %]</li> - [% END %] - </ul> - [% END %] + [% INCLUDE 'errors.html' %] <p> [% loc('The simplest alert is our geographic one') %] |