From ca82fa7ae05e7759c7ebaec766137b337680f357 Mon Sep 17 00:00:00 2001 From: Josh Angell Date: Fri, 10 Feb 2012 14:34:15 +0000 Subject: remove some images and fonts that we don't want Signed-off-by: Josh Angell --- web/cobrands/fixmystreet/fms-logo-flat.png | Bin 5891 -> 0 bytes web/cobrands/fixmystreet/fms-logo.png | Bin 4740 -> 0 bytes .../fixmystreet/fonts/MuseoSansRounded500.eot | Bin 49338 -> 0 bytes .../fixmystreet/fonts/MuseoSansRounded500.svg | 418 --------------------- .../fixmystreet/fonts/MuseoSansRounded500.ttf | Bin 49056 -> 0 bytes .../fixmystreet/fonts/MuseoSansRounded500.woff | Bin 26765 -> 0 bytes web/cobrands/fixmystreet/mysociety-logo-ie6.gif | Bin 829 -> 0 bytes web/cobrands/fixmystreet/mysociety-logo.png | Bin 1459 -> 0 bytes web/cobrands/fixmystreet/texture.png | Bin 50800 -> 0 bytes 9 files changed, 418 deletions(-) delete mode 100644 web/cobrands/fixmystreet/fms-logo-flat.png delete mode 100644 web/cobrands/fixmystreet/fms-logo.png delete mode 100644 web/cobrands/fixmystreet/fonts/MuseoSansRounded500.eot delete mode 100644 web/cobrands/fixmystreet/fonts/MuseoSansRounded500.svg delete mode 100644 web/cobrands/fixmystreet/fonts/MuseoSansRounded500.ttf delete mode 100644 web/cobrands/fixmystreet/fonts/MuseoSansRounded500.woff delete mode 100644 web/cobrands/fixmystreet/mysociety-logo-ie6.gif delete mode 100644 web/cobrands/fixmystreet/mysociety-logo.png delete mode 100644 web/cobrands/fixmystreet/texture.png diff --git a/web/cobrands/fixmystreet/fms-logo-flat.png b/web/cobrands/fixmystreet/fms-logo-flat.png deleted file mode 100644 index 50d1e4891..000000000 Binary files a/web/cobrands/fixmystreet/fms-logo-flat.png and /dev/null differ diff --git a/web/cobrands/fixmystreet/fms-logo.png b/web/cobrands/fixmystreet/fms-logo.png deleted file mode 100644 index 23bea6b0f..000000000 Binary files a/web/cobrands/fixmystreet/fms-logo.png and /dev/null differ diff --git a/web/cobrands/fixmystreet/fonts/MuseoSansRounded500.eot b/web/cobrands/fixmystreet/fonts/MuseoSansRounded500.eot deleted file mode 100644 index 8517f0a04..000000000 Binary files a/web/cobrands/fixmystreet/fonts/MuseoSansRounded500.eot and /dev/null differ diff --git a/web/cobrands/fixmystreet/fonts/MuseoSansRounded500.svg b/web/cobrands/fixmystreet/fonts/MuseoSansRounded500.svg deleted file mode 100644 index 572bef8e4..000000000 --- a/web/cobrands/fixmystreet/fonts/MuseoSansRounded500.svg +++ /dev/null @@ -1,418 +0,0 @@ - - -This is a Webfont from MyFonts. Full information about this font: -http://www.myfonts.com/fonts/exljbris/museo-sans-rounded/500// -Copyright (c) 2011 by Jos Buivenga. All rights reserved.Museo Sans Rounded is a trademark of Jos Buivenga. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/web/cobrands/fixmystreet/fonts/MuseoSansRounded500.ttf b/web/cobrands/fixmystreet/fonts/MuseoSansRounded500.ttf deleted file mode 100644 index 7bec6cf5f..000000000 Binary files a/web/cobrands/fixmystreet/fonts/MuseoSansRounded500.ttf and /dev/null differ diff --git a/web/cobrands/fixmystreet/fonts/MuseoSansRounded500.woff b/web/cobrands/fixmystreet/fonts/MuseoSansRounded500.woff deleted file mode 100644 index dfbbe1cdc..000000000 Binary files a/web/cobrands/fixmystreet/fonts/MuseoSansRounded500.woff and /dev/null differ diff --git a/web/cobrands/fixmystreet/mysociety-logo-ie6.gif b/web/cobrands/fixmystreet/mysociety-logo-ie6.gif deleted file mode 100644 index b0a262666..000000000 Binary files a/web/cobrands/fixmystreet/mysociety-logo-ie6.gif and /dev/null differ diff --git a/web/cobrands/fixmystreet/mysociety-logo.png b/web/cobrands/fixmystreet/mysociety-logo.png deleted file mode 100644 index 8b7d6fc75..000000000 Binary files a/web/cobrands/fixmystreet/mysociety-logo.png and /dev/null differ diff --git a/web/cobrands/fixmystreet/texture.png b/web/cobrands/fixmystreet/texture.png deleted file mode 100644 index 31ac97633..000000000 Binary files a/web/cobrands/fixmystreet/texture.png and /dev/null differ -- cgit v1.2.3 From 6a204535cc195e0950fb8a0b7d00cf000fbfef5f Mon Sep 17 00:00:00 2001 From: Josh Angell Date: Fri, 10 Feb 2012 14:34:32 +0000 Subject: add our images and fonts Signed-off-by: Josh Angell --- .../fixmystreet/fonts/Museo300-Regular-webfont.eot | Bin 0 -> 25034 bytes .../fixmystreet/fonts/Museo300-Regular-webfont.svg | 229 +++++++++++++++++++++ .../fixmystreet/fonts/Museo300-Regular-webfont.ttf | Bin 0 -> 57284 bytes .../fonts/Museo300-Regular-webfont.woff | Bin 0 -> 27800 bytes .../fixmystreet/fonts/MuseoSans_300-webfont.eot | Bin 0 -> 21394 bytes .../fixmystreet/fonts/MuseoSans_300-webfont.svg | 227 ++++++++++++++++++++ .../fixmystreet/fonts/MuseoSans_300-webfont.ttf | Bin 0 -> 46872 bytes .../fixmystreet/fonts/MuseoSans_300-webfont.woff | Bin 0 -> 24796 bytes .../fonts/MuseoSans_300_Italic-webfont.eot | Bin 0 -> 24673 bytes .../fonts/MuseoSans_300_Italic-webfont.svg | 227 ++++++++++++++++++++ .../fonts/MuseoSans_300_Italic-webfont.ttf | Bin 0 -> 56332 bytes .../fonts/MuseoSans_300_Italic-webfont.woff | Bin 0 -> 28188 bytes .../fixmystreet/fonts/MuseoSans_500-webfont.eot | Bin 0 -> 21871 bytes .../fixmystreet/fonts/MuseoSans_500-webfont.svg | 227 ++++++++++++++++++++ .../fixmystreet/fonts/MuseoSans_500-webfont.ttf | Bin 0 -> 47500 bytes .../fixmystreet/fonts/MuseoSans_500-webfont.woff | Bin 0 -> 25248 bytes .../fonts/MuseoSans_500_Italic-webfont.eot | Bin 0 -> 24415 bytes .../fonts/MuseoSans_500_Italic-webfont.svg | 227 ++++++++++++++++++++ .../fonts/MuseoSans_500_Italic-webfont.ttf | Bin 0 -> 55672 bytes .../fonts/MuseoSans_500_Italic-webfont.woff | Bin 0 -> 27864 bytes web/cobrands/fixmystreet/images/grid.png | Bin 0 -> 476 bytes web/cobrands/fixmystreet/images/main-sprite.png | Bin 0 -> 26819 bytes web/cobrands/fixmystreet/images/temp-map.jpg | Bin 0 -> 794142 bytes web/cobrands/fixmystreet/images/temp-map.png | Bin 0 -> 2733022 bytes 24 files changed, 1137 insertions(+) create mode 100755 web/cobrands/fixmystreet/fonts/Museo300-Regular-webfont.eot create mode 100755 web/cobrands/fixmystreet/fonts/Museo300-Regular-webfont.svg create mode 100755 web/cobrands/fixmystreet/fonts/Museo300-Regular-webfont.ttf create mode 100755 web/cobrands/fixmystreet/fonts/Museo300-Regular-webfont.woff create mode 100755 web/cobrands/fixmystreet/fonts/MuseoSans_300-webfont.eot create mode 100755 web/cobrands/fixmystreet/fonts/MuseoSans_300-webfont.svg create mode 100755 web/cobrands/fixmystreet/fonts/MuseoSans_300-webfont.ttf create mode 100755 web/cobrands/fixmystreet/fonts/MuseoSans_300-webfont.woff create mode 100755 web/cobrands/fixmystreet/fonts/MuseoSans_300_Italic-webfont.eot create mode 100755 web/cobrands/fixmystreet/fonts/MuseoSans_300_Italic-webfont.svg create mode 100755 web/cobrands/fixmystreet/fonts/MuseoSans_300_Italic-webfont.ttf create mode 100755 web/cobrands/fixmystreet/fonts/MuseoSans_300_Italic-webfont.woff create mode 100755 web/cobrands/fixmystreet/fonts/MuseoSans_500-webfont.eot create mode 100755 web/cobrands/fixmystreet/fonts/MuseoSans_500-webfont.svg create mode 100755 web/cobrands/fixmystreet/fonts/MuseoSans_500-webfont.ttf create mode 100755 web/cobrands/fixmystreet/fonts/MuseoSans_500-webfont.woff create mode 100755 web/cobrands/fixmystreet/fonts/MuseoSans_500_Italic-webfont.eot create mode 100755 web/cobrands/fixmystreet/fonts/MuseoSans_500_Italic-webfont.svg create mode 100755 web/cobrands/fixmystreet/fonts/MuseoSans_500_Italic-webfont.ttf create mode 100755 web/cobrands/fixmystreet/fonts/MuseoSans_500_Italic-webfont.woff create mode 100644 web/cobrands/fixmystreet/images/grid.png create mode 100644 web/cobrands/fixmystreet/images/main-sprite.png create mode 100644 web/cobrands/fixmystreet/images/temp-map.jpg create mode 100644 web/cobrands/fixmystreet/images/temp-map.png diff --git a/web/cobrands/fixmystreet/fonts/Museo300-Regular-webfont.eot b/web/cobrands/fixmystreet/fonts/Museo300-Regular-webfont.eot new file mode 100755 index 000000000..15be4441c Binary files /dev/null and b/web/cobrands/fixmystreet/fonts/Museo300-Regular-webfont.eot differ diff --git a/web/cobrands/fixmystreet/fonts/Museo300-Regular-webfont.svg b/web/cobrands/fixmystreet/fonts/Museo300-Regular-webfont.svg new file mode 100755 index 000000000..71109b80b --- /dev/null +++ b/web/cobrands/fixmystreet/fonts/Museo300-Regular-webfont.svg @@ -0,0 +1,229 @@ + + + + +This is a custom SVG webfont generated by Fontspring. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/web/cobrands/fixmystreet/fonts/Museo300-Regular-webfont.ttf b/web/cobrands/fixmystreet/fonts/Museo300-Regular-webfont.ttf new file mode 100755 index 000000000..072e9a4e0 Binary files /dev/null and b/web/cobrands/fixmystreet/fonts/Museo300-Regular-webfont.ttf differ diff --git a/web/cobrands/fixmystreet/fonts/Museo300-Regular-webfont.woff b/web/cobrands/fixmystreet/fonts/Museo300-Regular-webfont.woff new file mode 100755 index 000000000..f8a9dff96 Binary files /dev/null and b/web/cobrands/fixmystreet/fonts/Museo300-Regular-webfont.woff differ diff --git a/web/cobrands/fixmystreet/fonts/MuseoSans_300-webfont.eot b/web/cobrands/fixmystreet/fonts/MuseoSans_300-webfont.eot new file mode 100755 index 000000000..5287827df Binary files /dev/null and b/web/cobrands/fixmystreet/fonts/MuseoSans_300-webfont.eot differ diff --git a/web/cobrands/fixmystreet/fonts/MuseoSans_300-webfont.svg b/web/cobrands/fixmystreet/fonts/MuseoSans_300-webfont.svg new file mode 100755 index 000000000..9a04e92bc --- /dev/null +++ b/web/cobrands/fixmystreet/fonts/MuseoSans_300-webfont.svg @@ -0,0 +1,227 @@ + + + + +This is a custom SVG webfont generated by Fontspring. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/web/cobrands/fixmystreet/fonts/MuseoSans_300-webfont.ttf b/web/cobrands/fixmystreet/fonts/MuseoSans_300-webfont.ttf new file mode 100755 index 000000000..0a4444b76 Binary files /dev/null and b/web/cobrands/fixmystreet/fonts/MuseoSans_300-webfont.ttf differ diff --git a/web/cobrands/fixmystreet/fonts/MuseoSans_300-webfont.woff b/web/cobrands/fixmystreet/fonts/MuseoSans_300-webfont.woff new file mode 100755 index 000000000..22110a14e Binary files /dev/null and b/web/cobrands/fixmystreet/fonts/MuseoSans_300-webfont.woff differ diff --git a/web/cobrands/fixmystreet/fonts/MuseoSans_300_Italic-webfont.eot b/web/cobrands/fixmystreet/fonts/MuseoSans_300_Italic-webfont.eot new file mode 100755 index 000000000..3a35076a1 Binary files /dev/null and b/web/cobrands/fixmystreet/fonts/MuseoSans_300_Italic-webfont.eot differ diff --git a/web/cobrands/fixmystreet/fonts/MuseoSans_300_Italic-webfont.svg b/web/cobrands/fixmystreet/fonts/MuseoSans_300_Italic-webfont.svg new file mode 100755 index 000000000..b848d3756 --- /dev/null +++ b/web/cobrands/fixmystreet/fonts/MuseoSans_300_Italic-webfont.svg @@ -0,0 +1,227 @@ + + + + +This is a custom SVG webfont generated by Fontspring. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/web/cobrands/fixmystreet/fonts/MuseoSans_300_Italic-webfont.ttf b/web/cobrands/fixmystreet/fonts/MuseoSans_300_Italic-webfont.ttf new file mode 100755 index 000000000..58241a2e9 Binary files /dev/null and b/web/cobrands/fixmystreet/fonts/MuseoSans_300_Italic-webfont.ttf differ diff --git a/web/cobrands/fixmystreet/fonts/MuseoSans_300_Italic-webfont.woff b/web/cobrands/fixmystreet/fonts/MuseoSans_300_Italic-webfont.woff new file mode 100755 index 000000000..95c94194f Binary files /dev/null and b/web/cobrands/fixmystreet/fonts/MuseoSans_300_Italic-webfont.woff differ diff --git a/web/cobrands/fixmystreet/fonts/MuseoSans_500-webfont.eot b/web/cobrands/fixmystreet/fonts/MuseoSans_500-webfont.eot new file mode 100755 index 000000000..2731833c7 Binary files /dev/null and b/web/cobrands/fixmystreet/fonts/MuseoSans_500-webfont.eot differ diff --git a/web/cobrands/fixmystreet/fonts/MuseoSans_500-webfont.svg b/web/cobrands/fixmystreet/fonts/MuseoSans_500-webfont.svg new file mode 100755 index 000000000..dd240b802 --- /dev/null +++ b/web/cobrands/fixmystreet/fonts/MuseoSans_500-webfont.svg @@ -0,0 +1,227 @@ + + + + +This is a custom SVG webfont generated by Fontspring. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/web/cobrands/fixmystreet/fonts/MuseoSans_500-webfont.ttf b/web/cobrands/fixmystreet/fonts/MuseoSans_500-webfont.ttf new file mode 100755 index 000000000..d23f991ce Binary files /dev/null and b/web/cobrands/fixmystreet/fonts/MuseoSans_500-webfont.ttf differ diff --git a/web/cobrands/fixmystreet/fonts/MuseoSans_500-webfont.woff b/web/cobrands/fixmystreet/fonts/MuseoSans_500-webfont.woff new file mode 100755 index 000000000..c1f85a061 Binary files /dev/null and b/web/cobrands/fixmystreet/fonts/MuseoSans_500-webfont.woff differ diff --git a/web/cobrands/fixmystreet/fonts/MuseoSans_500_Italic-webfont.eot b/web/cobrands/fixmystreet/fonts/MuseoSans_500_Italic-webfont.eot new file mode 100755 index 000000000..e60c7e02e Binary files /dev/null and b/web/cobrands/fixmystreet/fonts/MuseoSans_500_Italic-webfont.eot differ diff --git a/web/cobrands/fixmystreet/fonts/MuseoSans_500_Italic-webfont.svg b/web/cobrands/fixmystreet/fonts/MuseoSans_500_Italic-webfont.svg new file mode 100755 index 000000000..28df57c2f --- /dev/null +++ b/web/cobrands/fixmystreet/fonts/MuseoSans_500_Italic-webfont.svg @@ -0,0 +1,227 @@ + + + + +This is a custom SVG webfont generated by Fontspring. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/web/cobrands/fixmystreet/fonts/MuseoSans_500_Italic-webfont.ttf b/web/cobrands/fixmystreet/fonts/MuseoSans_500_Italic-webfont.ttf new file mode 100755 index 000000000..445af3ac1 Binary files /dev/null and b/web/cobrands/fixmystreet/fonts/MuseoSans_500_Italic-webfont.ttf differ diff --git a/web/cobrands/fixmystreet/fonts/MuseoSans_500_Italic-webfont.woff b/web/cobrands/fixmystreet/fonts/MuseoSans_500_Italic-webfont.woff new file mode 100755 index 000000000..453194a98 Binary files /dev/null and b/web/cobrands/fixmystreet/fonts/MuseoSans_500_Italic-webfont.woff differ diff --git a/web/cobrands/fixmystreet/images/grid.png b/web/cobrands/fixmystreet/images/grid.png new file mode 100644 index 000000000..b57c4fe50 Binary files /dev/null and b/web/cobrands/fixmystreet/images/grid.png differ diff --git a/web/cobrands/fixmystreet/images/main-sprite.png b/web/cobrands/fixmystreet/images/main-sprite.png new file mode 100644 index 000000000..196e5b95e Binary files /dev/null and b/web/cobrands/fixmystreet/images/main-sprite.png differ diff --git a/web/cobrands/fixmystreet/images/temp-map.jpg b/web/cobrands/fixmystreet/images/temp-map.jpg new file mode 100644 index 000000000..60ca79878 Binary files /dev/null and b/web/cobrands/fixmystreet/images/temp-map.jpg differ diff --git a/web/cobrands/fixmystreet/images/temp-map.png b/web/cobrands/fixmystreet/images/temp-map.png new file mode 100644 index 000000000..12b9f2ab4 Binary files /dev/null and b/web/cobrands/fixmystreet/images/temp-map.png differ -- cgit v1.2.3 From d0f234fdd551fe42363aeccb7a4d19a6255a4dc8 Mon Sep 17 00:00:00 2001 From: Josh Angell Date: Fri, 10 Feb 2012 14:35:04 +0000 Subject: duplicate and modify report template group Signed-off-by: Josh Angell --- templates/web/fixmystreet/report/_main.html | 18 ++ templates/web/fixmystreet/report/display.html | 224 +++++++++++++++++++++ templates/web/fixmystreet/report/new/category.html | 10 + .../fixmystreet/report/new/category_extras.html | 26 +++ .../web/fixmystreet/report/new/councils_text.html | 9 + .../fixmystreet/report/new/councils_text_all.html | 19 ++ .../fixmystreet/report/new/councils_text_none.html | 22 ++ .../fixmystreet/report/new/councils_text_some.html | 28 +++ .../fixmystreet/report/new/fill_in_details.html | 35 ++++ .../report/new/fill_in_details_form.html | 220 ++++++++++++++++++++ .../report/new/fill_in_details_text.html | 13 ++ .../web/fixmystreet/report/new/form_heading.html | 0 templates/web/fixmystreet/report/new/notes.html | 11 + .../web/fixmystreet/report/new/report_import.html | 92 +++++++++ templates/web/fixmystreet/report/photo.html | 6 + templates/web/fixmystreet/report/updates.html | 36 ++++ 16 files changed, 769 insertions(+) create mode 100644 templates/web/fixmystreet/report/_main.html create mode 100644 templates/web/fixmystreet/report/display.html create mode 100644 templates/web/fixmystreet/report/new/category.html create mode 100644 templates/web/fixmystreet/report/new/category_extras.html create mode 100644 templates/web/fixmystreet/report/new/councils_text.html create mode 100644 templates/web/fixmystreet/report/new/councils_text_all.html create mode 100644 templates/web/fixmystreet/report/new/councils_text_none.html create mode 100644 templates/web/fixmystreet/report/new/councils_text_some.html create mode 100644 templates/web/fixmystreet/report/new/fill_in_details.html create mode 100644 templates/web/fixmystreet/report/new/fill_in_details_form.html create mode 100644 templates/web/fixmystreet/report/new/fill_in_details_text.html create mode 100644 templates/web/fixmystreet/report/new/form_heading.html create mode 100644 templates/web/fixmystreet/report/new/notes.html create mode 100644 templates/web/fixmystreet/report/new/report_import.html create mode 100644 templates/web/fixmystreet/report/photo.html create mode 100644 templates/web/fixmystreet/report/updates.html diff --git a/templates/web/fixmystreet/report/_main.html b/templates/web/fixmystreet/report/_main.html new file mode 100644 index 000000000..8cc1efec2 --- /dev/null +++ b/templates/web/fixmystreet/report/_main.html @@ -0,0 +1,18 @@ +

[% problem.title | html %]

+ +

[% problem.meta_line(c) | html %] +[% IF problem.council %] + [% IF problem.whensent %] +
[% problem.duration_string(c) %]
+ [% END %] +[% ELSE %] +
[% loc('Not reported to council') %] +[% END %] + +

+ +[% add_links( problem.detail ) | html_para %] + +[% INCLUDE 'report/photo.html' object=problem center=1 %] + + diff --git a/templates/web/fixmystreet/report/display.html b/templates/web/fixmystreet/report/display.html new file mode 100644 index 000000000..9670a6810 --- /dev/null +++ b/templates/web/fixmystreet/report/display.html @@ -0,0 +1,224 @@ +[% + PROCESS "maps/${map.type}.html"; + + problem_title = problem.title _ ' - ' _ loc('Viewing a problem') | html; + INCLUDE 'header.html' + title = problem_title + rss = [ loc('Updates to this problem, FixMyStreet'), "/rss/$problem.id" ] + robots = 'index, nofollow' +%] + +[% map_html %] + + +
+ +[% IF banner.id %] + +[% END %] + +[% INCLUDE 'report/_main.html' %] + + + + + + + + + +[% INCLUDE 'report/updates.html' %] + +
+ +

+ [% loc( 'Provide an update') %] +

+ + [% IF c.cobrand.moniker != 'emptyhomes' %] +

+ [% loc( 'Please note that updates are not sent to the council. If you leave your name it will be public. Your information will only be used in accordance with our privacy policy' ) %] +

+ [% END %] + + [% INCLUDE 'errors.html' %] + +
+ + + + + [% IF field_errors.update %] +
[% field_errors.update %]
+ [% END %] +
+ + +
+ + [% IF c.user && c.user.belongs_to_council( problem.council ) %] +
+ + +
+ [% ELSE %] + [% IF problem.is_fixed AND c.user_exists AND c.user.id == problem.user_id %] +
+ + +
+ [% ELSIF !problem.is_fixed %] +
+ + +
+ [% END %] + [% END %] + + [% IF c.cobrand.allow_photo_upload %] + [% IF field_errors.photo %] +
[% field_errors.photo %]
+ [% END %] +
+ [% IF upload_fileid %] +

[% loc('You have already attached a photo to this update, attaching another one will replace it.') %]

+ + [% END %] + + +
+ [% END %] + +[% IF c.user_exists %] + + [% INCLUDE name %] + +
+ +
+ +[% ELSE %] + + [% IF field_errors.email %] +
[% field_errors.email %]
+ [% END %] +
+ + +
+ +
+

[% loc("Now to submit your update… do you have a FixMyStreet password?") %]

+ +
+ + [% IF field_errors.password %] +
[% field_errors.password %]
+ [% END %] + +

+ + +

+ +
+ +

+ + +

+ +

+ +

+ +
+ +
+
+ +

[% loc('No, let me confirm my update by email:') %]

+ +
+ + [% INCLUDE name %] + +
+ + +
+ +

[% loc('Providing a password is optional, but doing so will allow you to more easily report problems, leave updates and manage your reports.') %]

+ +

+ +

+ +
+ +
+ +
+ +[% END %] + +
+
+ +
+ +[% INCLUDE 'footer.html' %] + +[% BLOCK name %] + [% IF field_errors.name %] +
[% field_errors.name %]
+ [% END %] + +
+ + +
+ +
+ + + [% loc('(we never show your email)') %] +
+ +
+ + +
+[% END %] diff --git a/templates/web/fixmystreet/report/new/category.html b/templates/web/fixmystreet/report/new/category.html new file mode 100644 index 000000000..095cd7c2e --- /dev/null +++ b/templates/web/fixmystreet/report/new/category.html @@ -0,0 +1,10 @@ +[% FILTER collapse %] +[% IF category_options.size %] + + +[% END %] +[% END -%] diff --git a/templates/web/fixmystreet/report/new/category_extras.html b/templates/web/fixmystreet/report/new/category_extras.html new file mode 100644 index 000000000..7be69e30c --- /dev/null +++ b/templates/web/fixmystreet/report/new/category_extras.html @@ -0,0 +1,26 @@ +
+ [%- IF report_meta %] + [%- category = report.category %] +

Additional Information

+ [%- FOR meta IN category_extras.$category %] + [%- meta_name = meta.code -%] + +[% IF field_errors.$meta_name %] +
[% field_errors.$meta_name %]
+[% END -%] + +
+ + [% IF meta.exists('values') %] + + [% ELSE %] + + [% END %] +
+ [%- END %] + [%- END %] +
diff --git a/templates/web/fixmystreet/report/new/councils_text.html b/templates/web/fixmystreet/report/new/councils_text.html new file mode 100644 index 000000000..1da5746c1 --- /dev/null +++ b/templates/web/fixmystreet/report/new/councils_text.html @@ -0,0 +1,9 @@ +[% FILTER collapse %] +[% IF area_ids_to_list.size == 0 %] + [% PROCESS 'report/new/councils_text_none.html' %] +[% ELSIF area_ids_to_list.size == all_councils.size %] + [% PROCESS 'report/new/councils_text_all.html' %] +[% ELSE %] + [% PROCESS 'report/new/councils_text_some.html' %] +[% END %] +[% END -%] diff --git a/templates/web/fixmystreet/report/new/councils_text_all.html b/templates/web/fixmystreet/report/new/councils_text_all.html new file mode 100644 index 000000000..8514e0b0a --- /dev/null +++ b/templates/web/fixmystreet/report/new/councils_text_all.html @@ -0,0 +1,19 @@ +

+[% IF all_councils.${area_ids_to_list.0}.type == 'LBO' %] +[% + tprintf( + loc('All the information you provide here will be sent to %s or a relevant local body such as TfL, via the London Report-It system.'), + all_council_names.join( '' _ loc(' or ') _ '' ) + ); +%] +[% ELSE %] +[% + tprintf( + loc('All the information you provide here will be sent to %s.'), + all_council_names.join( '' _ loc(' or ') _ '' ) + ); +%] +[% END %] + +[% loc('The subject and details of the problem will be public, plus your name if you give us permission.') %] +

diff --git a/templates/web/fixmystreet/report/new/councils_text_none.html b/templates/web/fixmystreet/report/new/councils_text_none.html new file mode 100644 index 000000000..06a4bbe49 --- /dev/null +++ b/templates/web/fixmystreet/report/new/councils_text_none.html @@ -0,0 +1,22 @@ + + +

[% + + nget( + "We do not yet have details for the council that covers this location.", + "We do not yet have details for the councils that cover this location.", + all_councils.size + ); +%] +[% + loc("If you submit a problem here the subject and details of the problem will be public, but the problem will not be reported to the council."); +%] +[% + tprintf( + loc("You can help us by finding a contact email address for local problems for %s and emailing it to us at %s."), + all_council_names.join( loc(' or ') ), + c.cobrand.contact_email, + c.cobrand.contact_email + ); + +%]

diff --git a/templates/web/fixmystreet/report/new/councils_text_some.html b/templates/web/fixmystreet/report/new/councils_text_some.html new file mode 100644 index 000000000..042e89914 --- /dev/null +++ b/templates/web/fixmystreet/report/new/councils_text_some.html @@ -0,0 +1,28 @@ +

+[% loc('All the information you provide here will be sent to') %] + +[% FOREACH council_id IN area_ids_to_list %] + [% loc( ' or ') IF ! loop.first %] + [% all_councils.$council_id.name %] + [%- '.' IF loop.last %] +[% END %] + +[% + loc('The subject and details of the problem will be public, plus your name if you give us permission.'); +%] +[% + nget( + "We do not yet have details for the other council that covers this location.", + "We do not yet have details for the other councils that cover this location.", + missing_details_councils.size + ); +%] +[% + tprintf( + loc("You can help us by finding a contact email address for local problems for %s and emailing it to us at %s."), + missing_details_council_names.join( loc(' or ') ), + c.cobrand.contact_email, + c.cobrand.contact_email + ); +%] +

diff --git a/templates/web/fixmystreet/report/new/fill_in_details.html b/templates/web/fixmystreet/report/new/fill_in_details.html new file mode 100644 index 000000000..22d1ee739 --- /dev/null +++ b/templates/web/fixmystreet/report/new/fill_in_details.html @@ -0,0 +1,35 @@ +[% + PROCESS "maps/${map.type}.html" IF report.used_map; + INCLUDE 'header.html', title => loc('Reporting a problem') +%] + +[% IF report.used_map %] +
+[% IF c.req.params.map_override %] + +[% END %] + +[% ELSE %] + + + +[% END %] + + + + +[% IF report.used_map %] + [% map_html %] + +
+[% ELSE %] +
+[% END %] + +[% PROCESS 'report/new/fill_in_details_form.html' %] + +
+ + +[% INCLUDE 'footer.html' %] + diff --git a/templates/web/fixmystreet/report/new/fill_in_details_form.html b/templates/web/fixmystreet/report/new/fill_in_details_form.html new file mode 100644 index 000000000..2809b9c0e --- /dev/null +++ b/templates/web/fixmystreet/report/new/fill_in_details_form.html @@ -0,0 +1,220 @@ +

[% loc('Reporting a problem') %]

+ +[% IF report.used_map %] + [% IF partial_token %] +

[% loc('Please note your report has not yet been sent. Choose a category and add further information below, then submit.') %]

+ [% END %] +

[% loc('You have located the problem at the point marked with a purple pin on the map. If this is not the correct location, simply click on the map again. ') %]

+[% END %] + +[% IF js %] +

[% + tprintf( + loc('All the information you provide here will be sent to %s.'), + loc('the local council') + ); + %] + [% loc('The subject and details of the problem will be public, plus your name if you give us permission.') %] +

+[% ELSE %] + [% PROCESS 'report/new/councils_text.html' %] +[% END %] + +

+[% IF report.used_map %] + [% INCLUDE 'report/new/fill_in_details_text.html' %] +[% ELSE %] + [% loc('Please fill in the form below with details of the problem, and describe the location as precisely as possible in the details box.') %] +[% END %] +

+ +[% INCLUDE 'errors.html' %] + +
+ +[% INCLUDE 'report/new/form_heading.html' %] + +
+ + + + + +[% IF field_errors.council %] +
[% field_errors.council %]
+[% END %] + +[% IF field_errors.title %] +
[% field_errors.title %]
+[% END %] + +
+ + +
+ +[% IF field_errors.detail %] +
[% field_errors.detail %]
+[% END %] + +
+ + +
+ +[% IF js %] +
+ + +
+[% ELSE %] + [% IF category_options.size %] + [% IF field_errors.category %] +
[% field_errors.category %]
+ [% END %] + +
+ [% PROCESS "report/new/category.html" %] +
+ [% END %] +[% END %] + +[%- IF category_extras %] +[% PROCESS "report/new/category_extras.html" %] +[%- END %] + +[% IF c.cobrand.allow_photo_upload %] + [% IF field_errors.photo %] +
[% field_errors.photo %]
+ [% END %] + +
+ [% IF upload_fileid || report.photo %] +

[% loc('You have already attached a photo to this report, attaching another one will replace it.') %]

+ [% IF upload_fileid %] + + [% END %] + [% IF report.photo %] + + [% END %] + [% END %] + + + +
+[% END %] + +[% IF c.user_exists %] + + [% INCLUDE name_phone %] + + [% INCLUDE 'report/new/notes.html' %] + +

+ +

+ +[% ELSE %] + + [% IF field_errors.email %] +
[% field_errors.email %]
+ [% END %] + +
+ + +
+ +[% INCLUDE 'report/new/notes.html' %] + +
+

[% loc("Now to submit your report… do you have a FixMyStreet password?") %]

+ +
+ + [% IF field_errors.password %] +
[% field_errors.password %]
+ [% END %] + +
+ + +
+ +
+ +

+ + +

+ +

+ +

+ +
+ +
+
+ +

[% loc('No, let me confirm my report by email:') %]

+ +
+ + [% INCLUDE name_phone %] + +
+ + +
+ +

[% loc('Providing a password is optional, but doing so will allow you to more easily report problems, leave updates and manage your reports.') %]

+ +

+ +

+ +
+ +
+ +
+ +[% END %] + +[% IF partial_token %] + +[% END %] + + + +
+
+ + +[% BLOCK name_phone %] + [% IF field_errors.name %] +
[% field_errors.name %]
+ [% END %] + +
+ + +
+ +
+ [%# if there is nothing in the name field then set check box as default on form %] + + +
[% loc('(we never show your email address or phone number)') %] +
+ +
+ + + [% loc('(optional)') %] +
+[% END %] + diff --git a/templates/web/fixmystreet/report/new/fill_in_details_text.html b/templates/web/fixmystreet/report/new/fill_in_details_text.html new file mode 100644 index 000000000..5d9716915 --- /dev/null +++ b/templates/web/fixmystreet/report/new/fill_in_details_text.html @@ -0,0 +1,13 @@ +[% + IF area_ids_to_list.size != 0; + loc('Please fill in details of the problem below. The council won\'t be able +to help unless you leave as much detail as you can, so please describe the exact location of +the problem (e.g. on a wall), what it is, how long it has been there, a description (and a +photo of the problem if you have one), etc.'); + IF category_extras; + ' ' _ loc('Some categories may require additional information.'); + END; + ELSE; + loc('Please fill in details of the problem below.'); + END; +%] diff --git a/templates/web/fixmystreet/report/new/form_heading.html b/templates/web/fixmystreet/report/new/form_heading.html new file mode 100644 index 000000000..e69de29bb diff --git a/templates/web/fixmystreet/report/new/notes.html b/templates/web/fixmystreet/report/new/notes.html new file mode 100644 index 000000000..be605ddaa --- /dev/null +++ b/templates/web/fixmystreet/report/new/notes.html @@ -0,0 +1,11 @@ +

[% loc("Please note:") %]

+ +
    + +
  • [% loc("We will only use your personal information in accordance with our privacy policy.") %]
  • +
  • [% loc("Please be polite, concise and to the point.") %]
  • +
  • [% loc("Please do not be abusive — abusing your council devalues the service for all users.") %]
  • +
  • [% loc("Writing your message entirely in block capitals makes it hard to read, as does a lack of punctuation.") %]
  • +
  • [% loc("Remember that FixMyStreet is primarily for reporting physical problems that can be fixed. If your problem is not appropriate for submission via this site remember that you can contact your council directly using their own website.") %]
  • + +
diff --git a/templates/web/fixmystreet/report/new/report_import.html b/templates/web/fixmystreet/report/new/report_import.html new file mode 100644 index 000000000..7aa105afe --- /dev/null +++ b/templates/web/fixmystreet/report/new/report_import.html @@ -0,0 +1,92 @@ +[% INCLUDE 'header.html', title => 'External import' %] + +

External import

+ +

You may inject problem reports into FixMyStreet programatically using this +simple interface. Upon receipt, an email will be sent to the address given, +with a link the user must click in order to check the details of their report, +add any other information they wish, and then submit to the council. + +

This interface returns a plain text response; either SUCCESS if +the report has been successfully received, or if not, a list of errors, one per +line each starting with ERROR:. + +

You may submit the following information by POST to this URL +(i.e. [% c.uri_for('/import') %] ):

+ + + +
+ +
+
service
+
+ Required. + Name of application/service using this interface. + +
+ +
id
+
+ Unique ID of a user/device, for possible future use.
+ (e.g. used by Flickr import to know which accounts to look at) + +
+ +
subject
+
+ Required. Subject of problem report. + +
+ +
detail
+
+ Main body and details of problem report. + +
+ +
name
+
+ Required. Name of problem reporter. + +
+ +
email
+
+ Required. Email address of problem reporter. + +
+ +
phone
+
+ Telephone number of problem reporter. + +
+ +
easting / northing
+
lat / lon
+
+ Location of problem report. You can either supply eastings/northings, or WGS84 latitude/longitude. + + + + +
+ +
photo
+
+ Photo of problem (JPEG only). + +
+
+ + + +
+ +[% INCLUDE 'footer.html' %] \ No newline at end of file diff --git a/templates/web/fixmystreet/report/photo.html b/templates/web/fixmystreet/report/photo.html new file mode 100644 index 000000000..f266792b2 --- /dev/null +++ b/templates/web/fixmystreet/report/photo.html @@ -0,0 +1,6 @@ +[% IF c.cobrand.allow_photo_display && object.photo %] +[% photo = object.get_photo_params %] +
+ +
+[% END %] diff --git a/templates/web/fixmystreet/report/updates.html b/templates/web/fixmystreet/report/updates.html new file mode 100644 index 000000000..508e2aacc --- /dev/null +++ b/templates/web/fixmystreet/report/updates.html @@ -0,0 +1,36 @@ +[% FOREACH update IN updates.all %] +[% IF loop.first %] +
+

[% loc('Updates') %]

+
    +[% END %] +
  • +
    +
    + [% add_links( update.text ) | html_para %] + +

    + + [% IF update.anonymous || update.name == '' %] + [% tprintf( loc( 'Posted anonymously at %s' ), prettify_epoch( update.confirmed_local.epoch ) ) -%] + [%- ELSIF update.user.from_council %] + [% user_name = update.user.name | html %] + [% tprintf( loc( 'Posted by %s (%s) at %s' ), user_name, update.user.council, prettify_epoch( update.confirmed_local.epoch ) ) -%] + [%- ELSE %] + [% tprintf( loc( 'Posted by %s at %s' ), update.name, prettify_epoch( update.confirmed_local.epoch ) ) | html -%] + [%- END -%] + [%- c.cobrand.extra_update_meta_text(update) -%] + [%- ", " _ loc( 'marked as fixed' ) IF update.mark_fixed %] + [%- ", " _ loc( 'reopened' ) IF update.mark_open %] + [%- ", " _ tprintf(loc( 'marked as %s' ), update.meta_problem_state) IF update.problem_state %] +

    +
    + + [% INCLUDE 'report/photo.html' object=update %] +
    +
  • +[% IF loop.last %] +
+
+[% END %] +[% END %] \ No newline at end of file -- cgit v1.2.3 From 3bc23430e387a4f598ea46f4f95a024c39c627b4 Mon Sep 17 00:00:00 2001 From: Josh Angell Date: Fri, 10 Feb 2012 14:35:18 +0000 Subject: duplicate and modify around template group Signed-off-by: Josh Angell --- templates/web/fixmystreet/around/around_index.html | 49 ++++++++ .../fixmystreet/around/around_map_list_items.html | 16 +++ .../web/fixmystreet/around/display_location.html | 126 +++++++++++++++++++++ .../web/fixmystreet/around/on_map_list_items.html | 13 +++ 4 files changed, 204 insertions(+) create mode 100644 templates/web/fixmystreet/around/around_index.html create mode 100644 templates/web/fixmystreet/around/around_map_list_items.html create mode 100755 templates/web/fixmystreet/around/display_location.html create mode 100644 templates/web/fixmystreet/around/on_map_list_items.html diff --git a/templates/web/fixmystreet/around/around_index.html b/templates/web/fixmystreet/around/around_index.html new file mode 100644 index 000000000..c07eb2ca2 --- /dev/null +++ b/templates/web/fixmystreet/around/around_index.html @@ -0,0 +1,49 @@ +[% INCLUDE 'header.html', title => loc('Reporting a problem') %] + +[% + # NOTE ON PARTIAL REPORTS: + # + # partial reports get a bit of extra text added, the form goes to + # '/report/new' and the partial hidden field is added to the form. +%] + +[% + question + = c.cobrand.enter_postcode_text() + || loc("Enter a nearby GB postcode, or street name and area"); +%] + +
+    + +[% IF partial_token %] + +[% END %] + +
+ +[% IF location_offshore %] +

[% loc('That spot does not appear to be covered by a council. If you have tried to report an issue past the shoreline, for example, please specify the closest point on land.') %]

+[% ELSIF location_error %] +

[% location_error %]

+[% END %] + +[% IF possible_location_matches %] +

[% 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.') %]

+ +[% END %] + +[% IF partial_token %] +

+ + [% loc("Thanks for uploading your photo. We now need to locate your problem, so please enter a nearby street name or postcode in the box below :") %] +

+[% END %] + + + +[% INCLUDE 'footer.html' %] diff --git a/templates/web/fixmystreet/around/around_map_list_items.html b/templates/web/fixmystreet/around/around_map_list_items.html new file mode 100644 index 000000000..e248ce3ed --- /dev/null +++ b/templates/web/fixmystreet/around/around_map_list_items.html @@ -0,0 +1,16 @@ +[% IF around_map.size %] + [% FOREACH p IN around_map %] + + [% dist = tprintf("%.1f", (p.distance || 0) ) %] + +
  • + [% p.problem.title | html %] + [% prettify_epoch( p.problem.confirmed_local.epoch, 1 ) %], [% dist %]km + [% IF p.problem.is_fixed %] + [% loc('(fixed)') %] + [% END %] +
  • + [% END %] +[% ELSE %] +
  • [% loc('No problems found.') %]
  • +[% END %] diff --git a/templates/web/fixmystreet/around/display_location.html b/templates/web/fixmystreet/around/display_location.html new file mode 100755 index 000000000..b5705a77b --- /dev/null +++ b/templates/web/fixmystreet/around/display_location.html @@ -0,0 +1,126 @@ +[% + + rss_alt = loc('RSS feed'); + rss_title = loc('RSS feed of recent local problems'); + + rss_url + = pc + ? c.uri_for( "/rss/pc", pc ) + : c.uri_for( "/rss/l/$short_latitude,$short_longitude" ); + + email_url = c.uri_for( + '/alert/list', + { + lat => short_latitude, + lon => short_longitude, + feed => "local:$short_latitude:$short_longitude", + } + ); + + url_skip = c.uri_for( + '/report/new', + { + pc => pc + latitude => short_latitude, + longitude => short_longitude, + skipped => 1, + } + ); + + PROCESS "maps/${map.type}.html"; + + INCLUDE 'header.html', + title => loc('Viewing a location') + rss => [ loc('Recent local problems, FixMyStreet'), rss_url ], + robots => 'noindex,nofollow'; +%] + +
    +[% IF c.req.params.map_override %] + +[% END %] + + + + + +[% map_html %] + + + +
    +
    + + + +

    [% loc('Problems in this area') %]

    + + + +
    + +

    [% loc('Reports on and around the map') %]

    + +
      + [% INCLUDE "around/on_map_list_items.html" %] +
    + + +

    + [% + tprintf( + loc( 'Closest nearby problems (within %skm)' ), + distance + ) + %] +

    + +
      + [% INCLUDE "around/around_map_list_items.html" %] +
    + +
    + +
    + + + + + +[% INCLUDE 'footer.html' %] diff --git a/templates/web/fixmystreet/around/on_map_list_items.html b/templates/web/fixmystreet/around/on_map_list_items.html new file mode 100644 index 000000000..245be7190 --- /dev/null +++ b/templates/web/fixmystreet/around/on_map_list_items.html @@ -0,0 +1,13 @@ +[% IF on_map.size %] + [% FOREACH p IN on_map %] +
  • + [% p.title | html %] + [% prettify_epoch( p.confirmed_local.epoch, 1 ) %] + [% IF p.is_fixed %] + [% loc('(fixed)') %] + [% END %] +
  • + [% END %] +[% ELSE %] +
  • [% loc('No problems have been reported yet.') %]
  • +[% END %] -- cgit v1.2.3 From f15ba365c0595cde6a83b3a5c87d620a32e7ebc6 Mon Sep 17 00:00:00 2001 From: Josh Angell Date: Fri, 10 Feb 2012 14:35:36 +0000 Subject: duplicate and modify index template Signed-off-by: Josh Angell --- templates/web/fixmystreet/index.html | 86 ++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 templates/web/fixmystreet/index.html diff --git a/templates/web/fixmystreet/index.html b/templates/web/fixmystreet/index.html new file mode 100644 index 000000000..4b7f8da52 --- /dev/null +++ b/templates/web/fixmystreet/index.html @@ -0,0 +1,86 @@ +[% INCLUDE 'header.html', title => '' %] + +[% IF error %] +

    [% error %]

    +[% END %] + +

    + [% + subhead + = c.cobrand.moniker == 'southampton' + ? '(like graffiti, fly tipping, or broken paving slabs)' + : loc('(like graffiti, fly tipping, broken paving slabs, or street lighting)'); + %] + + [% loc('Report, view, or discuss local problems') %] + + [% IF subhead != ' ' %] + [% subhead %] + [% END %] +

    + +[% TRY %][% INCLUDE 'front/news.html' %][% CATCH file %][% END %] + +[% + question + = c.cobrand.enter_postcode_text() + || loc("Enter a nearby GB postcode, or street name and area"); +%] + +
    + + + + +
    + +
    + +

    [% loc('How to report a problem') %]

    + +
      +
    1. [% question %]
    2. +
    3. [% loc('Locate the problem on a map of the area') %]
    4. +
    5. [% loc('Enter details of the problem') %]
    6. +
    7. [% loc('We send it to the council on your behalf') %]
    8. +
    + + [% INCLUDE "front/stats.html" %] + [% TRY %][% INCLUDE "front/tips.html" %][% CATCH file %][% END %] + +
    + +[% + recent_photos = c.cobrand.recent_photos(3); + probs = c.cobrand.recent(); +%] + + +[% IF probs.size || recent_photos.size %] +
    +

    [% loc('Recently reported problems') %]

    + [% IF recent_photos.size %] +

    + [% FOREACH p IN recent_photos %] + [% p.title | html %] + [% END %] +

    + [% END %] + + [% IF probs.size %] + + +
      + [% FOREACH p IN probs %] +
    • + [% p.title | html %] + [% prettify_epoch( p.confirmed_local.epoch, 1 ) %] +
    • + [% END %] +
    + [% END %] +
    +[% END %] + +[% INCLUDE 'footer.html' %] -- cgit v1.2.3 From 6cc570a5de1875fd6f14f2e27c8af716adedeb91 Mon Sep 17 00:00:00 2001 From: Josh Angell Date: Fri, 10 Feb 2012 14:35:52 +0000 Subject: make some fundamental markup changes to the header/footer Signed-off-by: Josh Angell --- templates/web/fixmystreet/footer.html | 62 +++++++++++++++++++---------------- templates/web/fixmystreet/header.html | 38 +++++++++++---------- 2 files changed, 54 insertions(+), 46 deletions(-) diff --git a/templates/web/fixmystreet/footer.html b/templates/web/fixmystreet/footer.html index 089eb1cb7..f7513e1d6 100644 --- a/templates/web/fixmystreet/footer.html +++ b/templates/web/fixmystreet/footer.html @@ -1,31 +1,37 @@ - - - + + + + + + + + - - - -
    -[% ELSE %] -
    [% END %] -[% PROCESS 'report/new/fill_in_details_form.html' %] + + -
    - + [% IF report.used_map %] + [% map_html %] +
    + [% END %] -[% INCLUDE 'footer.html' %] + [% PROCESS 'report/new/fill_in_details_form.html' %] + +[% INCLUDE 'footer.html' %] \ No newline at end of file diff --git a/templates/web/fixmystreet/report/new/fill_in_details_form.html b/templates/web/fixmystreet/report/new/fill_in_details_form.html index 2809b9c0e..f7a18c48c 100644 --- a/templates/web/fixmystreet/report/new/fill_in_details_form.html +++ b/templates/web/fixmystreet/report/new/fill_in_details_form.html @@ -29,160 +29,137 @@

    [% INCLUDE 'errors.html' %] +
    +
    -
    + [% INCLUDE 'report/new/form_heading.html' %] -[% INCLUDE 'report/new/form_heading.html' %] -
    - - - - - -[% IF field_errors.council %] -
    [% field_errors.council %]
    -[% END %] - -[% IF field_errors.title %] -
    [% field_errors.title %]
    -[% END %] + [% IF field_errors.council %] +

    [% field_errors.council %]

    + [% END %] -
    - - -
    + [% IF field_errors.title %] +

    [% field_errors.title %]

    + [% END %] -[% IF field_errors.detail %] -
    [% field_errors.detail %]
    -[% END %] -
    - - -
    + + -[% IF js %] -
    - - -
    -[% ELSE %] - [% IF category_options.size %] - [% IF field_errors.category %] -
    [% field_errors.category %]
    + [% IF field_errors.detail %] +

    [% field_errors.detail %]

    [% END %] -
    - [% PROCESS "report/new/category.html" %] -
    - [% END %] -[% END %] -[%- IF category_extras %] -[% PROCESS "report/new/category_extras.html" %] -[%- END %] + + -[% IF c.cobrand.allow_photo_upload %] - [% IF field_errors.photo %] -
    [% field_errors.photo %]
    - [% END %] - -
    - [% IF upload_fileid || report.photo %] -

    [% loc('You have already attached a photo to this report, attaching another one will replace it.') %]

    - [% IF upload_fileid %] - - [% END %] - [% IF report.photo %] - + [% IF js %] +
    + + +
    + [% ELSE %] + [% IF category_options.size %] + [% IF field_errors.category %] +

    [% field_errors.category %]

    + [% END %] + + [% PROCESS "report/new/category.html" %] + [% END %] [% END %] - [% END %] - - - -
    -[% END %] - -[% IF c.user_exists %] - - [% INCLUDE name_phone %] - [% INCLUDE 'report/new/notes.html' %] + [%- IF category_extras %] + [% PROCESS "report/new/category_extras.html" %] + [%- END %] + + [% IF c.cobrand.allow_photo_upload %] + [% IF field_errors.photo %] +

    [% field_errors.photo %]

    + [% END %] + + + [% IF upload_fileid || report.photo %] +

    [% loc('You have already attached a photo to this report, attaching another one will replace it.') %]

    + + [% IF upload_fileid %] + + [% END %] + + [% IF report.photo %] + + [% END %] + [% END %] + + + + [% END %] -

    - -

    + [% IF c.user_exists %] -[% ELSE %] + [% INCLUDE name_phone %] - [% IF field_errors.email %] -
    [% field_errors.email %]
    - [% END %] + [% INCLUDE 'report/new/notes.html' %] -
    - - -
    +

    + +

    -[% INCLUDE 'report/new/notes.html' %] + [% ELSE %] -
    -

    [% loc("Now to submit your report… do you have a FixMyStreet password?") %]

    + [% IF field_errors.email %] +

    [% field_errors.email %]

    + [% END %] -
    + + - [% IF field_errors.password %] -
    [% field_errors.password %]
    - [% END %] + [% INCLUDE 'report/new/notes.html' %] -
    - - -
    +
    +

    [% loc("Now to submit your report… do you have a FixMyStreet password?") %]

    -
    +
    + [% IF field_errors.password %] +

    [% field_errors.password %]

    + [% END %] -

    - - -

    + + -

    - -

    +

    + + +

    -
    +

    + +

    +
    -
    -
    +
    +

    [% loc('No, let me confirm my report by email:') %]

    -

    [% loc('No, let me confirm my report by email:') %]

    + [% INCLUDE name_phone %] + + + + -
    +

    [% loc('Providing a password is optional, but doing so will allow you to more easily report problems, leave updates and manage your reports.') %]

    - [% INCLUDE name_phone %] +

    + +

    -
    - -
    -

    [% loc('Providing a password is optional, but doing so will allow you to more easily report problems, leave updates and manage your reports.') %]

    - -

    - -

    -
    + [% END %]
    - -
    - -[% END %] +
    [% IF partial_token %] @@ -190,31 +167,22 @@ - - - [% BLOCK name_phone %] [% IF field_errors.name %] -
    [% field_errors.name %]
    +

    [% field_errors.name %]

    [% END %] -
    - - -
    + + -
    - [%# if there is nothing in the name field then set check box as default on form %] - - -
    [% loc('(we never show your email address or phone number)') %] -
    + [%# if there is nothing in the name field then set check box as default on form %] + + +

    [% loc('(we never show your email address or phone number)') %]

    -
    - - - [% loc('(optional)') %] -
    -[% END %] + + +

    [% loc('(optional)') %]

    +[% END %] \ No newline at end of file diff --git a/templates/web/fixmystreet/report/new/fill_in_details_text.html b/templates/web/fixmystreet/report/new/fill_in_details_text.html index 5d9716915..4838168ee 100644 --- a/templates/web/fixmystreet/report/new/fill_in_details_text.html +++ b/templates/web/fixmystreet/report/new/fill_in_details_text.html @@ -10,4 +10,4 @@ photo of the problem if you have one), etc.'); ELSE; loc('Please fill in details of the problem below.'); END; -%] +%] \ No newline at end of file diff --git a/templates/web/fixmystreet/report/new/notes.html b/templates/web/fixmystreet/report/new/notes.html index be605ddaa..36b6bfbbd 100644 --- a/templates/web/fixmystreet/report/new/notes.html +++ b/templates/web/fixmystreet/report/new/notes.html @@ -1,11 +1,9 @@ -

    [% loc("Please note:") %]

    +

    [% loc("Please note:") %]

      -
    • [% loc("We will only use your personal information in accordance with our privacy policy.") %]
    • [% loc("Please be polite, concise and to the point.") %]
    • [% loc("Please do not be abusive — abusing your council devalues the service for all users.") %]
    • [% loc("Writing your message entirely in block capitals makes it hard to read, as does a lack of punctuation.") %]
    • [% loc("Remember that FixMyStreet is primarily for reporting physical problems that can be fixed. If your problem is not appropriate for submission via this site remember that you can contact your council directly using their own website.") %]
    • - -
    + \ No newline at end of file diff --git a/web/cobrands/fixmystreet/base.scss b/web/cobrands/fixmystreet/base.scss index e11122757..0b59b7cdb 100644 --- a/web/cobrands/fixmystreet/base.scss +++ b/web/cobrands/fixmystreet/base.scss @@ -240,7 +240,10 @@ fieldset{ margin: 1em; } -input[type=text], textarea{ +input[type=text], +input[type=password], +input[type=email], +textarea{ width: 100%; padding: 0.5em; margin: 0 0 0 -0.5em; @@ -257,7 +260,9 @@ textarea{ font-family: 'helvetica', 'arial',sans-serif; } -input[type=text]{ +input[type=text], +input[type=password], +input[type=email] { border: 0.125em solid #888888; @include border-radius(0.25em); display: block; diff --git a/web/cobrands/fixmystreet/layout.scss b/web/cobrands/fixmystreet/layout.scss index b289847cd..bcb4fa84a 100644 --- a/web/cobrands/fixmystreet/layout.scss +++ b/web/cobrands/fixmystreet/layout.scss @@ -194,6 +194,8 @@ /*FORMS*/ input[type=text], +input[type=password], +input[type=email], textarea{ width: 25em; } @@ -207,6 +209,8 @@ textarea{ } /*FORMS*/ input[type=text], + input[type=password], + input[type=email], textarea{ width: 95%; } -- cgit v1.2.3 From 6a1c21c7a782ffacac1c60c6035516199b4d26cb Mon Sep 17 00:00:00 2001 From: Josh Angell Date: Mon, 13 Feb 2012 15:46:41 +0000 Subject: fix js hide/show issue on around/display_location Signed-off-by: Josh Angell --- .../web/fixmystreet/around/display_location.html | 57 +++++++++++----------- 1 file changed, 29 insertions(+), 28 deletions(-) diff --git a/templates/web/fixmystreet/around/display_location.html b/templates/web/fixmystreet/around/display_location.html index 3c17a2ec7..8caeb76ae 100755 --- a/templates/web/fixmystreet/around/display_location.html +++ b/templates/web/fixmystreet/around/display_location.html @@ -67,40 +67,41 @@ +
    +

    [% loc( 'Click on the map to report a problem.' ) %]

    -

    [% loc( 'Click on the map to report a problem.' ) %]

    - -

    - [% - tprintf( - loc("Can't see the map? Skip this step."), - url_skip - ) - %] -

    +

    + [% + tprintf( + loc("Can't see the map? Skip this step."), + url_skip + ) + %] +

    - + -
    -

    [% loc('Problems on the map') %]

    - -
      - [% INCLUDE "around/on_map_list_items.html" %] -
    +
    +

    [% loc('Problems on the map') %]

    + +
      + [% INCLUDE "around/on_map_list_items.html" %] +
    -

    [% loc( 'Problems nearby' ) %]

    - -
      - [% INCLUDE "around/around_map_list_items.html" %] -
    -
    +

    [% loc( 'Problems nearby' ) %]

    + +
      + [% INCLUDE "around/around_map_list_items.html" %] +
    +
    +
    diff --git a/templates/web/fixmystreet/index.html b/templates/web/fixmystreet/index.html index 4b7f8da52..2022ae716 100644 --- a/templates/web/fixmystreet/index.html +++ b/templates/web/fixmystreet/index.html @@ -4,60 +4,53 @@

    [% error %]

    [% END %] -

    - [% - subhead - = c.cobrand.moniker == 'southampton' - ? '(like graffiti, fly tipping, or broken paving slabs)' - : loc('(like graffiti, fly tipping, broken paving slabs, or street lighting)'); - %] - - [% loc('Report, view, or discuss local problems') %] - - [% IF subhead != ' ' %] - [% subhead %] - [% END %] -

    -[% TRY %][% INCLUDE 'front/news.html' %][% CATCH file %][% END %] +
    +

    [% loc('Report, view, or discuss local problems') %]

    -[% - question - = c.cobrand.enter_postcode_text() - || loc("Enter a nearby GB postcode, or street name and area"); -%] +

    [% loc('(like graffiti, fly tipping, broken paving slabs, or street lighting)') %]

    -
    - - - - -
    + [% + question + = c.cobrand.enter_postcode_text() + || loc("Enter a nearby GB postcode, or street name and area"); + %] -
    +
    + +
    + + +
    +
    +
    + +

    [% loc('How to report a problem') %]

    -
      +
      1. [% question %]
      2. [% loc('Locate the problem on a map of the area') %]
      3. [% loc('Enter details of the problem') %]
      4. [% loc('We send it to the council on your behalf') %]
      +
      [% INCLUDE "front/stats.html" %] [% TRY %][% INCLUDE "front/tips.html" %][% CATCH file %][% END %] - +
    + + [% recent_photos = c.cobrand.recent_photos(3); probs = c.cobrand.recent(); %] - [% IF probs.size || recent_photos.size %] -
    +

    [% loc('Recently reported problems') %]

    [% IF recent_photos.size %]

    @@ -69,18 +62,48 @@ [% END %] [% IF probs.size %] - - -

    [% END %] -[% INCLUDE 'footer.html' %] + +
    +

    Mobile apps

    + + + +
    + +
    +

    [% loc('Are you a developer? Would you like to contribute to FixMyStreet?') %]

    +

    [% loc('Our code is open source and available on GitHub.') %]

    + +

    [% loc('Are you from a council? Would you like better integration with FixMyStreet?') %]

    +

    [% loc('Find out about FixMyStreet for councils') %].

    +
    + + + + + + +[% INCLUDE 'footer.html' %] \ No newline at end of file diff --git a/web/cobrands/fixmystreet/base.scss b/web/cobrands/fixmystreet/base.scss index a87d9e7e9..404a9b73a 100644 --- a/web/cobrands/fixmystreet/base.scss +++ b/web/cobrands/fixmystreet/base.scss @@ -147,6 +147,32 @@ ol li { list-style:decimal; } +ol.big-numbers { + padding: 0; + margin: 0; + counter-reset: li; + > li { + position: relative; + list-style: none; + padding:0 0 0 2.5em; + margin-bottom:2em; + &:before { + content: counter(li); + counter-increment: li; + position: absolute; + left: 0; + top:-0.2em; + color:#eeeeee; + line-height:1; + font: { + family: 'helvetica', 'arial', sans-serif; + weight:bold; + size:2.5em; + } + } + } +} + dl { margin: 0; padding: 0; @@ -724,4 +750,125 @@ a:hover.rap-notes-trigger { // this is a bit of a hack to get some differentation between desk and mobile .desk-only { display:none !important; +} + + + +/* Front page */ +#front-main { + text-align:center; + h1 { + + } + h2 { + font: { + style:italic; + family: 'helvetica', 'arial', sans-serif; + size:1.1875em; + } + color:#4d4d4d; + } + #postcodeForm { + @extend .full-width; + padding:1em; + background:$primary; + font-family: 'helvetica', 'arial', sans-serif; + label { + margin:0; + } + div { + display:table; + width:100%; + background:#fff; + border:1px solid #F3B11E; + input#pc { + display:table-cell; + margin:0; + padding:0.25em 2%; + width:82%; + border:none; + background:none; + } + input#submit { + display:table-cell; + border:none; + padding:0; + margin:0; + width:14%; + height:35px; + background:#000; + color:#fff; + text-transform:uppercase; + @include border-radius(0); + } + } + } + a#geolocate_link { + @include inline-block; + vertical-align:top; + background:#1a1a1a; + color:#C8C8C8; + padding:0.5em; + font: { + family: 'helvetica', 'arial', sans-serif; + size:0.8125em; + } + @include border-radius(0 0 0.25em 0.25em); + &:hover { + text-decoration:none; + background:#2a2a2a; + } + } +} + + +#front-howto { + #front_stats { + display:table; + width:100%; + background:$primary; + font-family: 'helvetica', 'arial', sans-serif; + div { + display:table-cell; + text-align:center; + padding:1em; + line-height:1.25em; + font: { + size:0.8125em; + weight:bold; + } + big { + display:block; + margin-bottom:0.5em; + font-size:1.5385em; + } + } + } +} + +#front-recently {} + +#front-mobileapps { + @extend .full-width; + background:#333; + padding:1em; + @include box-shadow(inset rgba(0, 0, 0, 0.9) 0 0 8px); + h2 { + color:#fff; + margin-top:0; + } + ul { + @include list-reset-soft; + li { + border-bottom:1px solid #AFAFAF; + &:last-child { + border-bottom:none; + } + a { + display:block; + color:#fff; + padding:0.5em 0; + } + } + } } \ No newline at end of file diff --git a/web/cobrands/fixmystreet/images/sprite.png b/web/cobrands/fixmystreet/images/sprite.png index bd350d0e9..a72d754f8 100644 Binary files a/web/cobrands/fixmystreet/images/sprite.png and b/web/cobrands/fixmystreet/images/sprite.png differ diff --git a/web/js/fixmystreet.js b/web/js/fixmystreet.js index 9cb48bb9d..19f1f0402 100644 --- a/web/js/fixmystreet.js +++ b/web/js/fixmystreet.js @@ -206,25 +206,25 @@ $(function(){ // Geolocation if (geo_position_js.init()) { - $('#postcodeForm').append('

    Or locate me automatically').css({ "padding-bottom": "0.5em" }); + $('#postcodeForm').after('… or locate me automatically'); $('#geolocate_link').click(function(e) { e.preventDefault(); // Spinny thing! - $('#geolocate_para').append(' '); + $(this).append(' '); geo_position_js.getCurrentPosition(function(pos) { - $('#geolocate_para img').remove(); + $('img', this).remove(); var latitude = pos.coords.latitude; var longitude = pos.coords.longitude; location.href = '/around?latitude=' + latitude + ';longitude=' + longitude; }, function(err) { - $('#geolocate_para img').remove(); + $('img', this).remove(); if (err.code == 1) { // User said no } else if (err.code == 2) { // No position - $('#geolocate_para').html("Could not look up location"); + $(this).html("Could not look up location"); } else if (err.code == 3) { // Too long - $('#geolocate_para').html("No result returned"); + $('this').html("No result returned"); } else { // Unknown - $('#geolocate_para').html("Unknown error"); + $('this').html("Unknown error"); } }, { timeout: 10000 -- cgit v1.2.3 From 311303488be699f52f3fc99ef6cad61b28344441 Mon Sep 17 00:00:00 2001 From: Josh Angell Date: Thu, 16 Feb 2012 09:28:44 +0000 Subject: Final tweaks to mobile homepage Signed-off-by: Josh Angell --- templates/web/fixmystreet/index.html | 17 +++++++++++------ web/cobrands/fixmystreet/base.scss | 25 ++++++++++++++++++++++++- 2 files changed, 35 insertions(+), 7 deletions(-) diff --git a/templates/web/fixmystreet/index.html b/templates/web/fixmystreet/index.html index 2022ae716..b571d27b8 100644 --- a/templates/web/fixmystreet/index.html +++ b/templates/web/fixmystreet/index.html @@ -93,12 +93,17 @@

    -
    -

    [% loc('Are you a developer? Would you like to contribute to FixMyStreet?') %]

    -

    [% loc('Our code is open source and available on GitHub.') %]

    - -

    [% loc('Are you from a council? Would you like better integration with FixMyStreet?') %]

    -

    [% loc('Find out about FixMyStreet for councils') %].

    +
    +
      +
    • +

      [% loc('Are you a developer?') %]

      +

      [% loc('Would you like to contribute to FixMyStreet? Our code is open source and available on GitHub.') %]

      +
    • +
    • +

      [% loc('Are you from a council?') %]

      +

      [% loc('Would you like better integration with FixMyStreet? Find out about FixMyStreet for councils.') %]

      +
    • +
    diff --git a/web/cobrands/fixmystreet/base.scss b/web/cobrands/fixmystreet/base.scss index 404a9b73a..816f80363 100644 --- a/web/cobrands/fixmystreet/base.scss +++ b/web/cobrands/fixmystreet/base.scss @@ -846,7 +846,12 @@ a:hover.rap-notes-trigger { } } -#front-recently {} +#front-recently { + .issue-list-a { + border-bottom:none; + margin-bottom:0; + } +} #front-mobileapps { @extend .full-width; @@ -871,4 +876,22 @@ a:hover.rap-notes-trigger { } } } +} + +#front-ads { + ul { + @include list-reset-soft; + li { + border-bottom:1px solid #AFAFAF; + &:last-child { + border-bottom:none; + } + h4 { + margin:0.75em 0 0.25em 0; + } + p { + font-size:0.75em; + } + } + } } \ No newline at end of file -- cgit v1.2.3 From 8a28c1759a7080cf8785c6b0c06f8e6257658c5c Mon Sep 17 00:00:00 2001 From: Josh Angell Date: Thu, 16 Feb 2012 09:50:09 +0000 Subject: Get rid of grid guide image Signed-off-by: Josh Angell --- web/cobrands/fixmystreet/images/grid.png | Bin 476 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 web/cobrands/fixmystreet/images/grid.png diff --git a/web/cobrands/fixmystreet/images/grid.png b/web/cobrands/fixmystreet/images/grid.png deleted file mode 100644 index b57c4fe50..000000000 Binary files a/web/cobrands/fixmystreet/images/grid.png and /dev/null differ -- cgit v1.2.3 From f85c18ff212b9db614dba2ce0f6b4afdd9792d31 Mon Sep 17 00:00:00 2001 From: Josh Angell Date: Thu, 16 Feb 2012 10:38:17 +0000 Subject: Frontpage general and top bits done, added in a bodyclass and mainclass variable to the header.html template Signed-off-by: Josh Angell --- templates/web/fixmystreet/header.html | 4 +- templates/web/fixmystreet/index.html | 38 +++++++------ web/cobrands/fixmystreet/base.scss | 5 +- web/cobrands/fixmystreet/images/sprite.png | Bin 67024 -> 122438 bytes web/cobrands/fixmystreet/layout.scss | 88 +++++++++++++++++++++++++++++ 5 files changed, 111 insertions(+), 24 deletions(-) diff --git a/templates/web/fixmystreet/header.html b/templates/web/fixmystreet/header.html index b6404b91c..e5a7ee7c2 100644 --- a/templates/web/fixmystreet/header.html +++ b/templates/web/fixmystreet/header.html @@ -27,7 +27,7 @@ [% INCLUDE 'tracking_code.html' %] - +
    @@ -39,7 +39,7 @@
    -
    +
      [% IF c.user_exists %] diff --git a/templates/web/fixmystreet/index.html b/templates/web/fixmystreet/index.html index b571d27b8..41067b26b 100644 --- a/templates/web/fixmystreet/index.html +++ b/templates/web/fixmystreet/index.html @@ -1,4 +1,4 @@ -[% INCLUDE 'header.html', title => '' %] +[% INCLUDE 'header.html', title => '' , mainclass => 'fullwidthpage', bodyclass => 'frontpage' %] [% IF error %]

      [% error %]

      @@ -6,23 +6,25 @@
      -

      [% loc('Report, view, or discuss local problems') %]

      - -

      [% loc('(like graffiti, fly tipping, broken paving slabs, or street lighting)') %]

      - - [% - question - = c.cobrand.enter_postcode_text() - || loc("Enter a nearby GB postcode, or street name and area"); - %] - -
      - -
      - - -
      -
      +
      +

      [% loc('Report, view, or discuss local problems') %]

      + +

      [% loc('(like graffiti, fly tipping, broken paving slabs, or street lighting)') %]

      + + [% + question + = c.cobrand.enter_postcode_text() + || loc("Enter a nearby GB postcode, or street name and area"); + %] + +
      + +
      + + +
      +
      +
      diff --git a/web/cobrands/fixmystreet/base.scss b/web/cobrands/fixmystreet/base.scss index 816f80363..32b52e30e 100644 --- a/web/cobrands/fixmystreet/base.scss +++ b/web/cobrands/fixmystreet/base.scss @@ -80,7 +80,7 @@ body { margin:0; font-size:1em; line-height:1.5; - color:#222222; + color:#222; } @@ -757,9 +757,6 @@ a:hover.rap-notes-trigger { /* Front page */ #front-main { text-align:center; - h1 { - - } h2 { font: { style:italic; diff --git a/web/cobrands/fixmystreet/images/sprite.png b/web/cobrands/fixmystreet/images/sprite.png index a72d754f8..3c2ce9ee8 100644 Binary files a/web/cobrands/fixmystreet/images/sprite.png and b/web/cobrands/fixmystreet/images/sprite.png differ diff --git a/web/cobrands/fixmystreet/layout.scss b/web/cobrands/fixmystreet/layout.scss index 88ba90768..e013130f5 100644 --- a/web/cobrands/fixmystreet/layout.scss +++ b/web/cobrands/fixmystreet/layout.scss @@ -139,6 +139,9 @@ body { margin-bottom: -1em; @include box-shadow(0px 0px 6px 1px #000); } +.fullwidthpage { + width: 57em; +} #map_box{ position: absolute; @@ -225,6 +228,11 @@ body { width: 29em; } +.fullwidthpage { + .full-width { + width:58em; + } +} /*FORMS*/ input[type=text], @@ -258,6 +266,86 @@ textarea{ } +/* Frontpage */ +body.frontpage { + background:#1a1a1a; + .wrapper { + >.container { + position:static; + } + .content { + padding-top:15em; + } + } + .nav-wrapper-2{ + background: #1a1a1a; + height:6em; + } + #header{ + #site-logo{ + margin-top:2em; + width: 300px; + height: 60px; + background-position:-2px -108px; + } + } + #user-meta { + display:none; + } +} + +#front-main { + background:$primary; + position:absolute; + width:100%; + left:0; + top:8em; + #front-main-container { + width: 57em; + margin:0 auto; + } + h2 { + font-style:normal; + margin:0; + color:#222; + } + #postcodeForm { + float:right; + overflow:hidden; + width:47em; + margin-right:0.5em; + label { + float:left; + margin-top:0.25em; + } + div { + float:right; + width:20em; + input#pc { + padding:0.25em 0.5em; + width:16em; + } + input#submit { + width:3em; + } + } + } + a#geolocate_link { + background:none; + color:#222; + float:right; + margin:-1em 7.5em 0.5em 0; + &:hover { + text-decoration:underline; + background:none; + } + } +} + + + + + /* MEDIA QUERIES */ @media only screen and (min-width: 640px) and (max-width: 960px) { -- cgit v1.2.3 From 0be44ef5ee0c8f6d8beda671a391dfdf080d8484 Mon Sep 17 00:00:00 2001 From: Josh Angell Date: Thu, 16 Feb 2012 12:02:34 +0000 Subject: Desktop frontage pretty much finished tablet and small in-between sized screens to follow Signed-off-by: Josh Angell --- templates/web/fixmystreet/index.html | 144 ++++++++++++++--------------- web/cobrands/fixmystreet/images/sprite.png | Bin 122438 -> 135470 bytes web/cobrands/fixmystreet/layout.scss | 101 +++++++++++++++++++- 3 files changed, 172 insertions(+), 73 deletions(-) diff --git a/templates/web/fixmystreet/index.html b/templates/web/fixmystreet/index.html index 41067b26b..a63324d60 100644 --- a/templates/web/fixmystreet/index.html +++ b/templates/web/fixmystreet/index.html @@ -27,89 +27,89 @@
    +
    +
    +

    [% loc('How to report a problem') %]

    + +
      +
    1. [% question %]
    2. +
    3. [% loc('Locate the problem on a map of the area') %]
    4. +
    5. [% loc('Enter details of the problem') %]
    6. +
    7. [% loc('We send it to the council on your behalf') %]
    8. +
    + +
    + [% INCLUDE "front/stats.html" %] + [% TRY %][% INCLUDE "front/tips.html" %][% CATCH file %][% END %] +
    +
    -
    -

    [% loc('How to report a problem') %]

    - -
      -
    1. [% question %]
    2. -
    3. [% loc('Locate the problem on a map of the area') %]
    4. -
    5. [% loc('Enter details of the problem') %]
    6. -
    7. [% loc('We send it to the council on your behalf') %]
    8. -
    - -
    - [% INCLUDE "front/stats.html" %] - [% TRY %][% INCLUDE "front/tips.html" %][% CATCH file %][% END %] -
    -
    - - - -[% - recent_photos = c.cobrand.recent_photos(3); - probs = c.cobrand.recent(); -%] -[% IF probs.size || recent_photos.size %] -
    -

    [% loc('Recently reported problems') %]

    - [% IF recent_photos.size %] -

    - [% FOREACH p IN recent_photos %] - [% p.title | html %] + [% + recent_photos = c.cobrand.recent_photos(3); + probs = c.cobrand.recent(); + %] + + [% IF probs.size || recent_photos.size %] +

    +

    [% loc('Recently reported problems') %]

    + + + + [% IF probs.size %] +
    + +
    [% END %] -

    - [% END %] - - [% IF probs.size %] -
    - -
    +
    [% END %]
    -[% END %] - -
    -

    Mobile apps

    +
    +
    +

    Mobile apps

    - - -
    + +
    -
    -
      -
    • -

      [% loc('Are you a developer?') %]

      -

      [% loc('Would you like to contribute to FixMyStreet? Our code is open source and available on GitHub.') %]

      -
    • -
    • -

      [% loc('Are you from a council?') %]

      -

      [% loc('Would you like better integration with FixMyStreet? Find out about FixMyStreet for councils.') %]

      -
    • -
    +
    +
      +
    • +

      [% loc('Are you a developer?') %]

      +

      [% loc('Would you like to contribute to FixMyStreet? Our code is open source and available on GitHub.') %]

      +
    • +
    • +

      [% loc('Are you from a council?') %]

      +

      [% loc('Would you like better integration with FixMyStreet? Find out about FixMyStreet for councils.') %]

      +
    • +
    +
    - diff --git a/web/cobrands/fixmystreet/images/sprite.png b/web/cobrands/fixmystreet/images/sprite.png index 3c2ce9ee8..04044d1e9 100644 Binary files a/web/cobrands/fixmystreet/images/sprite.png and b/web/cobrands/fixmystreet/images/sprite.png differ diff --git a/web/cobrands/fixmystreet/layout.scss b/web/cobrands/fixmystreet/layout.scss index e013130f5..f53141135 100644 --- a/web/cobrands/fixmystreet/layout.scss +++ b/web/cobrands/fixmystreet/layout.scss @@ -274,7 +274,7 @@ body.frontpage { position:static; } .content { - padding-top:15em; + padding-top:12em; } } .nav-wrapper-2{ @@ -342,6 +342,105 @@ body.frontpage { } } +.front-tablewrapper { + display:table; + width:100%; + padding:1em 0; + >div { + display:table-cell; + width:50%; + } + #front-howto, + #front-mobileapps { + border-right:1em solid #fff; + } + #front-recently, + #front-ads { + border-left:1em solid #fff; + } + .full-width { + width:auto; + margin:0; + } +} +.bordered { + margin:0 -1em; + padding:0 1em; + width:auto; + border-top:0.25em solid $primary; +} + +#front-howto { + #front_stats { + background:none; + border-top:0.25em solid $primary; + padding-top:1em; + div { + big { + color:$primary; + font-size:3.2308em; + } + } + } +} + +#front-mobileapps { + background:none; + padding:0; + @include box-shadow(inset rgba(0, 0, 0, 0) 0 0 0); + h2 { + color:#222; + margin-top:0; + } + ul { + li { + border-bottom:none; + float:left; + margin:0 1em 1em 0; + a { + color:#222; + padding:0; + width: 96px; + height: 32px; + margin:0 auto; + text-indent: -999999px; + background: url(images/sprite.png) -12px -3610px no-repeat; + @include opacity(0.8); + &:hover { + @include opacity(1); + } + &.m-app-iphone { + background-position: -12px -3610px; + } + &.m-app-iphone-streetreport { + background-position: -12px -3678px; + height:50px; + } + &.m-app-droid { + background-position: -12px -3756px; + } + &.m-app-nokia { + background-position: -12px -3820px; + width:74px; + } + } + } + } +} + +#front-ads { + ul { + display:table; + li { + display:table-cell; + border-bottom:none; + &:last-child { + border-left:1.25em solid #fff; + } + } + } +} + -- cgit v1.2.3 From 1107f1e2b90acd017c44c499f975797e85e43b9e Mon Sep 17 00:00:00 2001 From: Josh Angell Date: Thu, 16 Feb 2012 14:05:25 +0000 Subject: animate the skip to nave ;) Signed-off-by: Josh Angell --- web/js/fixmystreet.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/web/js/fixmystreet.js b/web/js/fixmystreet.js index 19f1f0402..7967e3d7d 100644 --- a/web/js/fixmystreet.js +++ b/web/js/fixmystreet.js @@ -282,4 +282,13 @@ $(function(){ e.preventDefault(); tabs($(this)); }); + + /* + * Skip to nav on mobile + */ + $('.mobile').on('click', '#nav-link', function(e){ + e.preventDefault(); + var foo = $('.wrapper').height() - $('main-nav').height(); + $('html, body').animate({scrollTop:foo}, 1000); + }); }); \ No newline at end of file -- cgit v1.2.3 From 03c3c5c4bbc9b1e906db09882b1a9d685ad59455 Mon Sep 17 00:00:00 2001 From: Josh Angell Date: Thu, 16 Feb 2012 14:06:00 +0000 Subject: Fix user meta, now at bottom on mobile, top on desk etc Signed-off-by: Josh Angell --- templates/web/fixmystreet/header.html | 21 ++++++++-------- templates/web/fixmystreet/index.html | 3 +++ web/cobrands/fixmystreet/base.scss | 22 ++++++++++------ web/cobrands/fixmystreet/layout.scss | 47 +++++++++++++++++------------------ 4 files changed, 51 insertions(+), 42 deletions(-) diff --git a/templates/web/fixmystreet/header.html b/templates/web/fixmystreet/header.html index e5a7ee7c2..8ee70bd36 100644 --- a/templates/web/fixmystreet/header.html +++ b/templates/web/fixmystreet/header.html @@ -38,17 +38,18 @@
    +
    +

    + [% IF c.user_exists %] + [% tprintf(loc('Hi %s'), c.user.name || c.user.email) %] | + [% loc('sign out') %] + [% ELSE %] + [% loc('Sign in') %] + [% END %] +

    +
    +
    -
    - -
    diff --git a/templates/web/fixmystreet/index.html b/templates/web/fixmystreet/index.html index a63324d60..1099b6182 100644 --- a/templates/web/fixmystreet/index.html +++ b/templates/web/fixmystreet/index.html @@ -73,6 +73,9 @@

    [% p.title | html %]

    [% prettify_epoch( p.confirmed_local.epoch, 1 ) %]
    +
    + +
    [% END %] diff --git a/web/cobrands/fixmystreet/base.scss b/web/cobrands/fixmystreet/base.scss index 32b52e30e..02cfb4638 100644 --- a/web/cobrands/fixmystreet/base.scss +++ b/web/cobrands/fixmystreet/base.scss @@ -443,6 +443,20 @@ label{ } } +// this is the user's logged in details or the login link etc +.wrapper { + display:table; + caption-side:bottom; +} +#user-meta { + display:table-caption; + p { + background:$primary; + padding:1em; + } +} + + // #key-tools is the list that's pulled out an stick to the bottom of the page of desktop, below is mostly just aesthetic .shadow-wrap { @@ -670,14 +684,6 @@ a:hover.button-left { } -// this is the user's logged in details or the login link etc -#user-meta { - ul { - @include list-reset-soft; - } -} - - // only on mobile, this is a sidebar on desk (#report-a-poblem-sidebar) a.rap-notes-trigger, a:hover.rap-notes-trigger { diff --git a/web/cobrands/fixmystreet/layout.scss b/web/cobrands/fixmystreet/layout.scss index f53141135..068f6a378 100644 --- a/web/cobrands/fixmystreet/layout.scss +++ b/web/cobrands/fixmystreet/layout.scss @@ -153,20 +153,18 @@ body { } #user-meta{ - position: absolute; - top: -2em; - background:#fff; - height:3em; - z-index: -1; - @include box-shadow(rgba(0, 0, 0, 0.6) 0px 0px 4px 1px); - ul { - display:block; + display:block; + position: relative; + max-width: 57em; + margin:0 auto; + p { + @include inline-block; + position:absolute; + top:1em; height:2em; - padding:0 0.5em; - li { - float:left; - padding:0.25em 0.25em; - } + background:#fff; + padding:0.25em 0.5em; + @include box-shadow(rgba(0, 0, 0, 0.6) 0px 0px 4px 1px); } } @@ -271,10 +269,11 @@ body.frontpage { background:#1a1a1a; .wrapper { >.container { - position:static; + width:100%; } .content { - padding-top:12em; + padding-top:13em; + margin:0 auto; } } .nav-wrapper-2{ @@ -282,6 +281,7 @@ body.frontpage { height:6em; } #header{ + height:10em; #site-logo{ margin-top:2em; width: 300px; @@ -290,7 +290,10 @@ body.frontpage { } } #user-meta { - display:none; + top:-3em; + p { + right:0; + } } } @@ -299,7 +302,7 @@ body.frontpage { position:absolute; width:100%; left:0; - top:8em; + top:1em; #front-main-container { width: 57em; margin:0 auto; @@ -310,16 +313,13 @@ body.frontpage { color:#222; } #postcodeForm { - float:right; overflow:hidden; - width:47em; margin-right:0.5em; label { - float:left; - margin-top:0.25em; + margin:0.5em 0; } div { - float:right; + margin:0 auto; width:20em; input#pc { padding:0.25em 0.5em; @@ -333,8 +333,7 @@ body.frontpage { a#geolocate_link { background:none; color:#222; - float:right; - margin:-1em 7.5em 0.5em 0; + margin:-1em 0 0.5em 0; &:hover { text-decoration:underline; background:none; -- cgit v1.2.3 From 7762384c342a3927c7d7497c9ce7c22dafdfc696 Mon Sep 17 00:00:00 2001 From: Josh Angell Date: Thu, 16 Feb 2012 17:19:16 +0000 Subject: Bunch of layout-related bug fixes Signed-off-by: Josh Angell --- templates/web/fixmystreet/header.html | 1 + .../report/new/fill_in_details_form.html | 7 ++- web/cobrands/fixmystreet/base.scss | 5 +- web/cobrands/fixmystreet/layout.scss | 63 +++++++++++++++++----- web/js/fixmystreet.js | 4 +- 5 files changed, 64 insertions(+), 16 deletions(-) diff --git a/templates/web/fixmystreet/header.html b/templates/web/fixmystreet/header.html index 8ee70bd36..e1066c7b5 100644 --- a/templates/web/fixmystreet/header.html +++ b/templates/web/fixmystreet/header.html @@ -5,6 +5,7 @@ + diff --git a/templates/web/fixmystreet/report/new/fill_in_details_form.html b/templates/web/fixmystreet/report/new/fill_in_details_form.html index a48e26893..5178ccb9e 100644 --- a/templates/web/fixmystreet/report/new/fill_in_details_form.html +++ b/templates/web/fixmystreet/report/new/fill_in_details_form.html @@ -1,8 +1,13 @@

    [% loc('Reporting a problem') %]

    + +

    [% loc('This report will be sent to Name of the Council.') %]

    +
    - + diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js index 269540dad..e54d2fe93 100644 --- a/web/cobrands/fixmystreet/fixmystreet.js +++ b/web/cobrands/fixmystreet/fixmystreet.js @@ -543,12 +543,6 @@ $.fn.drawer = function(id, ajax) { } } - /* - * Placeholder polyfill from https://github.com/mathiasbynens/jquery-placeholder/ - * - * It needs to be at the end or it won't behave as expected - */ - $('input, textarea').placeholder(); }); /* -- cgit v1.2.3 From c9681f6bbc04659b9d6ed5eaa46b8c2edd704f9e Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Wed, 14 Mar 2012 12:36:03 +0000 Subject: Move most mobile-related JS into resize() so that site keeps working on browser resize. --- web/cobrands/fixmystreet/fixmystreet.js | 95 +++++++++++++++++++++------------ web/js/map-OpenLayers.js | 4 ++ 2 files changed, 65 insertions(+), 34 deletions(-) diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js index e54d2fe93..c2801c880 100644 --- a/web/cobrands/fixmystreet/fixmystreet.js +++ b/web/cobrands/fixmystreet/fixmystreet.js @@ -86,45 +86,72 @@ $(function(){ // Preload the new report pin document.createElement('img').src = '/i/pin-green.png'; - //add mobile class if small screen - if (Modernizr.mq('only screen and (max-width:47.9375em)')) { - $html.addClass('mobile'); - $('#map_box').css({ height: '10em' }); - if (typeof fixmystreet !== 'undefined' && fixmystreet.page == 'around') { - // Immediately go full screen map if on around page - $('#site-header').hide(); + var last_type; + $(window).resize(function(){ + var type = $('#site-header').css('borderTopWidth'); + if (type == '4px') { type = 'mobile'; } + else if (type == '0px') { type = 'desktop'; } + else { return; } + if (last_type == type) { return; } + if (type == 'mobile') { + $html.addClass('mobile'); + $('#map_box').prependTo('.content').css({ + zIndex: '', position: '', + top: '', left: '', right: '', bottom: '', + width: '', height: '10em', + margin: '' + }); + if (typeof fixmystreet !== 'undefined') { + fixmystreet.state_map = ''; // XXX + } + if (typeof fixmystreet !== 'undefined' && fixmystreet.page == 'around') { + // Immediately go full screen map if on around page + $('#site-header').hide(); + $('#map_box').prependTo('.wrapper').css({ + position: 'absolute', + top: 0, left: 0, right: 0, bottom: 0, + height: 'auto', + margin: 0 + }); + $('#fms_pan_zoom').css({ top: '2.75em !important' }); + $('.big-green-banner') + .addClass('mobile-map-banner') + .appendTo('#map_box') + .text('Place pin on map') + .prepend('home'); + } + } else { + // Make map full screen on non-mobile sizes. + $html.removeClass('mobile'); + var map_pos = 'fixed', map_height = '100%'; + if ($html.hasClass('ie6')) { + map_pos = 'absolute'; + map_height = $(window).height(); + } $('#map_box').prependTo('.wrapper').css({ - position: 'absolute', + zIndex: 0, position: map_pos, top: 0, left: 0, right: 0, bottom: 0, - height: 'auto', + width: '100%', height: map_height, margin: 0 }); - // Bit yucky, but the ID doesn't exist yet. - $("").appendTo(document.documentElement); - $('.big-green-banner') - .addClass('mobile-map-banner') - .removeClass('.big-green-banner') - .appendTo('#map_box') - .text('Place pin on map') - .prepend('home'); - } - } else { - // Make map full screen on non-mobile sizes. - var map_pos = 'fixed', map_height = '100%'; - if ($html.hasClass('ie6')) { - map_pos = 'absolute'; - map_height = $(window).height(); - } - $('#map_box').prependTo('.wrapper').css({ - zIndex: 0, position: map_pos, - top: 0, left: 0, right: 0, bottom: 0, - width: '100%', height: map_height, - margin: 0 - }); - if (typeof fixmystreet !== 'undefined') { - fixmystreet.state_map = 'full'; + if (typeof fixmystreet !== 'undefined') { + fixmystreet.state_map = 'full'; + } + if (typeof fixmystreet !== 'undefined' && fixmystreet.page == 'around') { + // Remove full-screen-ness + $('#site-header').show(); + $('#fms_pan_zoom').css({ top: '4.75em !important' }); + $('.big-green-banner') + .removeClass('mobile-map-banner') + .prependTo('#side') + .text('Click map to report a problem'); + } } - } + last_type = type; + }); + + //add mobile class if small screen + $(window).resize(); $('#pc').focus(); diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js index 6ffcb5c1d..a7b7d6a14 100644 --- a/web/js/map-OpenLayers.js +++ b/web/js/map-OpenLayers.js @@ -210,6 +210,10 @@ $(function(){ displayProjection: new OpenLayers.Projection("EPSG:4326") }); + if ($('html').hasClass('mobile')) { + $('#fms_pan_zoom').css({ top: '2.75em !important' }); + } + fixmystreet.layer_options = OpenLayers.Util.extend({ zoomOffset: fixmystreet.zoomOffset, transitionEffect: 'resize', -- cgit v1.2.3