| Commit message (Collapse) | Author | Age | Lines |
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
And use the existing ones more.
|
| |
|
|
|
|
|
|
| |
Use the send method recorded at the time of sending, not the current one
(it may have changed since), and only resend if the new send methods are
not a subset of the old.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
Add an unban button to the user edit page when a user is in the abuse
table.
Fixes #1881
|
|
|
|
|
|
|
| |
move setting the body template to before `fetch_contacts` so it doesn't
override setting the text only email address template.
Fixes #1895
|
|
|
|
|
| |
The check that a name was entered was testing the user's
current name, not the name entered in the form.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Create a comment on a problem when the admin is used to change the state
of the problem. If only the state is changed then create a comment with
blank text. If the category and state are changing then include details
of the category change in the comment.
Not all the state changes are displayed at the template level by
default.
Fixes #1846
|
|
|
|
|
| |
We have no way of knowing whether a +1 geographic number is fixed
line or mobile, so accept them all as potentially mobile.
|
|
|
|
|
|
|
|
|
|
|
| |
This resolves two issues when updating the report category in the
staff users inspect form:
* report category is only updated if the rest of the form is valid
* only one update on the report is left
Previously changing the category would create an update in addition to
any public update created, and the category was always updated even when
validation errors occurred elsewhere in the form.
|
|
|
|
|
|
|
| |
This includes search/flagging users, editing user on the report
and update edit pages, and user adding/editing itself.
Add some more tests for user adding/editing.
|
|
|
|
|
| |
These are so we can state whether a user's email address or phone number
have been verified by confirmation email/text.
|
|
|
|
|
|
|
|
|
| |
Admin page to show some simple summary stats for an area.
If the user has been assigned to an area then they will see the stats
for that area. Superusers can pick which area they want to view.
For mysociety/fixmystreetforcouncils#2
|
|
|
|
|
|
| |
Simplify chaining of body/category admin URLs so that all
categories are treated the same, with `/` or without, and
the template will then always have its CSRF token.
|
|
|
|
|
|
|
|
| |
If the first page looked at after server launch was an admin one, the
User object was getting a different schema attached than the one used
by everything else (so e.g. the cobrand was not then available to it,
causing a crash on a body page). Using auto instead of begin prevents
this from happening, as the setup_request auto always runs first.
|
| |
|
|
|
|
|
|
|
| |
- Also provides an editor for the extra Open311 fields on contacts.
- Adds .btn--small class for small buttons
Fixes #1743.
|
| |
|
|
|
|
|
|
|
| |
We can't translate them in the template as we're just passing in the
category name and not the object.
Fixes mysociety/fixmystreetforcouncils#216
|
|
|
|
|
|
| |
Calling the function 'translate' causes gettext-extract to add the
string to the .po file. Also, we no longer need an admin 'updated'
message as the main form has its own success message.
|
| |
|
|
|
|
|
|
| |
As category is used both for display and as a link between Problem and
Contact tables, add `category_display` for use whenever a category is
displayed.
|
|
|
|
|
|
|
| |
If a report’s category is changed to one with a different send_method to the
original category, the report needs to be resent.
Fixes mysociety/fixmystreetforcouncils#209
|
|
|
|
|
| |
A new 'state' column replaces confirmed and deleted, allowing
categories to be unconfirmed, confirmed, deleted or inactive.
|
|
|
|
|
|
| |
Instead of checking if the list of bodies has changed at all, mark the
report for resending if there is a body in the new list not present in
the old.
|
|
|
|
|
|
| |
As the templates were using `grep`, they failed to match on a category
such as "Footpaths (right of way)". Changing the stash variables to be
hashes instead of lists makes checking for a key simpler. Fixes #1688.
|
|
|
|
|
|
|
| |
The report-sending code has allowed multiple emails for a long time, but the
admin wouldn't allow you to enter multiple emails for each contact.
Fixes mysociety/FixMyStreet-Commercial#835
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Solves a minor bug where it was difficult to create a new user and immediately
assign permissions, as the page didn't show the appropriate permissions UI.
|
| |
|
|
|
|
| |
This includes a refactor of the state dropdown field into its own template for easy reuse.
|
|
|
|
|
|
|
|
|
|
|
|
| |
The Zurich::admin_type function was setting $c->stash->{body}, meaning that
when trying to edit a superuser the 'fetch_contacts' function wasn't being
called, causing an "Can't call method "all" on an undefined value" error as
$c->stash->{live_contacts} wasn't ever being set.
Fixed by changing the conditional to simply determine whether fetch_contacts
needs to be called.
Included a regression test that meant a small addition to the MapItZurich mock.
|
|
|
|
|
|
| |
The default cobrand does not have a template directory, so the
directory change to it was not working. Use the root directory
of the repository instead.
|
|\ |
|
| | |
|
|/
|
|
|
| |
- A user can be assigned to any number of its body's categories
- The category ids are stored as a list in the user's extra field
|
|
|
|
|
| |
This is less confusing than redirecting to /auth and then to /my
(as they're logged in). Fixes #1566.
|
|
|
|
| |
Fix title if error in adding user. Fixes #1510.
|
| |
|
| |
|