aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-05-12 11:08:05 +0100
committerStruan Donald <struan@exo.org.uk>2011-05-12 11:08:05 +0100
commit629441ccda35f5956f01907d3c43a9a1847f5885 (patch)
treedd4b7f9cf32dea67bd6950a2904c24d930695aca
parent3d22d7252e67df65b9bd7442b8363b212af15c87 (diff)
Add cobrand form elements to alert list page
-rw-r--r--perllib/FixMyStreet/App/Controller/Alert.pm2
-rw-r--r--templates/web/default/alert/list.html2
2 files changed, 3 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Alert.pm b/perllib/FixMyStreet/App/Controller/Alert.pm
index 38220faf8..d22cc710f 100644
--- a/perllib/FixMyStreet/App/Controller/Alert.pm
+++ b/perllib/FixMyStreet/App/Controller/Alert.pm
@@ -99,6 +99,8 @@ sub list : Path('list') : Args(0) {
$c->stash->{latitude},
$c->stash->{longitude}, $dist
);
+
+ $c->stash->{cobrand_form_elements} = $c->cobrand->form_elements('alerts');
#
# my $checked = '';
# $checked = ' checked' if $q->param('feed') && $q->param('feed') eq "local:$lat:$lon";
diff --git a/templates/web/default/alert/list.html b/templates/web/default/alert/list.html
index 8c434daf6..40b94e9c0 100644
--- a/templates/web/default/alert/list.html
+++ b/templates/web/default/alert/list.html
@@ -13,7 +13,7 @@
<input type="hidden" name="type" value="local">
<input type="hidden" name="pc" value="[% pc | html %]">
- [%# FIXME cobrands and pics here %]
+ [% cobrand_form_elements %]
[% IF photos %]
<div id="alert_photos">