diff options
author | Struan Donald <struan@exo.org.uk> | 2011-05-12 11:03:39 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-05-12 11:03:39 +0100 |
commit | eeea97e7ef61c939a706cb1be87b28f2600e4e8c (patch) | |
tree | 5484ded646a95e2163ac47642bc975ea724eef7a | |
parent | 3690979cd0a8b2197bd697c77d8e9146ff7431da (diff) |
Add cobrand form elements to alert front page
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Alert.pm | 2 | ||||
-rw-r--r-- | templates/web/default/alert/index.html | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Alert.pm b/perllib/FixMyStreet/App/Controller/Alert.pm index 3a968ee1d..8b481b7cf 100644 --- a/perllib/FixMyStreet/App/Controller/Alert.pm +++ b/perllib/FixMyStreet/App/Controller/Alert.pm @@ -55,6 +55,8 @@ sub index : Path('') : Args(0) { # # my $cobrand_page = Page::template_include('alert-front-page', $q, Page::template_root($q), %vars); # $out = $cobrand_page if ($cobrand_page); + + $c->stash->{cobrand_form_elements} = $c->cobrand->form_elements('alerts'); # unless ( $c->req->referer && $c->req->referer =~ /fixmystreet\.com/ ) { $c->stash->{photos} = $c->cobrand->recent_photos(10); diff --git a/templates/web/default/alert/index.html b/templates/web/default/alert/index.html index d4fcccf94..69f21f2f2 100644 --- a/templates/web/default/alert/index.html +++ b/templates/web/default/alert/index.html @@ -22,6 +22,7 @@ within a certain distance of a particular location.') %] postcode or street name and area:' ) %] <input type="text" name="pc" value=""> <input type="submit" value="[% loc('Go') %]"> + [% cobrand_form_elements %] </p> </form> |