| Commit message (Collapse) | Author | Age | Lines |
|\ |
|
| |
| |
| |
| | |
And FixMyStreet.com specific open questionnaire page.
|
| |
| |
| |
| |
| | |
this means we can use this in email templates and get the correct non
html text back even if AREA_LINKS_FROM_PROBLEM is true
|
| |
| |
| |
| | |
so we can include the name of the site non TT templated emails
|
| |
| |
| |
| |
| |
| | |
Otherwise, when MapIt Global is updated, the 'point' lookup, as it only
returns the current generation by default, might no longer return the
areas present in the whitelist.
|
| |
| |
| |
| |
| |
| |
| | |
This reverts commit 87451200e32a57947bb7b9facc4efb4f6644973b.
Reports that were sent when the Barnet integration was in place
still have an external_id which should be displayed.
|
| | |
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | | |
subcategory_line is optional in seesomethingsaysomething, so we need to set
it to something (a blank line is what I've chosen) otherwise email sending
breaks when it tries to template up the email message
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
By default, Text::CSV doesn't allow binary characters such as newline,
carriage return etc., in cells. This causes issues when exporting data
that contains these characters, such as problem reports with more than
one line.
This commit also explicitly tells Text::CSV to append a newline to each
row instead of joining the rows together with this char at the end.
Fixes #494.
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| |/
|/| |
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
In order to try and cut down on people mistakingly using this form to
try and contact their council all some 'who are you trying to contact'
options to the form that display appropriate messaged unless the 'FMS
team option is selected.
Add the validation code for this in the cobrand module.
Fixes #41
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
In order to allow us to do funnel analysis in google analytics we need
to send a differnt page url when a user completes a report. To do this
we add a report_created=1 to the query string on either the report page
or the report confirmation page for logged in and confirm by email users
respectively.
There's a bit of complication as we don't want to set a session cookie
everywhere as that will break caching so we set a stash variable,
although if the user is logged in this is controlled by a variable in
the flash as there is already a session cookie at this point.
also, removes the code that sends an event upon report completion as
this was no use for funnel analysis.
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This makes it a bit easier to override the message in templates which
makes it a bit easier for cobrands.
Leaves the default error message in location_error stash key which
should prevent any existing logic breaking.
|
| | | |
| | | |
| | | |
| | | | |
add files and change config in cobrand
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Include date in alerts
Remove everything apart from the update text as we don't need it
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This is useful for sites where the updates aren't published on the site
so you need a bit more context in the email alerts.
Add inlude_time_in_update_alerts to default cobrand, off as default
If this is set then the date is added after the name string in the
email, passing in 'alert' as the type to dt_prettify in order to allow
the cobrand to format it accordingly.
This does require pulling out the alert confirmed time from the database
in the send_alerts code where it wasn't before.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
uses select2 for the dropdown and a cobrand call to fetch the list of
report titles as the clinic names.
Relies on a redirect in httpd.conf to make the non JS version work.
Still leaves the postcode search in place as select2 won't accept custom
terms if you base it on a select box, which we want to do so it works if
JavaScript is disabled
Fixes #723
|
| | | |
| | | |
| | | |
| | | |
| | | | |
and display a message on the report page to indicate the update has been
sent as it's never displayed
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Add never_confirm_updates setting to cobrand that, when set to 0 means
that comments are confirmed with no confirmation step. Essentially
behaves as it would if the user was logged in.
Also add a flag to the flash that indicates the comment was accepted to
you can display a message on the report page if required
|
| | | | |
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | | |
also, make readonly, disable photos, questionnaires, never
hide old pins
Fixes #701
|
|\ \ \ |
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
At the moment it's hard to use google analytics to track when someone
has completed a report due to the various redirects which can occur too
quickly for the analytics javascript to fire. So now we fire an event if
we've set a flash value. This also allows us to track how they created
the report.
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Run bin/geocode -h for options.
Has:
* configurable cobrand / config-file / geocoder
* some diagnostics for missing cobrand
Minor fixes rebased into this commit:
* bin/geocode error if no --cobrand passed
* bin/geocode docs and accept GEOCODER as string
Notable TODOs remaining:
* reverse geocoding, to double check that latitude actually maps
somewhere useful (and is within Cobrand's boundaries)
* diagnosis of relevant CONFIG settings
* flag to disable caching
|
| |
| |
| |
| | |
Add some comments to the top of the open311 bin scripts.
|
| |
| |
| |
| |
| | |
Otherwise oddities arise due to summer time differences
putting a BST now-6d23h time behind a UTC now+1s-1w.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
New cobrand function of pin_path that sets the path to where the image
files for pins are located. Defaults to /i
This still means they need to use the same file names but they can at
least put those in a cobrand directory rather than having to overwrite
the files in /i or fudge it with pin_colour
|
| |
| |
| |
| |
| | |
This simply always skips reports for this body, in case you need
to suspend reports there. Fixes #507.
|
| | |
|
| |
| |
| |
| |
| | |
This is very old, no-one seems to want/need it any more,
and more than one reuser does not want it. Fixes #715.
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
Include a one-off script that sets send_questionnaire to 0 for
all available cobrands that have send_questionnaires set to 0.
|
| |
| |
| |
| |
| | |
Also add warning to Geocoder to pass on server error if you are running
in development.
|
| |
| |
| |
| | |
Rather than hardcoded mysociety.org.
|
| |
| |
| |
| |
| |
| | |
This tests that the default string used by the old-style Open311 update
code if there is no incoming string and the report is marked fixed, is
translated.
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
Conflicts:
bin/update-schema
locale/sv_SE.UTF-8/LC_MESSAGES/FixMyStreet.po
perllib/FixMyStreet/DB/Result/Body.pm
|
| | |
| | |
| | |
| | | |
So that e.g. 'Closed by council' is translated.
|
| | | |
|
| | |
| | |
| | |
| | | |
This could be made cobrand-customisable in future.
|
| | |
| | |
| | |
| | |
| | |
| | | |
This commit reverses the "Remove unused Open311 GetUpdates code." commit.
FixaMinGata, the Swedish FixMyStreet cobrand, is still using
open311-update-reports.
|
| | | |
|