| Commit message (Collapse) | Author | Age | Lines |
|
|
|
|
|
| |
There might be the odd update alert we are interested in (those not
auto-signed up for as part of report or update creation), but they
will be rare.
|
|\ |
|
| | |
|
|/
|
|
| |
Thanks to @jonkri for spotting.
|
|\
| |
| |
| |
| |
| | |
Conflicts:
templates/web/base/report/new/fill_in_details_form.html
templates/web/base/report/update-form.html
|
| | |
|
| | |
|
|/
|
|
|
| |
Use design of auth/token in generic error, 404, and token server error
pages, and use the same error for too old/ token not found errors.
|
|
|
|
| |
Also adds admin ability to rotate update photos.
|
|
|
|
|
| |
Remove get_photo_params, which only looked at the first photo,
make explicit when we're doing that using `.first`.
|
| |
|
|
|
|
|
| |
92dfeac used an incorrect user column name in the new lookup,
and there was no test to catch the regression.
|
|
|
|
|
|
|
|
|
|
| |
Three file inputs, progressively enhanced with dropzone.
This moves the photo input higher up, so that photos can upload while
you're filling out the form. It standardises and improves photo error
handling.
[fixmystreet.com] Guidance for what photos should and shouldn’t include.
|
|
|
|
|
|
| |
Use a separate attribute for data direct from a database row when
creating a PhotoSet, so that data will always contain one or more
photo IDs.
|
| |
|
|
|
|
|
| |
Template::Plugin::Number::Format works internationally, whilst
Template::Plugin::Comma does not.
|
|
|
|
| |
Maintain old location wrappers.
|
| |
|
|
|
|
| |
Command line scripts don't need a full blown app, just database.
|
|
|
|
|
| |
This puts all static pages under /about, and lets you add new static
pages by placing new HTML in your about template directory.
|
| |
|
| |
|
|
|
|
|
|
|
| |
- submit-external-wish.txt includes a link with report's coordinates, template values are interpolated
Conflicts:
perllib/FixMyStreet/SendReport/Zurich.pm
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
See mysociety/FixMyStreet-Commercial#690
- external_message for Extern/Wunsch states
- as per PDF mockups, the "public response" field is now editable
from more states, namely:
- Ruckmeldung ausstehend
- Extern
- Zustandigkeit unbekannt
- Wunsch
- Nicht kontaktierbar
- Unsichtbar
- test fixes
NB: slight hack to reorder Zurich report_display tests
As these remove 'investigating' from hidden_states, these break
tests for default cobrand (the FMS::App code expects to be called
once on request start, not multiple times within one test)
- Not contactable button
and tests for this and the similar `send_back` functionality
(previously untested).
NB: Unsure why we need to specify form_number=2 just for these submits,
but test won't find the buttons otherwise.
- Make sure SDMs' "time_spent" figure is recorded.
(See mysociety/FixMyStreet-Commercial#718)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Mechanism is general, but current implementation only used
for Zurich.
- Zurich: Record time_spent field mysociety/FixMyStreet-Commercial#676
- template changes (including jQuery spinner)
- backend changes to save data are made:
- in log_edit, if supplied
- and time on category change (and arbitrary actions)
- Add update_admin_log to all paths for DM, ensuring that it gets called,
while resetting the `time_spent` parameter, to make sure that
there is never a duplicate record created.
- Also quell warning about using DateTime values in query.
- Also add (seemingly unrelated) parens to stop misparsing of OK line in
questionnaire test now that DT::Format::Pg is used in Zurich cobrand
See mysociety/FixMyStreet-Commercial#676
|
|
|
|
| |
Required by Zurich for mysociety/FixMyStreet-Commercial#675
|
|
|
|
|
|
|
|
| |
For Zurich, see mysociety/FixMyStreet-Commercial#664.
This commit includes a new PhotoSet class (NB: called Model:: though not
really a model), should handle binary data (e.g. old style photos in
database), fileids (40-char hash), and Catalyst::Upload objects.
|
| |
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
Treat an update left during a questionnaire the same as one left on a
report page, ie. pass it through cleanup_text. This will also make sure
updates left that are wholly whitespace are errored, or replaced with
the default text.
|
|/
|
|
| |
Fixes #1210.
|
|\ |
|
| |
| |
| |
| |
| | |
It’s best if Zurich keeps the old text, so now they have their
own overrides for those template files.
|
|/
|
|
| |
Fixes #1104.
|
|
|
|
| |
SW1A 1AA has moved, who'd have thought.
|
|
|
|
|
|
| |
If a cobrand has a body restriction, then a report without any body
won't be shown on it, so we need to make sure links to the report (in
email alerts and RSS) are to the base URL, not the cobrand.
|
| |
|
|
|
|
|
| |
This override is not used anywhere, it dates from a very old long-gone
test script, and causes issues with database query planning.
|
|\ |
|
| |
| |
| |
| |
| | |
Also move some UK-specific code in the same function.
The specific code is still tested in report_new.t.
|
| | |
|
|/ |
|
|
|
|
|
|
|
|
|
| |
Add a special category email address used to show an unresponsive
message and page when trying to report in that category. Add a "Refused"
send method for setting a whole body to be unresponsive and show the
message immediately, not on category selection.
Factor out category template, and put at top where needed.
|
|
|
|
|
|
|
| |
Restrict email_sign_in token to one day, unused confirmation tokens to
one month. Used tokens will redirect to the created thing but not log
in; don't log in with alert links (unsubscribe link never expires, reply
link will still show "reopen" tickbox).
|
| |
|
| |
|
|
|
|
| |
To allow visible/hidden states to be manipulated at runtime.
|
| |
|
|
|
|
|
|
|
|
|
| |
Historically, the extra field has been used in two different ways by
different cobrands, both as a list (e.g. Open311 category fields) and a
hash (e.g. the Zurich cobrand).
This commit consolidates usage, adding an API to make use of the field
easier and always returning a hash for the code to use. Fixes #1018.
|
|
|
|
|
| |
This is now handled by normal bodies in the admin. In order to remove
references in send_reports, tidy up (unused) EmptyHomes code a bit.
|