aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base
Commit message (Collapse)AuthorAgeLines
* Do not use SET with html filter.Matthew Somerville2019-05-03-1/+1
|
* Custom layout for admin user permission checkboxesZarino Zappia2019-05-02-1/+1
|
* Fieldsets/legends for admin checkbox listsZarino Zappia2019-05-01-46/+41
|
* Tidy up "Categories:" checkbox lists on admin pagesZarino Zappia2019-05-01-2/+2
| | | | No need for bullets here, nor margins above/below each label.
* Escape body name in admin title.Matthew Somerville2019-04-24-2/+4
|
* [Northamptonshire] restrict title to 120 charactersStruan Donald2019-04-09-1/+4
| | | | | | Prevent people from using very long titles. Fixes mysociety/fixmystreet-commercial#1344
* Matching vertical margins for new `js-post-category-messages`Zarino Zappia2019-03-28-1/+1
| | | | | | | | | | | | | * 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.
* Move added messages to the same place.Matthew Somerville2019-03-28-3/+8
|
* Show detailed delivery info in expanded list itemsZarino Zappia2019-03-28-10/+8
| | | | | | | | | | | | 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.
* Fix extra question display when only one category.Matthew Somerville2019-03-27-1/+9
| | | | | If the site only has the one category, it was being preselected but the extra attribute questions were not being shown.
* Allow cobrand customisation of privacy URLStruan Donald2019-03-25-8/+8
| | | | | Add a privacy_policy_url function to the cobrand and use that in the templates instead of hard coding /privacy
* Check better if extra question has values.Matthew Somerville2019-03-12-1/+1
| | | | | If an Open311 server returned an empty set of values, it was possible for this template to then display a set of empty dropdown options.
* Fix couple of links broken by admin code refactor.Matthew Somerville2019-03-06-2/+2
|
* Merge branch '2411-checkbox-gap'Matthew Somerville2019-03-05-9/+9
|\
| * Improve inline checkbox spacing.Matthew Somerville2019-03-04-9/+9
| | | | | | | | | | | | | | | | | | | | | | Reduce the space between checkbox and label, so the text isn't lost if the page is zoomed in. Fixes #2411. Replace the creator_fixed question with segmented control to match the full questionnaire, and the admin verified checkboxes with inline-text as they need no padding. Having done that, all uses of .inline are now on their own lines, so no post-padding is needed any longer, but we’ll leave some in case of future use.
* | Merge branch 'report-links-same-domain'Matthew Somerville2019-03-05-6/+6
|\ \
| * | Use relative report links where possible.Matthew Somerville2019-03-05-6/+6
| |/ | | | | | | | | | | | | | | | | | | On some UK council cobrands, some reports listed might not have been sent to that council, so links to those must go to the national site. However, using absolute URLs for all these reports means that sometimes you change domain when you don't need to (eg. if you’re on osm.fixmystreet.com or an aliased version of the site), which can cause confusion. State when we’re happy to use a relative link (ie. web-facing report links, not emails, or share links) and do that when we can.
* / Default to unchecked for default_show_name.Matthew Somerville2019-03-04-3/+2
|/
* Duplicate suggestion UI when reporting problems.Zarino Zappia2019-02-25-5/+57
| | | | | | | | | | | | | | | | | | The previously staff-only fixmystreet.set_up.manage_duplicates() has been promoted from staff.js to its own file so that we can use it to display the duplicate suggestions on the `/report/new` form. render_duplicate_list (the old refresh_duplicate_list) no longer filters or slices the reports_list returned by the ajax call, since it turns out the server handles all of that (`sub _nearby_json` in `Report.pm` and `sub nearby` in `Nearby.pm`). Since the expandable list items include the "fancybox" image previews, the fancybox CSS now has to be included in the `/report/new` page head, hence the addition of "photo-js.html" in `fill_in_details.html`. The “Get updates” flow reuses the same JavaScript that handles the submission of the "Get updates" drawer at the bottom of around pages.
* Remove --reports from .item-list--reports__item classes in Inspector UIZarino Zappia2019-02-25-2/+2
| | | | | There’s no need for this `--reports` to be there, so let’s start phasing it out.
* Expandable list item componentZarino Zappia2019-02-25-34/+88
| | | | | | | | | | `_item_expandable.html` is an alternative to regular list items, where you can display extra information on the first click on the item, and then also, optionally, offer a further action, as a separate button. Right now the expandable list items aren’t used anywhere, but we’ll soon be using them in the duplicate report suggestion UI for council staff and the public.
* Refactor admin body/user functions to own files.Matthew Somerville2019-02-22-29/+29
|
* Merge branch 'logged-in-user-report-alert-signup'Matthew Somerville2019-02-22-3/+5
|\
| * Don't ask for email on alert signup if logged in.Matthew Somerville2019-02-21-3/+5
| | | | | | | | | | | | | | The “Get updates” flow on a report page, if logged in, was showing an input label but no input field (because one is not needed), but then on submission asking for your email address. Add missing name on submit button to fix this.
* | Reword maximum number of images error message.Matthew Somerville2019-02-21-1/+1
|/
* Allow user to be associated with multiple areas.Matthew Somerville2019-02-14-9/+11
| | | | | | Update database to store an array of IDs rather than only one; consequential changes to the admin and the dashboard to allow selection.
* Merge branch '2242-automatic-permalink'Matthew Somerville2019-02-05-3/+3
|\
| * Improve use of OL ArgParser/missing zoom in URL.Matthew Somerville2019-02-04-1/+1
| | | | | | | | | | | | Remove the server-side zoom-in-url fix, instead use an ArgParser subclass to default to the provided data if nothing in URL. Then we can switch to using short lat/lon in geocoder URLs.
| * Update URL whenever map moves, using replaceState.Dave Arter2019-02-04-2/+2
| | | | | | | | | | | | Fixes #2242. Co-authored-by: Matthew Somerville <matthew@mysociety.org>
* | Merge branch 'fix-code-starting-underscore-display'Matthew Somerville2019-02-05-5/+6
|\ \ | |/ |/|
| * Allow Open311 codes starting with ‘_’ to function.Matthew Somerville2019-02-04-5/+6
| | | | | | | | | | | | Template Toolkit treats keys starting with ‘_’ as private and does not expose them. It is possible for an Open311 server to return fields starting with an underscore, and we want to use those in the template.
* | Metadata automated select is not a type select.Matthew Somerville2019-02-01-1/+1
| |
* | No need to pass c to cobrand function.Matthew Somerville2019-02-01-2/+2
|/
* Add CSRF and time to contact form.Matthew Somerville2019-02-01-0/+2
|
* Reduce JavaScript on appcache page.Matthew Somerville2019-01-29-1/+3
|
* Set inline JavaScript variables directly.Matthew Somerville2019-01-29-6/+3
|
* Spot moderation conflicts.Matthew Somerville2019-01-25-8/+10
| | | | | If someone tries to moderate after someone else has, re-show the form and an error.
* Stop redirecting on moderation error.Matthew Somerville2019-01-25-0/+4
| | | | This will also be used by the moderation conflict code.
* Do not show Discard changes button if no JS.Matthew Somerville2019-01-25-2/+2
|
* Include moderation history in report updates.Matthew Somerville2019-01-16-13/+24
| | | | | | If the user has moderating permission, or a cobrand allows the viewing of moderation history, show moderation history within the updates on a report page.
* allow field type to be set on category extras fieldsStruan Donald2019-01-14-1/+1
| | | | | Checks for a fieldtype property and uses that for the input type to allow setting the type of the field for e.g. date fields.
* Only select body by default if user has a body.Matthew Somerville2019-01-10-2/+2
| | | | | Otherwise you can get an error trying to look up the body name on submission.
* Factor out update form wrapper.Matthew Somerville2019-01-09-12/+13
|
* Add wrapper to map filters.Matthew Somerville2019-01-09-0/+4
|
* add private only report filterStruan Donald2019-01-04-0/+3
|
* Show all questionnaire responses lacking updates.Matthew Somerville2018-12-20-1/+8
| | | | | | Since questionnaire responses were recorded on email link click, we should have been showing those that reopened or fixed reports, not just steady-state "Still open" ones.
* Make who question more prominent.Matthew Somerville2018-12-19-2/+5
|
* Improved report/update display on contact form.Matthew Somerville2018-12-18-6/+6
|
* Stop both Unknown/In progress banners appearing.Matthew Somerville2018-12-13-3/+2
| | | | Previously, CSS was absolutely positioning one on top of the other.
* Modernise report "status" bannerZarino Zappia2018-12-13-3/+8
| | | | | | | | | | | | | * Simplify markup required for the status banner. * Simplify styles - the banner is now identical on all screen sizes. * Move the banner from `report/display.html` into `report/_main.html` so that it can appear after `.problem-back` in the source order. * Use real pin icon instead of `pin-flat-white-small.png`. * Set a default `$col_fixed_label` colour in `_base.scss`, so cobrands don’t have to define it themselves if they’re happy with green. * Introduce `$col_fixed_label_light`, with a sensible default for all cobrands, even ones that have a custom `$col_fixed_label`. * Remove `$col_fixed_label_dark` – no longer needed.