osem-fcy/app/controllers
AEtherC0r3 fa56ff7f6d Add helper function for speaker selection
The line '@users = User.all.order(:name)' is replicated a lot of times
in EventsController and ProposalsController.
So, this commit removes it and adds a helper function
'speaker_selector_input' that generates the field where the @users
variable was used.
Also, it makes the query more specific.

Fix #1455

Other changes:
* Include the username in the drop down menu
* Add .active scope to User and corresponding tests
* Add :disabled trait to User factory
2017-05-20 18:27:07 +03:00
..
admin Add helper function for speaker selection 2017-05-20 18:27:07 +03:00
api hakiri: fix security issue 2016-11-22 09:58:20 +05:30
users Add flash type error.Rewrite controllers to use common flash style with redirect_to 2016-03-16 09:17:41 +05:30
application_controller.rb Fix unreachable code (#1140) in ConferenceRegistrationController#new 2017-03-07 17:40:19 +02:00
commercials_controller.rb Fix reference to non-existant route path in commercials_controller 2016-03-31 15:57:20 +05:30
conference_registrations_controller.rb Merge pull request #1446 from sunny-b/master 2017-04-07 11:21:34 +02:00
conferences_controller.rb Rename 'ConferenceController' to 'ConferencesController', and 'ProposalController' to 'ProposalsController' 2016-09-30 18:49:44 -04:00
confirmations_controller.rb rubocop styling 2014-12-01 14:40:31 +02:00
payments_controller.rb use flash.now instead of flash where page is rendered in the same controller methods 2017-04-03 20:15:51 +03:00
proposals_controller.rb Add helper function for speaker selection 2017-05-20 18:27:07 +03:00
registrations_controller.rb enable style/dotposition rubocop cop 2017-04-06 23:19:58 -04:00
schedules_controller.rb Merge pull request #1319 from JewelSam/master 2017-04-03 10:23:49 +02:00
subscriptions_controller.rb Add flash type error.Rewrite controllers to use common flash style with redirect_to 2016-03-16 09:17:41 +05:30
ticket_purchases_controller.rb controller/ticket_purchase: rubocop fix 2016-12-20 17:21:49 +05:30
tickets_controller.rb Fix Stellas review gripes 2014-12-09 15:19:01 +01:00
users_controller.rb use flash.now instead of flash where page is rendered in the same controller methods 2017-04-03 20:15:51 +03:00