aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@fury.ukcod.org.uk>2011-04-11 13:15:21 +0100
committerMatthew Somerville <matthew@fury.ukcod.org.uk>2011-04-11 13:15:21 +0100
commitb453750d1f43bd7b2d9c720f7cd612b7901b059d (patch)
tree583a41b695289dec6c81d6555a4d2d50a886ff92 /templates
parenta37eb834665ea7a88e9d900577f3189a9094dee7 (diff)
Fix navigation alert link for non-Catalyst, rearrange multiple results and show same form as front page.
Diffstat (limited to 'templates')
-rw-r--r--templates/web/default/footer.html2
-rw-r--r--templates/web/default/report/new/report_new.html45
2 files changed, 18 insertions, 29 deletions
diff --git a/templates/web/default/footer.html b/templates/web/default/footer.html
index 90c419734..40b44b870 100644
--- a/templates/web/default/footer.html
+++ b/templates/web/default/footer.html
@@ -5,7 +5,7 @@
<ul id="navigation">
<li><a href="/report/new" >[% loc("Report a problem") %]</a></li>
<li><a href="/reports" >[% loc("All reports") %]</a></li>
-<li><a href="[% c.uri_for('/alert', {pc => pc}) | html %]">[% loc("Local alerts") %]</a></li>
+<li><a href="/alert[% pc | uri %]">[% loc("Local alerts") %]</a></li>
<li><a href="/faq" >[% loc("Help") %]</a></li>
<li><a href="/contact" >[% loc("Contact") %]</a></li>
</ul>
diff --git a/templates/web/default/report/new/report_new.html b/templates/web/default/report/new/report_new.html
index 7a7b9bdaf..57a1d0a72 100644
--- a/templates/web/default/report/new/report_new.html
+++ b/templates/web/default/report/new/report_new.html
@@ -6,6 +6,15 @@
<div class="error">[% location_error %]</div>
[% END %]
+[% IF possible_location_matches %]
+ <p>[% loc('We found more than one match for that location. We show up to ten matches, please try a different search if yours is not here.') %]</p>
+ <ul class="pc_alternatives">
+ [% FOREACH match IN possible_location_matches %]
+ <li><a href="/?pc=[% match | uri %]">[% match | html %]</a></li>
+ [% END %]
+ </ul>
+[% END %]
+
[% IF partial_token %]
<p style="margin-top: 0; color: #cc0000;">
@@ -15,36 +24,16 @@
<input type="hidden" name="partial" value="[% partial_token.token %]">
-[% ELSE %]
- Please select where to create this report:
[% END %]
-<form action="/report/new" method="POST">
-
- [% IF pc_error %]
- <div class='form-error'>[% pc_error %]</div>
- [% END %]
-
- <div class="form-field">
- <label for="pc">Location:</label>
- <input type="text" name="pc" value="[% pc %]">
- </div>
-
- <p>
- <input type="hidden" name="partial" value="[% partial_token.token %]">
- <input type="submit" value="[% loc('Search') %]">
- </p>
-
+[% IF pc_error %]
+<p class="error">[% pc_error %]</p>
+[% END %]
+<form action="/" method="get" name="postcodeForm" id="postcodeForm"><label for="pc">[% loc("Enter a nearby GB postcode, or street name and area") %]:</label>
+&nbsp;<input type="text" name="pc" value="[% pc | html %]" id="pc" size="10" maxlength="200">
+&nbsp;<input type="submit" value="[% loc('Go') %]" id="submit">
+[% c.cobrand.form_elements %]
</form>
-[% IF possible_location_matches %]
- <p>[% loc('We found more than one match for that location. We show up to ten matches, please try a different search if yours is not here.') %]</p>
- <ul class="pc_alternatives">
- [% FOREACH match IN possible_location_matches %]
- <li><a href="[% c.uri_for( '', { pc => match }) %]">[% match | html %]</a></li>
- [% END %]
- </ul>
-[% END %]
-
-[% INCLUDE 'footer.html' %] \ No newline at end of file
+[% INCLUDE 'footer.html' %]