aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers
AgeCommit message (Collapse)Author
2018-02-20Use page as will_paginate param_name by default. Refs #3542Alban Peignier
2018-02-20Merge pull request #308 from ↵Alban Peignier
af83/5911-stops-filter-on-referential-journeys-index Better stops filters on ReferentialVJs#index. Refs #5911
2018-02-20Refs #5863 @6h; Remove workbench id from the querystringZog
Infer it when possible, and use a nested otherwise
2018-02-19Refs #5911 @2h; Better stops filters on ReferentialVJs#indexZog
2018-02-07update calendar build_links for table buildercedricnjanga
2018-02-07First draft for including calendars into workgroup for having appropriate ↵cedricnjanga
scoping
2018-02-06update calendar build_links for table buildercedricnjanga
2018-02-06First draft for including calendars into workgroup for having appropriate ↵cedricnjanga
scoping
2018-02-06Refs #5683 @2H; Fix specs and refactor action_linksZog
Note: Did not fix the missing workgroup in the calendar mailer
2018-02-06update calendar build_links for table buildercedricnjanga
2018-02-06First draft for including calendars into workgroup for having appropriate ↵cedricnjanga
scoping
2018-02-06Refs #3542; Adds paginationZog
2018-02-06Refs #3542 @4h; First UIZog
Still missing: - Pagination - Filters
2018-02-06Refs #5832 @1h; Show active filtersZog
2018-02-06Refs #5758 @1h; Add localized names to StopAreasZog
2018-02-06Refs #5682 @3h; Use same UI as for timetablesZog
2018-02-06Refs #5741 @2h; Add a map of all routes on a line#showZog
2018-02-06Refs #5718; Show times at stops in ReferentialVehicleJourneys#indexZog
When 1 or 2 stops have been selected
2018-01-31Fix calendar mailer urlcedricnjanga
2018-01-31update calendar build_links for table buildercedricnjanga
2018-01-31First draft for including calendars into workgroup for having appropriate ↵cedricnjanga
scoping
2018-01-31Refs #5683 @2H; Fix specs and refactor action_linksZog
Note: Did not fix the missing workgroup in the calendar mailer
2018-01-30Merge branch 'master' into 5683-add_workgroup_id_to_calendarscedricnjanga
2018-01-25Refs #5586; Fix specsZog
2018-01-25ComplianceControlDecorator: Convert to new action links interfaceTeddy Wing
I was getting this error: ActionView::Template::Error (undefined method `split' for nil:NilClass Did you mean? split_all): 16: 17: / compliance controls without block 18: = render_compliance_control_block 19: = render_compliance_controls(@direct_compliance_controls) 20: 21: / compliance controls with block 22: - if params[:q] && params[:q][:compliance_control_block_id_eq_any].try(:present?) app/helpers/table_builder_helper.rb:110:in `item_row_class_name' app/helpers/table_builder_helper.rb:290:in `tbody' app/helpers/table_builder_helper.rb:97:in `table_builder_2' app/helpers/compliance_control_sets_helper.rb:79:in `block in render_table_builder' app/helpers/compliance_control_sets_helper.rb:78:in `render_table_builder' app/helpers/compliance_control_sets_helper.rb:71:in `block (2 levels) in render_compliance_controls' app/helpers/compliance_control_sets_helper.rb:70:in `block in render_compliance_controls' app/helpers/compliance_control_sets_helper.rb:69:in `render_compliance_controls' app/views/compliance_control_sets/show.html.slim:19:in `_app_views_compliance_control_sets_show_html_slim___3528509151208629266_70279137561480' The model name wasn't accessible from the view because this collection is set up in an unorthodox way without a decorated collection. Got help from Johan, and we ended up using the `model` param passed into the table builder for this. It looks terrible with `model` all over the place, but at least it gets us past the problem. Refs #5586
2018-01-25Refs #5586 @2h; Fix specsZog
2018-01-25Refs #5586 @1h; Ensure retrocompatibilityZog
And remove snapshots (we don't need it anymore)
2018-01-25Refs #5586 @2h; Better implementation of groupsZog
Used it in Lines#index and Lines#show, probably broke everything else
2018-01-25Refs #5586 @4h; First `action_links` refactorZog
- Implement new API - Migrate the LineDecorator - ensure no change on the "lines/index" view
2018-01-24update calendar build_links for table buildercedricnjanga
2018-01-23First draft for including calendars into workgroup for having appropriate ↵cedricnjanga
scoping
2018-01-12Refs #5163cedricnjanga
Add compliance check resource status helper Add small changes for CSV export
2018-01-11Create Referential#full_name and try to use it (to be completed). Refs #5546Alban Peignier
2018-01-10Merge pull request #204 from af83/5413-read_only_policy_for_finalised_refsAlban Peignier
Read only policy for referentials in suite. Refs #5413
2018-01-10Fixes typo in referential_read_only?. Removed finalised? test (no such ↵Alban Peignier
method). Refs #5413
2018-01-09Fix UI compliance check set statuscedricnjanga
2018-01-09Refs: #5413@0.5h; Refactoring of #archived_or_finalised?Robert
2018-01-09Refs: #5413@0.3h; Fix bug in newapplciation helper unarchive link creationRobert
2018-01-08Fixes: #5413@1h; Specs implementedRobert
2018-01-03Fix import messages style Refs #4473 @2Luc Donnet
2017-12-29Replace CommonHelper.string_keys_to_symbols by Hash#symbolize_keysAlban Peignier
2017-12-21Skip link class in gear_menu_link when emptyAlban Peignier
2017-12-21Refs #5361 @1H; Make company optional in Lines formZog
And handle the case when it is nil in the views
2017-12-21Refs #5430 @2h; Deactivate lines instead of destroying themZog
- Add `activate` and `deactivate` actions in `LinesController`, as well as corresponding routes - Add `activate!` and `deactivate!` methods in `Chouette::Line`, as well as `activated?` - Add `activate?` and `deactivate?` permissions in `LinePolicy` - Add corresponding `action_links`in the Decorator - Create helper for these actions - Add an optional `'extra_class` to the Links - Update styles for ".delete-action" to handle the case where there are several - Add I18n keys accordingly
2017-12-21Take review into accountcedricnjanga
2017-12-21BusinessCalendar => PurchaseWindowcedricnjanga
belongs_to referential
2017-12-21Handle page title error displaycedricnjanga
attempt to add select tag for model color
2017-12-20Merge pull request #151 from ↵Luc Donnet
af83/5281-workbench-import-structural-bug-reading-zip 5281 workbench import structural bug reading zip
2017-12-19Refs #5333@1.5h; Use permissions to sync StopAreas and LinesZog
- add missing policies - update permissions translator - update views to check for the permission - update views helper to check for the permission - uipdate controllers to check for the permission
2017-12-19Refs: #5291@1h; Update TableBuilderHelperZog
Update TableBuilderHelper to allow the `selectable` param to be a lambda, thus allowing us to have row-based granularity.