diff options
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report.pm | 1 | ||||
-rw-r--r-- | templates/web/default/report/display.html | 8 |
2 files changed, 5 insertions, 4 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm index 11130205e..1a64ebf6e 100644 --- a/perllib/FixMyStreet/App/Controller/Report.pm +++ b/perllib/FixMyStreet/App/Controller/Report.pm @@ -221,6 +221,7 @@ sub format_problem_for_display : Private { ( my $detail = $problem->detail ) =~ s/\r//g; my @detail = split /\n{2,}/, $detail; $c->stash->{detail} = \@detail; + $c->stash->{cobrand_alert_fields} = $c->cobrand->form_elements( '/alerts' ); $c->forward('generate_map_tags'); $c->forward('generate_problem_photo'); diff --git a/templates/web/default/report/display.html b/templates/web/default/report/display.html index c647809ef..05f5c321f 100644 --- a/templates/web/default/report/display.html +++ b/templates/web/default/report/display.html @@ -38,16 +38,16 @@ </p> <div id="alert_links"> - <a rel="nofollow" id="email_alert" href="{{ $alert_link }}">[% loc('Email me updates' ) %]<a> + <a rel="nofollow" id="email_alert" href="[% c.uri_for( '/alert', { type => 'updates', id => problem.id } ) %]">[% loc('Email me updates' ) %]</a> - <form action="{{ $form_alert_action }}" method="post" id="email_alert_box"> - <p>{{ $blurb }}</p> + <form action="[% c.uri_for( '/alert/subscribe' ) %]" method="post" id="email_alert_box"> + <p>[% loc('Receive email when updates are left on this problem' ) %]</p> <label class="n" for="alert_rznvy">[% loc('Email') %]</label> <input type="text" name="rznvy" id="alert_rznvy" value="[% email %]" size="30"> <input type="hidden" name="id" value="[% problem.id %]"> <input type="hidden" name="type" value="updates"> <input type="submit" value="[% loc('Subscribe') %]"> - {{ $cobrand_form_elements1 }} + [% cobrand_alert_fields %] </form> <a href="{{ $rss_url }}"> |