diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/web/default/questionnaire/creator_fixed.html | 5 | ||||
-rw-r--r-- | templates/web/default/tokens/confirm_update.html | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/templates/web/default/questionnaire/creator_fixed.html b/templates/web/default/questionnaire/creator_fixed.html index ebf392dd5..0d3181ec1 100644 --- a/templates/web/default/questionnaire/creator_fixed.html +++ b/templates/web/default/questionnaire/creator_fixed.html @@ -1,8 +1,9 @@ [% INCLUDE 'header.html', title = loc('Confirmation') %] <form method="post" action="/questionnaire/submit" id="questionnaire"> -<input type="hidden" name="type" value="questionnaire"> -<input type="hidden" name="token" value="[% token | html %]"> +<input type="hidden" name="problem" value="[% problem_id | html %]"> + +[% INCLUDE 'errors.html' %] <p> [% loc("Thanks, glad to hear it's been fixed! Could we just ask if you have ever reported a problem to a council before?") %] diff --git a/templates/web/default/tokens/confirm_update.html b/templates/web/default/tokens/confirm_update.html index 72816be51..cae702073 100644 --- a/templates/web/default/tokens/confirm_update.html +++ b/templates/web/default/tokens/confirm_update.html @@ -3,10 +3,16 @@ <h1>[% loc('Confirmation') %]</h1> <p class="confirmed"> -[% +[% IF creator_fixed %] +[% + tprintf(loc('Thank you — you can <a href="%s">view your updated problem</a> on the site.'), c.uri_for( '/report', problem_id ) ); +%] +[% ELSE %] +[% tprintf( loc('You have successfully confirmed your update and you can now <a href="%s">view it on the site</a>'), c.uri_for( '/report', update.problem.id ) _ '#' _ update.id ); %] +[% END %] </p> [% display_crossell_advert( update.user.email, update.name ) %] |