aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Roles
Commit message (Collapse)AuthorAgeLines
* [Zurich] Allow publishing of individual photos.Matthew Somerville2018-01-18-0/+34
| | | | | When more than one photo has been uploaded, allow each one to be published/not independently.
* Add ability to confirm reports/updates via text.Matthew Somerville2017-09-30-2/+3
|
* Add Extra->get_extra_field_valueDave Arter2017-08-31-0/+16
| | | | Allows easy display of Open311 field values for problems in templates
* Reduce queries on /report when loading defect types/prioritiesDave Arter2017-08-18-1/+5
|
* Ignore translation if fewer than two languages.Matthew Somerville2017-08-15-0/+4
|
* Add fn to fetch bodies plus the translated names.Matthew Somerville2017-08-15-0/+3
|
* Remember translation lookup for request remainder.Matthew Somerville2017-08-15-2/+14
|
* Prevent unnecessary string translation.Matthew Somerville2017-08-11-1/+1
| | | | | | 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.
* fetch and create translation methods for translatableStruan Donald2017-08-10-0/+45
| | | | | | | | | | | | Add a `translation_for` method and an `add_transation` method to Translatable to help hide the details when editing and listing translations. `translation_for` returns all translations if only passed a column or a single translation if passed with a column and a language. `add_translation` will add, or update, a translation if passed in the column, language and string.
* Set up translatable category columns.Matthew Somerville2017-08-10-0/+13
| | | | | | 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.
* Set up translatable body name.Matthew Somerville2017-08-09-0/+39
|
* Update templates when category/state changed.Matthew Somerville2017-06-30-1/+2
| | | | | | When the category or state changes, the list of available templates updates (previously it was frozen at what the category was on page load, and didn't care about the state).
* Populate defect types dropdown on category changepezholio2017-06-20-0/+43
|
* Improve display of category extra data in admin.Matthew Somerville2016-09-09-20/+8
| | | | Allow get_extra_metadata to return all the data with no argument.
* Move photoset stuff to new Role.Matthew Somerville2016-08-01-0/+35
|
* Move from Moose to Moo in non-App code.Matthew Somerville2015-12-02-6/+3
| | | | And create default cobrand class without all of Moose.
* Add Extra role to ease use of {extra} field.Hakim Cassimally2015-03-20-0/+193
| | | | | | | | | 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.
* use moose role for is_from_abuser methodStruan Donald2011-05-26-0/+29