Commit Graph

9 Commits (088638d593df7f08c697c9656dca7422f8ff7207)

Author SHA1 Message Date
Eugen Rochko 555c4e11ba
Add validations to admin settings ()
* Add validations to admin settings

- Validate correct HTML markup
- Validate presence of contact username & e-mail
- Validate that all usernames are valid
- Validate that enums have expected values

* Fix code style issue

* Fix tests
Eugen Rochko 51e154f5e8
Admission-based registrations mode ()
Fix 
Fix 
Yamagishi Kazutoshi d10447c3a8 Use raw status code on have_http_status ()
Eugen Rochko 056b5ed72f Improve UI of admin site settings ()
Akihiko Odaki 67bc58dd60 Use around hook to restore context in Admin::SettingsController spec ()
Matt Jankowski 84eb425f38 Remove redis clear from before in spec ()
Matt Jankowski 2bd132d458 Replace best_in_place editor on admin settings page ()
* Remove best_in_place

* Replace best_in_place usage with rails helpers

* Move admin/settings#index to #edit action

* Remove click_to__edit from i18n
Matt Jankowski 1ada494bb2 Admin settings controller refactor, add specs, cleanup ()
* Add render_views for admin/settings spec

* Add coverage for admin/settings#update

* Add coverage for admin/settings typecasting open_registrations setting

* Simplify how admin/settings finds the value for updating

* Rely on activerecord to not update a value that hasnt changed

* Add coverage for non-existent setting

* Use a constant for boolean settings
Matt Jankowski dbe9f33fdc Admin base controller ()
* Add Admin::BaseController to wrap admin area

Extracts the setting of the `admin` layout and verifying that users are admins
to a common base class for the admin/ controllers.

* Add basic coverage for admin/reports and admin/settings controllers