| Commit message (Collapse) | Author | Age | Lines |
... | |
| |
|
|
|
|
|
|
| |
If a field has a maximum length set in the javascript validation then
add a maxlength attribute so the user doesn't have to wait till
submission to find out about it.
|
|
|
|
|
|
| |
Prevent people from using very long titles.
Fixes mysociety/fixmystreet-commercial#1344
|
|
|
|
|
| |
The tile URL includes a parameter for the client number which we were
not using so configure this based on live or staging.
|
|
|
|
| |
For mysociety/fixmystreet-commercial#1331
|
|
|
|
|
| |
Layers that are always visible mean that we can end up with a count of 1
which means we don't re-display the pin
|
|
|
|
|
|
|
|
| |
The code to stop submission of an emergency category and the code to
stop submission of reports with no assets were conflicting. This makes
the emergency code take precedence over the asset code as there is no
point in telling the user they have not selected an asset and then
telling them to phone the council.
|
| |
|
|\ |
|
| |
| |
| |
| |
| | |
To (hopefully) encourage people to join, and
interact on, the mailing list instead.
|
|\ \
| |/
|/| |
|
| |
| |
| |
| | |
This means GET errors will give better output.
|
|\ \ |
|
| |/ |
|
| | |
|
|/ |
|
| |
|
|
|
|
|
| |
Prevent the user from making a report unless they have clicked on an
asset.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Fixes mysociety/fixmystreet-commercial#1272
|
|
|
|
|
| |
Add a setting for the name of the image file used in the email header so
cobrands can override it
|
| |
|
|\ |
|
| |
| |
| |
| |
| |
| | |
Otherwise, e.g. going straight to /report/new when category groups
enabled may cause always visible layers to disappear because bodies
gets emptied.
|
| |
| |
| |
| | |
This gives us the "set up on load" functionality.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Shared margin rules for `.box-warning` and `.extra-category-questions`
in `_base.scss` and `_layout.scss` (where the margin can potentially
change based on the `$mappage-sidebar-padding` variable).
* Move the Sass rules for `.box-warning` further up `_base.scss` to be
next to `.extra-category-questions` since they’re both so similar.
* No need for `.full-width` on the `.extra-category-questions` div since
we were overriding the margin-top anyway.
* Remove the little triangle between the category select box and the
grey `.extra-category-questions` div, since the category questions
isn’t always presented immediately after the category select box.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
Run immediately, not onready, so the category change listener is in
place; listen to a better event, removing need for a debouncer; don't
look up if empty category.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
When an expanded list item has a single image, it would previously float
to the right of the list item action buttons, which looked messy.
Now, the buttons clear below the floated image, just like the buttons in
the individual report page `.problem-header`.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Make the expandable list item’s expanded state look more like the
regular `.problem-header`, to more strongly imply that you don’t need
to visit the individual report page to read more.
Since expandable list items now *always* contain more information in
their expanded state, there’s no need for the `show_more` flag in the
templates.
Addresses part of the feedback in mysociety/fixmystreet-commercial#1304.
|
|/ |
|
|
|
|
|
|
|
| |
->first, as used in cd8a5702, uses the iterator, so ->next will then
only return the second onward. Instead, do the needed thing in the
first iteration of the loop. Also check the option is set as some
scripts do not set it.
|
| |
|
|\ |
|
| | |
|
| | |
|
| |
| |
| |
| | |
The two functions were conflicting with one another.
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | | |
If the site only has the one category, it was being preselected
but the extra attribute questions were not being shown.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Previously, when update_pin was called, category change events were
fired: 1. if category wasn't blank, 2. if category groups were enabled,
and 3. if category groups were enabled, a group was selected, and a
category was not.
Now we sort out everything inside the category_groups setup function,
only triggering a change event once, at the end.
|
| | |
| | |
| | |
| | |
| | | |
This is most noticeable with category groups, where changing the
parent would leave visible any asset/attribute questions.
|
| |/
| |
| |
| |
| |
| | |
If you had one filter category selected, clicked the map (category
auto pre-selected), changed the category, and clicked the map again,
it would re-select the filter category, not the changed category.
|