cmor_user_area 0.0.1.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +78 -0
- data/Rakefile +19 -0
- data/app/concerns/cmor/user_area/controller/current_user_concern.rb +64 -0
- data/app/concerns/cmor/user_area/controller/redirect_back_concern.rb +32 -0
- data/app/concerns/cmor/user_area/controller/store_current_user_concern.rb +25 -0
- data/app/controllers/cmor/user_area/current_users_controller.rb +11 -0
- data/app/controllers/cmor/user_area/password_reset_requests.rb +6 -0
- data/app/controllers/cmor/user_area/password_reset_requests/base_controller.rb +48 -0
- data/app/controllers/cmor/user_area/password_resets.rb +6 -0
- data/app/controllers/cmor/user_area/password_resets/base_controller.rb +48 -0
- data/app/controllers/cmor/user_area/sessions.rb +6 -0
- data/app/controllers/cmor/user_area/sessions/base_controller.rb +53 -0
- data/app/controllers/cmor/user_area/user_password_reset_requests_controller.rb +15 -0
- data/app/controllers/cmor/user_area/user_password_resets_controller.rb +9 -0
- data/app/controllers/cmor/user_area/user_sessions_controller.rb +9 -0
- data/app/controllers/cmor/user_area/users.rb +6 -0
- data/app/controllers/cmor/user_area/users/base_controller.rb +48 -0
- data/app/helpers/cmor/user_area_helper.rb +15 -0
- data/app/mailers/cmor/user_area/user_mailer.rb +12 -0
- data/app/models/cmor/user_area/user.rb +80 -0
- data/app/models/cmor/user_area/user_password_reset_request.rb +42 -0
- data/app/serializers/cmor/user_area/user_serializer.rb +7 -0
- data/app/services/cmor/user_area/application_service.rb +8 -0
- data/app/services/cmor/user_area/create_default_user_service.rb +36 -0
- data/app/sessions/cmor/user_area/session/base.rb +8 -0
- data/app/sessions/cmor/user_area/user_session.rb +8 -0
- data/app/view_helpers/cmor/user_area/application_view_helper.rb +44 -0
- data/app/views/cmor/user_area/_navigation.html.haml +13 -0
- data/app/views/cmor/user_area/current_users/_form.html.haml +3 -0
- data/app/views/cmor/user_area/current_users/_form_errors.html.haml +6 -0
- data/app/views/cmor/user_area/current_users/_head_extras.html.haml +0 -0
- data/app/views/cmor/user_area/current_users/_show.html.haml +14 -0
- data/app/views/cmor/user_area/current_users/_show_extras.html.haml +0 -0
- data/app/views/cmor/user_area/current_users/edit.html.haml +17 -0
- data/app/views/cmor/user_area/current_users/new.html.haml +15 -0
- data/app/views/cmor/user_area/current_users/show.html.haml +34 -0
- data/app/views/cmor/user_area/navigation_dropdown/_bootstrap3.html.haml +16 -0
- data/app/views/cmor/user_area/navigation_dropdown/_bootstrap4.html.haml +14 -0
- data/app/views/cmor/user_area/navigation_view_helper/bootstrap_4/_render.html.haml +10 -0
- data/app/views/cmor/user_area/navigation_view_helper/bootstrap_4/_render_dropdown.html.haml +15 -0
- data/app/views/cmor/user_area/password_reset_requests/base/_form.html.haml +1 -0
- data/app/views/cmor/user_area/password_reset_requests/base/_form_errors.html.haml +6 -0
- data/app/views/cmor/user_area/password_reset_requests/base/_head_extras.html.haml +0 -0
- data/app/views/cmor/user_area/password_reset_requests/base/new.haml +15 -0
- data/app/views/cmor/user_area/password_resets/base/_form.html.haml +2 -0
- data/app/views/cmor/user_area/password_resets/base/_form_errors.html.haml +6 -0
- data/app/views/cmor/user_area/password_resets/base/_head_extras.html.haml +0 -0
- data/app/views/cmor/user_area/password_resets/base/edit.haml +15 -0
- data/app/views/cmor/user_area/sessions/base/_form.html.haml +2 -0
- data/app/views/cmor/user_area/sessions/base/_form_errors.html.haml +6 -0
- data/app/views/cmor/user_area/sessions/base/_head_extras.html.haml +0 -0
- data/app/views/cmor/user_area/sessions/base/new.html.haml +17 -0
- data/app/views/cmor/user_area/user_mailer/password_reset_email.de.html.erb +11 -0
- data/app/views/cmor/user_area/user_mailer/password_reset_email.de.text.erb +9 -0
- data/app/views/cmor/user_area/user_mailer/password_reset_email.en.html.erb +12 -0
- data/app/views/cmor/user_area/user_mailer/password_reset_email.en.text.erb +9 -0
- data/app/views/home/index.html.erb +0 -0
- data/config/locales/authlogic.de.yml +24 -0
- data/config/locales/de.yml +132 -0
- data/config/locales/en.yml +126 -0
- data/config/routes.rb +19 -0
- data/db/migrate/20160115181043_create_cmor_user_area_users.rb +37 -0
- data/lib/cmor/user_area.rb +30 -0
- data/lib/cmor/user_area/configuration.rb +32 -0
- data/lib/cmor/user_area/engine.rb +8 -0
- data/lib/cmor/user_area/spec_helpers/feature.rb +62 -0
- data/lib/cmor/user_area/version.rb +7 -0
- data/lib/cmor_user_area.rb +10 -0
- data/lib/generators/cmor/user_area/install/install_generator.rb +38 -0
- data/lib/generators/cmor/user_area/install/templates/application_controller.source +3 -0
- data/lib/generators/cmor/user_area/install/templates/initializer.rb +60 -0
- data/lib/generators/cmor/user_area/install/templates/routes.source +2 -0
- data/lib/tasks/cmor_user_area_tasks.rake +8 -0
- data/spec/dummy/app/assets/config/manifest.js +3 -0
- data/spec/dummy/app/assets/javascripts/cable.js +13 -0
- data/spec/dummy/app/channels/application_cable/channel.rb +4 -0
- data/spec/dummy/app/channels/application_cable/connection.rb +4 -0
- data/spec/dummy/app/jobs/application_job.rb +2 -0
- data/spec/dummy/app/mailers/application_mailer.rb +4 -0
- data/spec/dummy/app/models/application_record.rb +3 -0
- data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
- data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
- data/spec/dummy/bin/update +31 -0
- data/spec/dummy/bin/yarn +11 -0
- data/spec/dummy/config/cable.yml +10 -0
- data/spec/dummy/config/initializers/application_controller_renderer.rb +8 -0
- data/spec/dummy/config/initializers/content_security_policy.rb +25 -0
- data/spec/dummy/config/puma.rb +34 -0
- data/spec/dummy/config/spring.rb +6 -0
- data/spec/dummy/config/storage.yml +34 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20190325192603_create_active_storage_tables.active_storage.rb +27 -0
- data/spec/dummy/db/migrate/20190325192624_create_cmor_user_area_users.cmor_user_area.rb +38 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/lib/templates/haml/scaffold/_form.html.haml +12 -0
- data/spec/dummy/log/development.log +108 -0
- data/spec/dummy/log/test.log +509 -0
- data/spec/dummy/package.json +5 -0
- data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/spec/dummy/public/apple-touch-icon.png +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-w/-wwQdyEeejIS0ptNkDb8CotcFEz8shbr_mHkZA7OevQ.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/2J/2JZ8VAYhkBcWE3sok5fqFK1opx8vf16OKQxVHfUPn4k.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/4T/4TkMgJg6Zk3-hcNYiEywIW5XROuYtAcnmPk9_0I7clg.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/58/584AkuPUz7HNQZLo41hVlC43-zDp6wQiwQjwuqNORRY.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/5L/5L-FSYLjBxDmPgzI_CAYGDk-9Mni9w9C57XkJeyt5LA.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/6e/6eHLns1-9lpL1ONXkJHSM9src6rLg-c1X_ABZTpGJU0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/79/79jR4Uf_pUhttCKeRR-xEPMITP6aTnSgtQIa8EfUW8E.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/7R/7RJVJLrYkQmkJ9Sl8MmsOoQEZ8h9ZjROviFb0SniYcs.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8-/8-QQLtMujDnjyd2fI0Ygw5qXaATxumVuyPKDpUWewKE.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8B/8BjefZm87J3KSHa70sBrLglaelKVHts_WPz85SBILbw.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8Q/8Qv0pOFexuQn3xn0g8_E7UAZoZjcSudR3eCadt2r1ic.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/AE/AEkMvfX2UxO0g0t28U8GjbECOIWvVNlR03X0ab1M4tE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/AR/ARfYs31IhL3pDDp_oJE4RzmDigur1JRJkqZpRTyt1M8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Aq/AqM1YgA1Ku-odROqZQDyMn3C45ppUn4qo1QscS5TAL4.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Bz/BzORlUIjpUN9Hsz7XbBmcaQFd_l4HfoJkJw0t4nAKjc.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/C5/C5D4T0_nOZRxlB1Kr3YBjpAz13VAaGm5141p_IqSHEw.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/D2/D2ri1FdDjnUlgaCehETUAH9MBudGFni8BhvIeGwF46s.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/DX/DXbHDrIcECN1YE2zwFlHXwUEsa9Nc1OnPX_baI13PI8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/EK/EK4OLCBAIT0sqfYnC571wtOio3A88k5mjqemmHXRvME.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ex/Exni9T-N0D00xhk9o73AIRL5YUOyHlJTj0i9YuzvnvQ.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/F7/F74fucogx91yB5PW70H7x0uAJV_sYuVfbAg73rR-wUI.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/H5/H5OObbRUl_LDveW5FbD_ypXLGfV1jkVsOYxMVonPdRU.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/HC/HCDOUd7-S45aJ_PjVAC_Vmjyud3i1aQv4cE3t9_Z3Dw.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/HZ/HZ1iRdzAHZ8o4HrWUPniUmrldI0rrw3czGHIlhKx20Q.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Hx/HxDhLNAjgpAjWKLIYCTcv1gXd11GGWXDRkGMlW1ZL4o.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ia/Iamg0tlKTyWQONN43wFwQ4e-seFD8rm8Tf-G72HPyP4.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/K9/K9crSvC2UPnYrdvz_jmuiFaHNpGz63JZnWi2--YxO7A.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/KU/KUadIyonXR1Vyz07b6lra7kQIWQVonzIiOzZCJOK4IE.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Kq/Kqu-8GldLxbnQ5PYr_P_Xv6O-g9ty5ReXacceHUMDiY.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Kz/KzLDCKAT9oKrukAg9tFB8mtVV7bPiIGpiFUeS1TljEQ.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/LW/LWYc1nv4Bh5BbSrhl4B1cnaH5Qqks2CqNagjBrxfoDY.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/MC/MCuEd_HWd5C2COVhVm23pI9wjRXLZI7gB5cNb6b_5X4.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Mb/MbgYygU0CWG73XoEOS94Vyil9b_iyKja00eXefGa5LM.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Mm/MmSp1Be-PB_hAasIwNDehj1aIpBVchE9WrMEIgD67SA.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/NA/NA7TG8OGXra5NGU5ptqd0TbvuCX0sB2U1SUbbOgo_ik.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ng/NgoumFe4ZOSieHJ2XRgYhOlgTLS35s0DyU58x7HfI2A.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Oo/OoGJC7rHNFMAE-SQlL4eOy8lPJR8Y4cN0zSRnygkHY8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/PD/PD99Bcd5AQWB3NVDhz4dX9LI8A31bqUs4N-qUdEFCAE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/PI/PIysz08byyvXlaQfthLgm79fjzz0rZ0el42dAQq2hf8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/P_/P_UMpytd32vzaBB9OmSyfMhsloRkvkvWbGJU1cY-_T0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Q7/Q7JnF7XNGFTeq0tZ_T2eaASvv6XImGz7QxxPWYcA3g0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Qn/QntQgTSCYnhbiX4LoprBXIqyz2RyRzOJiKazX9xHuu8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/R6/R6W1OhmXADlwn2paOoImbgcKCpB8tY4uwtVA27HImuc.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Rs/RscE5VBWfyXMQo35So2JtRTyNa8kpDdAjWTM96exJtw.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/SB/SByKDoOgon_c4yw7Hg6SUt7e3nBnAiFe0PmKjQKgP38.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/SC/SCj7IBUBBJModudbkHhWngiTTDj1t5ZhW5PfZA0HGHQ.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/TM/TMb1cGxkrsKz17sDCtqbWN-Jh6QxyKU_ltbBTBTsZVc.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Tp/TpmeWw1QJfLYcmHo3aqXMUTmK3_tppjOTY6Bhmm5z4c.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/U2/U2ziIOj8cbeulgezpTOzcrhnd7Z8mGLcFNHHLRS6v_w.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Uz/UzRlBw63ovNsxNNbz6WVQPkQx_g01AT7k9JzvmLbmZ8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/VS/VSliUoy2QKm5bR_26CTaylVZY4o61YuE0gr5kqU6UJE.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Vr/VrtEHnJmqjZwGxBqPWkxmfbuNoZ_ZlWNmLzKRC924FU.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/W5/W5NIwCJ2YK1p63ZkfQtu4M00FVW772ITtEBrY9xYfYI.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Xk/XkVHFvPaI-xAbAcXZSv_EslOO0sXQSOJi2v9-w5UyE4.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Xv/XvoUclLVplyO9UQw8e-98EJElxKytnIKdeiw8cN1tAk.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Yp/YpBWosQuOX-dGPr1EDa4wnkCPyZdLhq-0vKhfbMWsUY.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Yu/YubKG280u8nFXEY4CvadpgzyDbeevIL7SFUQeFA_0X4.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Zj/ZjK1fvOKdajGTfU5pRn8x2UWgX8GWvuTXo24RENXREM.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/_U/_Uz5da-URnRhVpIycPwOq3dvEZay17seoAYyPNNT_d4.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/_v/_vHhLuv_HO3ndie5PLld1rfmAfh8Y54vtbj14lnA97w.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/aQ/aQL0CNPS5ESzN5XcS9o8NF7i4bv4pCm0xdrA7vfw5fc.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/aR/aR5t7yCAR6IoNonATlf4QuZZSFc4k_ERK1u2fltqois.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/bD/bDIuRJAlDi98cyI-tv6gf95cK6b2lDclVk6gw7-4yQE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/bl/blP7I9wrpMZirmqxSinkxvHgn7dwfxBAvHlUkCTQf9Q.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/bu/buXbbv7z8SqC7DAPe_4Oip10Xm9GRMFE9VIlCHH3pDQ.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/c7/c7CooReQb2ejxEumMNCGRid6lhlPFxxlYhiSx0BnFf4.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/dG/dG2st3mUGsh-8yC115nqU2IltElHJVNhu2vRfijxs20.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/dp/dpzW4cK3NsJEHAYf7z-nszapTBk7oQrhBPjmkIoZoXQ.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/eJ/eJhiyiHTMJUDd_OqCXD93jBwAivnKRBa5x5qtFrxQj8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/fR/fRbCj1aNB38O-9pznPKZJ-EZoFXBeVilAs0WroTkIEM.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/fU/fUQKkajuOuSLJQtRtjum4rOrJsTBFTgtwktNG4QVlrQ.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/fq/fqqy6XMocl_Tx0nWsOC1LQ_uj3jUrV-CN8kMgtDR0Bc.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/gd/gdC8KjHpTRTYsyeT0HoM5RR_ZKDCK_4XKXQO81ArNlM.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/iJ/iJM3CTsQFj5rof3eJPd4ioz8cgWWJie0byeOy7L6Nng.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/i_/i_s59CkDPBCbkVzR2yxiT9kpEI1B0pO0OYOIwTGpkcI.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ip/ipi1NeZWfWKRKJ3wXF6d_iPE8V0BdYHjDxYhBLc98A8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/j1/j1BQXikuCXkgfl_ekvX7byh1qZLEg4hhbmTdGdJVijs.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jK/jKHqW1VBzFtw_WgOZ-5WFrod_nbiYJ_Duey1VZXs3Mo.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jU/jUmxOIOwQBdZhDyVmTtD0UUEWZz_9Iu64WY59bXHgs0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/kD/kDartayL6A6j26rd-NkFIU9yqvIIJh9IUdiLsbuHoPY.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/lD/lDkdR_Yvju7JvBiTO_3OE9ADzuVk-4T_JvDZhPSpmXk.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/lS/lStvx9Beg2l4s8L-QdTSKuc5_qQPQAZPnIcRI7JkpPE.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/nI/nIKQa784qYcxM8_rmLncqiSL4jWWsKrqq19GrEprQ34.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/n_/n_xYqQYhwEMQknb3jFQnjlxxBE9TzMNHCdJ-bEyZFIw.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/nq/nqBvCfX72u2EvAyNfHt3upjIFz009V5YYgwPmmaNRH4.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/nt/ntry6y5LOGB3mXS76ylx-eIcul__UqoQoqB4-0eaNnI.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/nx/nxTv3sKVUQZADJyM3dPaVmUA78MIsMLD_K279yN_GsI.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/qq/qqeUBxpDPTNXL2hYWXX8t_E_jxRkRpjhJR-FcdiLWr0.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/qt/qtFUQpglBnMnPpRsGKkhr2rqj9Ub3yOf_h01fudm3pc.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/sm/smkjNAEzX7uLiRZnQA38poQvnhHE5uHIlMpkirr_K04.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/v_/v_O7CAdXG7icZucqoA971FxfXpz7XWC8PtjH-Z1HIFU.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/vw/vw4hWcAaXGLEo2E8KRM86fVgJAvs7q3qkZYmkI2UYG0.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/w8/w8XS90xe44-zLTirkVNvEMgky0Iu-y4R4tWoQTHOkWA.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/wH/wHiXMAfKVNHdoxvX_7U_fJX97Kv2TDg5VZs6QQGgM7k.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/wY/wYXscG863_Dznp_gsU3c1NlFGjKgloZPKnaFeHYhgLg.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/wi/win_v0ZNu-l7AoRx8w3ls1xcy0mUExLBVMCSr5oaJFc.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ws/wsn2nUkOEHSwCK9Q1WpZekvvnYE5COQwF3keiKR9-0A.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/yM/yMREEbi29WAWRdWlQTj_ovW5SHtEt1exOy8aWy1PCI4.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/yq/yqxTsMP8kmCSie9aYhLgHs_Db7h-sSa5vmqZZJUtwv0.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/yr/yrp_60uUSk5SlU1028XR4AIpun11BkJJOvIgatVUYBQ.cache +2 -0
- data/spec/dummy/tmp/development_secret.txt +1 -0
- data/spec/dummy~/Rakefile +6 -0
- data/spec/dummy~/app/assets/config/manifest.js +3 -0
- data/spec/dummy~/app/assets/javascripts/application.js +15 -0
- data/spec/dummy~/app/assets/javascripts/cable.js +13 -0
- data/spec/dummy~/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy~/app/channels/application_cable/channel.rb +4 -0
- data/spec/dummy~/app/channels/application_cable/connection.rb +4 -0
- data/spec/dummy~/app/controllers/application_controller.rb +7 -0
- data/spec/dummy~/app/controllers/home_controller.rb +3 -0
- data/spec/dummy~/app/helpers/application_helper.rb +2 -0
- data/spec/dummy~/app/jobs/application_job.rb +2 -0
- data/spec/dummy~/app/mailers/application_mailer.rb +4 -0
- data/spec/dummy~/app/models/application_record.rb +3 -0
- data/spec/dummy~/app/views/home/index.html.erb +1 -0
- data/spec/dummy~/app/views/layouts/application.html.erb +17 -0
- data/spec/dummy~/app/views/layouts/mailer.html.erb +13 -0
- data/spec/dummy~/app/views/layouts/mailer.text.erb +1 -0
- data/spec/dummy~/bin/bundle +3 -0
- data/spec/dummy~/bin/rails +4 -0
- data/spec/dummy~/bin/rake +4 -0
- data/spec/dummy~/bin/setup +36 -0
- data/spec/dummy~/bin/update +31 -0
- data/spec/dummy~/bin/yarn +11 -0
- data/spec/dummy~/config.ru +5 -0
- data/spec/dummy~/config/application.rb +30 -0
- data/spec/dummy~/config/boot.rb +5 -0
- data/spec/dummy~/config/cable.yml +10 -0
- data/spec/dummy~/config/database.yml +25 -0
- data/spec/dummy~/config/environment.rb +5 -0
- data/spec/dummy~/config/environments/development.rb +61 -0
- data/spec/dummy~/config/environments/production.rb +94 -0
- data/spec/dummy~/config/environments/test.rb +46 -0
- data/spec/dummy~/config/initializers/application_controller_renderer.rb +8 -0
- data/spec/dummy~/config/initializers/assets.rb +14 -0
- data/spec/dummy~/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy~/config/initializers/cmor_user_area.rb +60 -0
- data/spec/dummy~/config/initializers/content_security_policy.rb +25 -0
- data/spec/dummy~/config/initializers/cookies_serializer.rb +5 -0
- data/spec/dummy~/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy~/config/initializers/i18n.rb +2 -0
- data/spec/dummy~/config/initializers/inflections.rb +16 -0
- data/spec/dummy~/config/initializers/mime_types.rb +4 -0
- data/spec/dummy~/config/initializers/route_translator.rb +3 -0
- data/spec/dummy~/config/initializers/simple_form.rb +179 -0
- data/spec/dummy~/config/initializers/simple_form_bootstrap.rb +439 -0
- data/spec/dummy~/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy~/config/locales/en.yml +33 -0
- data/spec/dummy~/config/locales/simple_form.en.yml +31 -0
- data/spec/dummy~/config/puma.rb +34 -0
- data/spec/dummy~/config/routes.rb +6 -0
- data/spec/dummy~/config/spring.rb +6 -0
- data/spec/dummy~/config/storage.yml +34 -0
- data/spec/dummy~/db/development.sqlite3 +0 -0
- data/spec/dummy~/db/migrate/20190325182101_create_active_storage_tables.active_storage.rb +27 -0
- data/spec/dummy~/db/migrate/20190325182124_create_cmor_user_area_users.cmor_user_area.rb +38 -0
- data/spec/dummy~/db/schema.rb +57 -0
- data/spec/dummy~/db/test.sqlite3 +0 -0
- data/spec/dummy~/lib/templates/haml/scaffold/_form.html.haml +12 -0
- data/spec/dummy~/log/development.log +108 -0
- data/spec/dummy~/log/test.log +2471 -0
- data/spec/dummy~/package.json +5 -0
- data/spec/dummy~/public/404.html +67 -0
- data/spec/dummy~/public/422.html +67 -0
- data/spec/dummy~/public/500.html +66 -0
- data/spec/dummy~/public/apple-touch-icon-precomposed.png +0 -0
- data/spec/dummy~/public/apple-touch-icon.png +0 -0
- data/spec/dummy~/public/favicon.ico +0 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/-w/-wwQdyEeejIS0ptNkDb8CotcFEz8shbr_mHkZA7OevQ.cache +0 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/0L/0L3l7M3Aw2FFbzcBBR_--7OUYxk8hcS4Wlu_XsRSDM8.cache +2 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/2J/2JZ8VAYhkBcWE3sok5fqFK1opx8vf16OKQxVHfUPn4k.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/4T/4TkMgJg6Zk3-hcNYiEywIW5XROuYtAcnmPk9_0I7clg.cache +0 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/58/584AkuPUz7HNQZLo41hVlC43-zDp6wQiwQjwuqNORRY.cache +0 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/5L/5L-FSYLjBxDmPgzI_CAYGDk-9Mni9w9C57XkJeyt5LA.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/6e/6eHLns1-9lpL1ONXkJHSM9src6rLg-c1X_ABZTpGJU0.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/79/79jR4Uf_pUhttCKeRR-xEPMITP6aTnSgtQIa8EfUW8E.cache +2 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/7R/7RJVJLrYkQmkJ9Sl8MmsOoQEZ8h9ZjROviFb0SniYcs.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/8-/8-QQLtMujDnjyd2fI0Ygw5qXaATxumVuyPKDpUWewKE.cache +2 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/8B/8BjefZm87J3KSHa70sBrLglaelKVHts_WPz85SBILbw.cache +0 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/8Q/8Qv0pOFexuQn3xn0g8_E7UAZoZjcSudR3eCadt2r1ic.cache +0 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/AE/AEkMvfX2UxO0g0t28U8GjbECOIWvVNlR03X0ab1M4tE.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/AR/ARfYs31IhL3pDDp_oJE4RzmDigur1JRJkqZpRTyt1M8.cache +0 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/Bz/BzORlUIjpUN9Hsz7XbBmcaQFd_l4HfoJkJw0t4nAKjc.cache +0 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/C5/C5D4T0_nOZRxlB1Kr3YBjpAz13VAaGm5141p_IqSHEw.cache +3 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/D2/D2ri1FdDjnUlgaCehETUAH9MBudGFni8BhvIeGwF46s.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/DX/DXbHDrIcECN1YE2zwFlHXwUEsa9Nc1OnPX_baI13PI8.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/EK/EK4OLCBAIT0sqfYnC571wtOio3A88k5mjqemmHXRvME.cache +0 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/ER/ERPQ7A3b0mTnn9d8QlhN1aXbgctkxjyHHMSFndZKr8Q.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/Ex/Exni9T-N0D00xhk9o73AIRL5YUOyHlJTj0i9YuzvnvQ.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/F7/F74fucogx91yB5PW70H7x0uAJV_sYuVfbAg73rR-wUI.cache +3 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/H5/H5OObbRUl_LDveW5FbD_ypXLGfV1jkVsOYxMVonPdRU.cache +0 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/HC/HCDOUd7-S45aJ_PjVAC_Vmjyud3i1aQv4cE3t9_Z3Dw.cache +2 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/HZ/HZ1iRdzAHZ8o4HrWUPniUmrldI0rrw3czGHIlhKx20Q.cache +2 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/Hx/HxDhLNAjgpAjWKLIYCTcv1gXd11GGWXDRkGMlW1ZL4o.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/IW/IWKVc2Gu-3rbS86e5x9A7ObGXbPJIewKUHDwr5iVfF0.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/K9/K9crSvC2UPnYrdvz_jmuiFaHNpGz63JZnWi2--YxO7A.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/KU/KUadIyonXR1Vyz07b6lra7kQIWQVonzIiOzZCJOK4IE.cache +3 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/Kq/Kqu-8GldLxbnQ5PYr_P_Xv6O-g9ty5ReXacceHUMDiY.cache +0 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/Kz/KzLDCKAT9oKrukAg9tFB8mtVV7bPiIGpiFUeS1TljEQ.cache +0 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/LG/LGE964MRn5WMX_YbXsO2igHkYOYhxyjImaCJDwBtS3Y.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/LW/LWYc1nv4Bh5BbSrhl4B1cnaH5Qqks2CqNagjBrxfoDY.cache +0 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/MC/MCuEd_HWd5C2COVhVm23pI9wjRXLZI7gB5cNb6b_5X4.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/Mb/MbgYygU0CWG73XoEOS94Vyil9b_iyKja00eXefGa5LM.cache +0 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/Mm/MmSp1Be-PB_hAasIwNDehj1aIpBVchE9WrMEIgD67SA.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/NA/NA7TG8OGXra5NGU5ptqd0TbvuCX0sB2U1SUbbOgo_ik.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/Ng/NgoumFe4ZOSieHJ2XRgYhOlgTLS35s0DyU58x7HfI2A.cache +0 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/PD/PD99Bcd5AQWB3NVDhz4dX9LI8A31bqUs4N-qUdEFCAE.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/PI/PIysz08byyvXlaQfthLgm79fjzz0rZ0el42dAQq2hf8.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/P_/P_UMpytd32vzaBB9OmSyfMhsloRkvkvWbGJU1cY-_T0.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/Q7/Q7JnF7XNGFTeq0tZ_T2eaASvv6XImGz7QxxPWYcA3g0.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/R6/R6W1OhmXADlwn2paOoImbgcKCpB8tY4uwtVA27HImuc.cache +3 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/Rs/RscE5VBWfyXMQo35So2JtRTyNa8kpDdAjWTM96exJtw.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/SB/SByKDoOgon_c4yw7Hg6SUt7e3nBnAiFe0PmKjQKgP38.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/TM/TMb1cGxkrsKz17sDCtqbWN-Jh6QxyKU_ltbBTBTsZVc.cache +0 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/Tp/TpmeWw1QJfLYcmHo3aqXMUTmK3_tppjOTY6Bhmm5z4c.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/Uv/UvwNLurdraCmHtUt2p2sAyLjc0CLIi4rMrgbZ_gX3QU.cache +0 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/Uz/UzRlBw63ovNsxNNbz6WVQPkQx_g01AT7k9JzvmLbmZ8.cache +0 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/VS/VSliUoy2QKm5bR_26CTaylVZY4o61YuE0gr5kqU6UJE.cache +0 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/Vr/VrtEHnJmqjZwGxBqPWkxmfbuNoZ_ZlWNmLzKRC924FU.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/W5/W5NIwCJ2YK1p63ZkfQtu4M00FVW772ITtEBrY9xYfYI.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/Xk/XkVHFvPaI-xAbAcXZSv_EslOO0sXQSOJi2v9-w5UyE4.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/Xv/XvoUclLVplyO9UQw8e-98EJElxKytnIKdeiw8cN1tAk.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/Yp/YpBWosQuOX-dGPr1EDa4wnkCPyZdLhq-0vKhfbMWsUY.cache +0 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/Yu/YubKG280u8nFXEY4CvadpgzyDbeevIL7SFUQeFA_0X4.cache +0 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/Zj/ZjK1fvOKdajGTfU5pRn8x2UWgX8GWvuTXo24RENXREM.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/_U/_Uz5da-URnRhVpIycPwOq3dvEZay17seoAYyPNNT_d4.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/_v/_vHhLuv_HO3ndie5PLld1rfmAfh8Y54vtbj14lnA97w.cache +0 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/aF/aFH86QOIHdQC7ZEGpM8MR_9E4H3_VvYLHAQpVSe7foc.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/aQ/aQL0CNPS5ESzN5XcS9o8NF7i4bv4pCm0xdrA7vfw5fc.cache +2 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/aR/aR5t7yCAR6IoNonATlf4QuZZSFc4k_ERK1u2fltqois.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/bD/bDIuRJAlDi98cyI-tv6gf95cK6b2lDclVk6gw7-4yQE.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/bl/blP7I9wrpMZirmqxSinkxvHgn7dwfxBAvHlUkCTQf9Q.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/bu/buXbbv7z8SqC7DAPe_4Oip10Xm9GRMFE9VIlCHH3pDQ.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/c7/c7CooReQb2ejxEumMNCGRid6lhlPFxxlYhiSx0BnFf4.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/dA/dAHQRa7vNh2S7w1XeJtr1U_6dY_0QjlBx4dYo1UQHOg.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/dG/dG2st3mUGsh-8yC115nqU2IltElHJVNhu2vRfijxs20.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/dp/dpzW4cK3NsJEHAYf7z-nszapTBk7oQrhBPjmkIoZoXQ.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/eJ/eJhiyiHTMJUDd_OqCXD93jBwAivnKRBa5x5qtFrxQj8.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/fR/fRbCj1aNB38O-9pznPKZJ-EZoFXBeVilAs0WroTkIEM.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/fU/fUQKkajuOuSLJQtRtjum4rOrJsTBFTgtwktNG4QVlrQ.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/fq/fqqy6XMocl_Tx0nWsOC1LQ_uj3jUrV-CN8kMgtDR0Bc.cache +2 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/gd/gdC8KjHpTRTYsyeT0HoM5RR_ZKDCK_4XKXQO81ArNlM.cache +0 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/i_/i_s59CkDPBCbkVzR2yxiT9kpEI1B0pO0OYOIwTGpkcI.cache +2 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/ip/ipi1NeZWfWKRKJ3wXF6d_iPE8V0BdYHjDxYhBLc98A8.cache +0 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/j1/j1BQXikuCXkgfl_ekvX7byh1qZLEg4hhbmTdGdJVijs.cache +0 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/jK/jKHqW1VBzFtw_WgOZ-5WFrod_nbiYJ_Duey1VZXs3Mo.cache +0 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/jU/jUmxOIOwQBdZhDyVmTtD0UUEWZz_9Iu64WY59bXHgs0.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/kD/kDartayL6A6j26rd-NkFIU9yqvIIJh9IUdiLsbuHoPY.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/lS/lStvx9Beg2l4s8L-QdTSKuc5_qQPQAZPnIcRI7JkpPE.cache +2 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/nI/nIKQa784qYcxM8_rmLncqiSL4jWWsKrqq19GrEprQ34.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/n_/n_xYqQYhwEMQknb3jFQnjlxxBE9TzMNHCdJ-bEyZFIw.cache +2 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/nq/nqBvCfX72u2EvAyNfHt3upjIFz009V5YYgwPmmaNRH4.cache +3 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/nt/ntry6y5LOGB3mXS76ylx-eIcul__UqoQoqB4-0eaNnI.cache +2 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/nx/nxTv3sKVUQZADJyM3dPaVmUA78MIsMLD_K279yN_GsI.cache +2 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/qq/qqeUBxpDPTNXL2hYWXX8t_E_jxRkRpjhJR-FcdiLWr0.cache +3 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/qt/qtFUQpglBnMnPpRsGKkhr2rqj9Ub3yOf_h01fudm3pc.cache +0 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/sm/smkjNAEzX7uLiRZnQA38poQvnhHE5uHIlMpkirr_K04.cache +2 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/tT/tTXQZvDRiDXhq7fbuy2-ynEkHbWEWkZixvWp8TOC7vQ.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/v_/v_O7CAdXG7icZucqoA971FxfXpz7XWC8PtjH-Z1HIFU.cache +3 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/vw/vw4hWcAaXGLEo2E8KRM86fVgJAvs7q3qkZYmkI2UYG0.cache +2 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/w8/w8XS90xe44-zLTirkVNvEMgky0Iu-y4R4tWoQTHOkWA.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/wH/wHiXMAfKVNHdoxvX_7U_fJX97Kv2TDg5VZs6QQGgM7k.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/wY/wYXscG863_Dznp_gsU3c1NlFGjKgloZPKnaFeHYhgLg.cache +0 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/wi/win_v0ZNu-l7AoRx8w3ls1xcy0mUExLBVMCSr5oaJFc.cache +0 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/ws/wsn2nUkOEHSwCK9Q1WpZekvvnYE5COQwF3keiKR9-0A.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/yM/yMREEbi29WAWRdWlQTj_ovW5SHtEt1exOy8aWy1PCI4.cache +1 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/yq/yqxTsMP8kmCSie9aYhLgHs_Db7h-sSa5vmqZZJUtwv0.cache +0 -0
- data/spec/dummy~/tmp/cache/assets/sprockets/v3.0/yr/yrp_60uUSk5SlU1028XR4AIpun11BkJJOvIgatVUYBQ.cache +2 -0
- data/spec/dummy~/tmp/development_secret.txt +1 -0
- data/spec/factories/cmor/user_area/users.rb +15 -0
- data/spec/features/authentication_feature_spec.rb +32 -0
- data/spec/features/registration_feature_spec.rb +76 -0
- data/spec/models/cmor/user_area/user_spec.rb +7 -0
- data/spec/models/generic_spec.rb +49 -0
- data/spec/models/i18n_spec.rb +40 -0
- data/spec/models~/generic_spec.rb +33 -0
- data/spec/rails_helper.rb +62 -0
- data/spec/rails_helper.rb~ +57 -0
- data/spec/services/cmor/user_area/create_default_user_service_spec.rb +36 -0
- data/spec/spec_helper.rb +96 -0
- data/spec/spec_helper.rb~ +90 -0
- data/spec/support/capybara.rb +1 -0
- data/spec/support/factory_bot.rb +5 -0
- data/spec/support/pry-rails.rb +1 -0
- data/spec/support/rao-shoulda_matchers.rb +5 -0
- data/spec/support/shoulda_matchers.rb +8 -0
- data/spec/support~/capybara.rb +1 -0
- data/spec/support~/factory_girl.rb +5 -0
- data/spec/support~/formulaic.rb +5 -0
- metadata +797 -0
@@ -0,0 +1,14 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Version of your assets, change this if you want to expire all your assets.
|
4
|
+
Rails.application.config.assets.version = '1.0'
|
5
|
+
|
6
|
+
# Add additional assets to the asset load path.
|
7
|
+
# Rails.application.config.assets.paths << Emoji.images_path
|
8
|
+
# Add Yarn node_modules folder to the asset load path.
|
9
|
+
Rails.application.config.assets.paths << Rails.root.join('node_modules')
|
10
|
+
|
11
|
+
# Precompile additional assets.
|
12
|
+
# application.js, application.css, and all non-JS/CSS in the app/assets
|
13
|
+
# folder are already added.
|
14
|
+
# Rails.application.config.assets.precompile += %w( admin.js admin.css )
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
+
|
6
|
+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
+
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -0,0 +1,60 @@
|
|
1
|
+
Cmor::UserArea.configure do |config|
|
2
|
+
# Allow/disallow new user registrations.
|
3
|
+
#
|
4
|
+
# default: config.enable_registrations = false
|
5
|
+
#
|
6
|
+
config.enable_registrations = false
|
7
|
+
|
8
|
+
# Set the base controller
|
9
|
+
#
|
10
|
+
# Default: config.base_controller = '::ApplicationController'
|
11
|
+
#
|
12
|
+
config.base_controller = '::ApplicationController'
|
13
|
+
|
14
|
+
# Set the base mailer
|
15
|
+
#
|
16
|
+
# Default: config.base_mailer = 'ApplicationMailer'
|
17
|
+
#
|
18
|
+
config.base_mailer = 'ApplicationMailer'
|
19
|
+
|
20
|
+
# Where to redirect to after successful login
|
21
|
+
#
|
22
|
+
# Default: config.after_sign_in_url = ->(controller) { main_app.root_path }
|
23
|
+
#
|
24
|
+
config.after_sign_in_url = ->(controller) { main_app.root_path }
|
25
|
+
|
26
|
+
# This is the block, that will be passed to the acts_as_authentic call
|
27
|
+
# in the user model.
|
28
|
+
#
|
29
|
+
# Default: config.acts_as_authentic_options = ->(c) do
|
30
|
+
# config.crypto_provider = Authlogic::CryptoProviders::BCrypt
|
31
|
+
# config.login_field = :email
|
32
|
+
# end
|
33
|
+
#
|
34
|
+
config.acts_as_authentic_options = lambda do |c|
|
35
|
+
c.crypto_provider = Authlogic::CryptoProviders::BCrypt
|
36
|
+
c.login_field = :email
|
37
|
+
# How paranoid are you?
|
38
|
+
# c.perishable_token_valid_for = 24.hours
|
39
|
+
end
|
40
|
+
|
41
|
+
# Application name for mail delivery.
|
42
|
+
#
|
43
|
+
# Default: config.application_name = Rails.application.class.name.deconstantize
|
44
|
+
#
|
45
|
+
config.application_name = Rails.application.class.name.deconstantize
|
46
|
+
|
47
|
+
# E-Mail sender address for password reset emails.
|
48
|
+
#
|
49
|
+
# Default: config.email_from_address = 'info@example.com'
|
50
|
+
#
|
51
|
+
config.email_from_address = lambda do
|
52
|
+
ENV['CMOR_USER_AREA_FROM_ADDRESS'] || 'info@example.com'
|
53
|
+
end
|
54
|
+
|
55
|
+
# Allow/disallow users to remove their own accounts.
|
56
|
+
#
|
57
|
+
# default: config.allow_users_to_destroy_self = true
|
58
|
+
#
|
59
|
+
config.allow_users_to_destroy_self = true
|
60
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Define an application-wide content security policy
|
4
|
+
# For further information see the following documentation
|
5
|
+
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
|
6
|
+
|
7
|
+
# Rails.application.config.content_security_policy do |policy|
|
8
|
+
# policy.default_src :self, :https
|
9
|
+
# policy.font_src :self, :https, :data
|
10
|
+
# policy.img_src :self, :https, :data
|
11
|
+
# policy.object_src :none
|
12
|
+
# policy.script_src :self, :https
|
13
|
+
# policy.style_src :self, :https
|
14
|
+
|
15
|
+
# # Specify URI for violation reports
|
16
|
+
# # policy.report_uri "/csp-violation-report-endpoint"
|
17
|
+
# end
|
18
|
+
|
19
|
+
# If you are using UJS then enable automatic nonce generation
|
20
|
+
# Rails.application.config.content_security_policy_nonce_generator = -> request { SecureRandom.base64(16) }
|
21
|
+
|
22
|
+
# Report CSP violations to a specified URI
|
23
|
+
# For further information see the following documentation:
|
24
|
+
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only
|
25
|
+
# Rails.application.config.content_security_policy_report_only = true
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new inflection rules using the following format. Inflections
|
4
|
+
# are locale specific, and you may define rules for as many different
|
5
|
+
# locales as you wish. All of these examples are active by default:
|
6
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
7
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
8
|
+
# inflect.singular /^(ox)en/i, '\1'
|
9
|
+
# inflect.irregular 'person', 'people'
|
10
|
+
# inflect.uncountable %w( fish sheep )
|
11
|
+
# end
|
12
|
+
|
13
|
+
# These inflection rules are supported but not enabled by default:
|
14
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
15
|
+
# inflect.acronym 'RESTful'
|
16
|
+
# end
|
@@ -0,0 +1,179 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
#
|
3
|
+
# Uncomment this and change the path if necessary to include your own
|
4
|
+
# components.
|
5
|
+
# See https://github.com/plataformatec/simple_form#custom-components to know
|
6
|
+
# more about custom components.
|
7
|
+
# Dir[Rails.root.join('lib/components/**/*.rb')].each { |f| require f }
|
8
|
+
#
|
9
|
+
# Use this setup block to configure all options available in SimpleForm.
|
10
|
+
SimpleForm.setup do |config|
|
11
|
+
# Wrappers are used by the form builder to generate a
|
12
|
+
# complete input. You can remove any component from the
|
13
|
+
# wrapper, change the order or even add your own to the
|
14
|
+
# stack. The options given below are used to wrap the
|
15
|
+
# whole input.
|
16
|
+
config.wrappers :default, class: :input,
|
17
|
+
hint_class: :field_with_hint, error_class: :field_with_errors, valid_class: :field_without_errors do |b|
|
18
|
+
## Extensions enabled by default
|
19
|
+
# Any of these extensions can be disabled for a
|
20
|
+
# given input by passing: `f.input EXTENSION_NAME => false`.
|
21
|
+
# You can make any of these extensions optional by
|
22
|
+
# renaming `b.use` to `b.optional`.
|
23
|
+
|
24
|
+
# Determines whether to use HTML5 (:email, :url, ...)
|
25
|
+
# and required attributes
|
26
|
+
b.use :html5
|
27
|
+
|
28
|
+
# Calculates placeholders automatically from I18n
|
29
|
+
# You can also pass a string as f.input placeholder: "Placeholder"
|
30
|
+
b.use :placeholder
|
31
|
+
|
32
|
+
## Optional extensions
|
33
|
+
# They are disabled unless you pass `f.input EXTENSION_NAME => true`
|
34
|
+
# to the input. If so, they will retrieve the values from the model
|
35
|
+
# if any exists. If you want to enable any of those
|
36
|
+
# extensions by default, you can change `b.optional` to `b.use`.
|
37
|
+
|
38
|
+
# Calculates maxlength from length validations for string inputs
|
39
|
+
# and/or database column lengths
|
40
|
+
b.optional :maxlength
|
41
|
+
|
42
|
+
# Calculate minlength from length validations for string inputs
|
43
|
+
b.optional :minlength
|
44
|
+
|
45
|
+
# Calculates pattern from format validations for string inputs
|
46
|
+
b.optional :pattern
|
47
|
+
|
48
|
+
# Calculates min and max from length validations for numeric inputs
|
49
|
+
b.optional :min_max
|
50
|
+
|
51
|
+
# Calculates readonly automatically from readonly attributes
|
52
|
+
b.optional :readonly
|
53
|
+
|
54
|
+
## Inputs
|
55
|
+
# b.use :input, class: 'input', error_class: 'is-invalid', valid_class: 'is-valid'
|
56
|
+
b.use :label_input
|
57
|
+
b.use :hint, wrap_with: { tag: :span, class: :hint }
|
58
|
+
b.use :error, wrap_with: { tag: :span, class: :error }
|
59
|
+
|
60
|
+
## full_messages_for
|
61
|
+
# If you want to display the full error message for the attribute, you can
|
62
|
+
# use the component :full_error, like:
|
63
|
+
#
|
64
|
+
# b.use :full_error, wrap_with: { tag: :span, class: :error }
|
65
|
+
end
|
66
|
+
|
67
|
+
# The default wrapper to be used by the FormBuilder.
|
68
|
+
config.default_wrapper = :default
|
69
|
+
|
70
|
+
# Define the way to render check boxes / radio buttons with labels.
|
71
|
+
# Defaults to :nested for bootstrap config.
|
72
|
+
# inline: input + label
|
73
|
+
# nested: label > input
|
74
|
+
config.boolean_style = :nested
|
75
|
+
|
76
|
+
# Default class for buttons
|
77
|
+
config.button_class = 'btn'
|
78
|
+
|
79
|
+
# Method used to tidy up errors. Specify any Rails Array method.
|
80
|
+
# :first lists the first message for each field.
|
81
|
+
# Use :to_sentence to list all errors for each field.
|
82
|
+
# config.error_method = :first
|
83
|
+
|
84
|
+
# Default tag used for error notification helper.
|
85
|
+
config.error_notification_tag = :div
|
86
|
+
|
87
|
+
# CSS class to add for error notification helper.
|
88
|
+
config.error_notification_class = 'error_notification'
|
89
|
+
|
90
|
+
# Series of attempts to detect a default label method for collection.
|
91
|
+
# config.collection_label_methods = [ :to_label, :name, :title, :to_s ]
|
92
|
+
|
93
|
+
# Series of attempts to detect a default value method for collection.
|
94
|
+
# config.collection_value_methods = [ :id, :to_s ]
|
95
|
+
|
96
|
+
# You can wrap a collection of radio/check boxes in a pre-defined tag, defaulting to none.
|
97
|
+
# config.collection_wrapper_tag = nil
|
98
|
+
|
99
|
+
# You can define the class to use on all collection wrappers. Defaulting to none.
|
100
|
+
# config.collection_wrapper_class = nil
|
101
|
+
|
102
|
+
# You can wrap each item in a collection of radio/check boxes with a tag,
|
103
|
+
# defaulting to :span.
|
104
|
+
# config.item_wrapper_tag = :span
|
105
|
+
|
106
|
+
# You can define a class to use in all item wrappers. Defaulting to none.
|
107
|
+
# config.item_wrapper_class = nil
|
108
|
+
|
109
|
+
# How the label text should be generated altogether with the required text.
|
110
|
+
# config.label_text = lambda { |label, required, explicit_label| "#{required} #{label}" }
|
111
|
+
|
112
|
+
# You can define the class to use on all labels. Default is nil.
|
113
|
+
# config.label_class = nil
|
114
|
+
|
115
|
+
# You can define the default class to be used on forms. Can be overriden
|
116
|
+
# with `html: { :class }`. Defaulting to none.
|
117
|
+
# config.default_form_class = nil
|
118
|
+
|
119
|
+
# You can define which elements should obtain additional classes
|
120
|
+
# config.generate_additional_classes_for = [:wrapper, :label, :input]
|
121
|
+
|
122
|
+
# Whether attributes are required by default (or not). Default is true.
|
123
|
+
# config.required_by_default = true
|
124
|
+
|
125
|
+
# Tell browsers whether to use the native HTML5 validations (novalidate form option).
|
126
|
+
# These validations are enabled in SimpleForm's internal config but disabled by default
|
127
|
+
# in this configuration, which is recommended due to some quirks from different browsers.
|
128
|
+
# To stop SimpleForm from generating the novalidate option, enabling the HTML5 validations,
|
129
|
+
# change this configuration to true.
|
130
|
+
config.browser_validations = false
|
131
|
+
|
132
|
+
# Collection of methods to detect if a file type was given.
|
133
|
+
# config.file_methods = [ :mounted_as, :file?, :public_filename, :attached? ]
|
134
|
+
|
135
|
+
# Custom mappings for input types. This should be a hash containing a regexp
|
136
|
+
# to match as key, and the input type that will be used when the field name
|
137
|
+
# matches the regexp as value.
|
138
|
+
# config.input_mappings = { /count/ => :integer }
|
139
|
+
|
140
|
+
# Custom wrappers for input types. This should be a hash containing an input
|
141
|
+
# type as key and the wrapper that will be used for all inputs with specified type.
|
142
|
+
# config.wrapper_mappings = { string: :prepend }
|
143
|
+
|
144
|
+
# Namespaces where SimpleForm should look for custom input classes that
|
145
|
+
# override default inputs.
|
146
|
+
# config.custom_inputs_namespaces << "CustomInputs"
|
147
|
+
|
148
|
+
# Default priority for time_zone inputs.
|
149
|
+
# config.time_zone_priority = nil
|
150
|
+
|
151
|
+
# Default priority for country inputs.
|
152
|
+
# config.country_priority = nil
|
153
|
+
|
154
|
+
# When false, do not use translations for labels.
|
155
|
+
# config.translate_labels = true
|
156
|
+
|
157
|
+
# Automatically discover new inputs in Rails' autoload path.
|
158
|
+
# config.inputs_discovery = true
|
159
|
+
|
160
|
+
# Cache SimpleForm inputs discovery
|
161
|
+
# config.cache_discovery = !Rails.env.development?
|
162
|
+
|
163
|
+
# Default class for inputs
|
164
|
+
# config.input_class = nil
|
165
|
+
|
166
|
+
# Define the default class of the input wrapper of the boolean input.
|
167
|
+
config.boolean_label_class = 'checkbox'
|
168
|
+
|
169
|
+
# Defines if the default input wrapper class should be included in radio
|
170
|
+
# collection wrappers.
|
171
|
+
# config.include_default_input_wrapper_class = true
|
172
|
+
|
173
|
+
# Defines which i18n scope will be used in Simple Form.
|
174
|
+
# config.i18n_scope = 'simple_form'
|
175
|
+
|
176
|
+
# Defines validation classes to the input_field. By default it's nil.
|
177
|
+
# config.input_field_valid_class = 'is-valid'
|
178
|
+
# config.input_field_error_class = 'is-invalid'
|
179
|
+
end
|
@@ -0,0 +1,439 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Please do not make direct changes to this file!
|
4
|
+
# This generator is maintained by the community around simple_form-bootstrap:
|
5
|
+
# https://github.com/rafaelfranca/simple_form-bootstrap
|
6
|
+
# All future development, tests, and organization should happen there.
|
7
|
+
# Background history: https://github.com/plataformatec/simple_form/issues/1561
|
8
|
+
|
9
|
+
# Uncomment this and change the path if necessary to include your own
|
10
|
+
# components.
|
11
|
+
# See https://github.com/plataformatec/simple_form#custom-components
|
12
|
+
# to know more about custom components.
|
13
|
+
# Dir[Rails.root.join('lib/components/**/*.rb')].each { |f| require f }
|
14
|
+
|
15
|
+
# Use this setup block to configure all options available in SimpleForm.
|
16
|
+
SimpleForm.setup do |config|
|
17
|
+
# Default class for buttons
|
18
|
+
config.button_class = 'btn'
|
19
|
+
|
20
|
+
# Define the default class of the input wrapper of the boolean input.
|
21
|
+
config.boolean_label_class = 'form-check-label'
|
22
|
+
|
23
|
+
# How the label text should be generated altogether with the required text.
|
24
|
+
config.label_text = lambda { |label, required, explicit_label| "#{label} #{required}" }
|
25
|
+
|
26
|
+
# Define the way to render check boxes / radio buttons with labels.
|
27
|
+
config.boolean_style = :inline
|
28
|
+
|
29
|
+
# You can wrap each item in a collection of radio/check boxes with a tag
|
30
|
+
config.item_wrapper_tag = :div
|
31
|
+
|
32
|
+
# Defines if the default input wrapper class should be included in radio
|
33
|
+
# collection wrappers.
|
34
|
+
config.include_default_input_wrapper_class = false
|
35
|
+
|
36
|
+
# CSS class to add for error notification helper.
|
37
|
+
config.error_notification_class = 'alert alert-danger'
|
38
|
+
|
39
|
+
# Method used to tidy up errors. Specify any Rails Array method.
|
40
|
+
# :first lists the first message for each field.
|
41
|
+
# :to_sentence to list all errors for each field.
|
42
|
+
config.error_method = :to_sentence
|
43
|
+
|
44
|
+
# add validation classes to `input_field`
|
45
|
+
config.input_field_error_class = 'is-invalid'
|
46
|
+
config.input_field_valid_class = 'is-valid'
|
47
|
+
|
48
|
+
|
49
|
+
# vertical forms
|
50
|
+
#
|
51
|
+
# vertical default_wrapper
|
52
|
+
config.wrappers :vertical_form, tag: 'div', class: 'form-group', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
53
|
+
b.use :html5
|
54
|
+
b.use :placeholder
|
55
|
+
b.optional :maxlength
|
56
|
+
b.optional :minlength
|
57
|
+
b.optional :pattern
|
58
|
+
b.optional :min_max
|
59
|
+
b.optional :readonly
|
60
|
+
b.use :label, class: 'form-control-label'
|
61
|
+
b.use :input, class: 'form-control', error_class: 'is-invalid', valid_class: 'is-valid'
|
62
|
+
b.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback' }
|
63
|
+
b.use :hint, wrap_with: { tag: 'small', class: 'form-text text-muted' }
|
64
|
+
end
|
65
|
+
|
66
|
+
# vertical input for boolean
|
67
|
+
config.wrappers :vertical_boolean, tag: 'fieldset', class: 'form-group', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
68
|
+
b.use :html5
|
69
|
+
b.optional :readonly
|
70
|
+
b.wrapper :form_check_wrapper, tag: 'div', class: 'form-check' do |bb|
|
71
|
+
bb.use :input, class: 'form-check-input', error_class: 'is-invalid', valid_class: 'is-valid'
|
72
|
+
bb.use :label, class: 'form-check-label'
|
73
|
+
bb.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback' }
|
74
|
+
bb.use :hint, wrap_with: { tag: 'small', class: 'form-text text-muted' }
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
# vertical input for radio buttons and check boxes
|
79
|
+
config.wrappers :vertical_collection, item_wrapper_class: 'form-check', tag: 'fieldset', class: 'form-group', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
80
|
+
b.use :html5
|
81
|
+
b.optional :readonly
|
82
|
+
b.wrapper :legend_tag, tag: 'legend', class: 'col-form-label pt-0' do |ba|
|
83
|
+
ba.use :label_text
|
84
|
+
end
|
85
|
+
b.use :input, class: 'form-check-input', error_class: 'is-invalid', valid_class: 'is-valid'
|
86
|
+
b.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback d-block' }
|
87
|
+
b.use :hint, wrap_with: { tag: 'small', class: 'form-text text-muted' }
|
88
|
+
end
|
89
|
+
|
90
|
+
# vertical input for inline radio buttons and check boxes
|
91
|
+
config.wrappers :vertical_collection_inline, item_wrapper_class: 'form-check form-check-inline', tag: 'fieldset', class: 'form-group', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
92
|
+
b.use :html5
|
93
|
+
b.optional :readonly
|
94
|
+
b.wrapper :legend_tag, tag: 'legend', class: 'col-form-label pt-0' do |ba|
|
95
|
+
ba.use :label_text
|
96
|
+
end
|
97
|
+
b.use :input, class: 'form-check-input', error_class: 'is-invalid', valid_class: 'is-valid'
|
98
|
+
b.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback d-block' }
|
99
|
+
b.use :hint, wrap_with: { tag: 'small', class: 'form-text text-muted' }
|
100
|
+
end
|
101
|
+
|
102
|
+
# vertical file input
|
103
|
+
config.wrappers :vertical_file, tag: 'div', class: 'form-group', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
104
|
+
b.use :html5
|
105
|
+
b.use :placeholder
|
106
|
+
b.optional :maxlength
|
107
|
+
b.optional :minlength
|
108
|
+
b.optional :readonly
|
109
|
+
b.use :label
|
110
|
+
b.use :input, class: 'form-control-file', error_class: 'is-invalid', valid_class: 'is-valid'
|
111
|
+
b.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback d-block' }
|
112
|
+
b.use :hint, wrap_with: { tag: 'small', class: 'form-text text-muted' }
|
113
|
+
end
|
114
|
+
|
115
|
+
# vertical multi select
|
116
|
+
config.wrappers :vertical_multi_select, tag: 'div', class: 'form-group', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
117
|
+
b.use :html5
|
118
|
+
b.optional :readonly
|
119
|
+
b.use :label, class: 'form-control-label'
|
120
|
+
b.wrapper tag: 'div', class: 'd-flex flex-row justify-content-between align-items-center' do |ba|
|
121
|
+
ba.use :input, class: 'form-control mx-1', error_class: 'is-invalid', valid_class: 'is-valid'
|
122
|
+
end
|
123
|
+
b.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback d-block' }
|
124
|
+
b.use :hint, wrap_with: { tag: 'small', class: 'form-text text-muted' }
|
125
|
+
end
|
126
|
+
|
127
|
+
# vertical range input
|
128
|
+
config.wrappers :vertical_range, tag: 'div', class: 'form-group', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
129
|
+
b.use :html5
|
130
|
+
b.use :placeholder
|
131
|
+
b.optional :readonly
|
132
|
+
b.optional :step
|
133
|
+
b.use :label
|
134
|
+
b.use :input, class: 'form-control-range', error_class: 'is-invalid', valid_class: 'is-valid'
|
135
|
+
b.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback d-block' }
|
136
|
+
b.use :hint, wrap_with: { tag: 'small', class: 'form-text text-muted' }
|
137
|
+
end
|
138
|
+
|
139
|
+
|
140
|
+
# horizontal forms
|
141
|
+
#
|
142
|
+
# horizontal default_wrapper
|
143
|
+
config.wrappers :horizontal_form, tag: 'div', class: 'form-group row', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
144
|
+
b.use :html5
|
145
|
+
b.use :placeholder
|
146
|
+
b.optional :maxlength
|
147
|
+
b.optional :minlength
|
148
|
+
b.optional :pattern
|
149
|
+
b.optional :min_max
|
150
|
+
b.optional :readonly
|
151
|
+
b.use :label, class: 'col-sm-3 col-form-label'
|
152
|
+
b.wrapper :grid_wrapper, tag: 'div', class: 'col-sm-9' do |ba|
|
153
|
+
ba.use :input, class: 'form-control', error_class: 'is-invalid', valid_class: 'is-valid'
|
154
|
+
ba.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback' }
|
155
|
+
ba.use :hint, wrap_with: { tag: 'small', class: 'form-text text-muted' }
|
156
|
+
end
|
157
|
+
end
|
158
|
+
|
159
|
+
# horizontal input for boolean
|
160
|
+
config.wrappers :horizontal_boolean, tag: 'div', class: 'form-group row', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
161
|
+
b.use :html5
|
162
|
+
b.optional :readonly
|
163
|
+
b.wrapper tag: 'label', class: 'col-sm-3' do |ba|
|
164
|
+
ba.use :label_text
|
165
|
+
end
|
166
|
+
b.wrapper :grid_wrapper, tag: 'div', class: 'col-sm-9' do |wr|
|
167
|
+
wr.wrapper :form_check_wrapper, tag: 'div', class: 'form-check' do |bb|
|
168
|
+
bb.use :input, class: 'form-check-input', error_class: 'is-invalid', valid_class: 'is-valid'
|
169
|
+
bb.use :label, class: 'form-check-label'
|
170
|
+
bb.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback d-block' }
|
171
|
+
bb.use :hint, wrap_with: { tag: 'small', class: 'form-text text-muted' }
|
172
|
+
end
|
173
|
+
end
|
174
|
+
end
|
175
|
+
|
176
|
+
# horizontal input for radio buttons and check boxes
|
177
|
+
config.wrappers :horizontal_collection, item_wrapper_class: 'form-check', tag: 'div', class: 'form-group row', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
178
|
+
b.use :html5
|
179
|
+
b.optional :readonly
|
180
|
+
b.use :label, class: 'col-sm-3 form-control-label'
|
181
|
+
b.wrapper :grid_wrapper, tag: 'div', class: 'col-sm-9' do |ba|
|
182
|
+
ba.use :input, class: 'form-check-input', error_class: 'is-invalid', valid_class: 'is-valid'
|
183
|
+
ba.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback d-block' }
|
184
|
+
ba.use :hint, wrap_with: { tag: 'small', class: 'form-text text-muted' }
|
185
|
+
end
|
186
|
+
end
|
187
|
+
|
188
|
+
# horizontal input for inline radio buttons and check boxes
|
189
|
+
config.wrappers :horizontal_collection_inline, item_wrapper_class: 'form-check form-check-inline', tag: 'div', class: 'form-group row', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
190
|
+
b.use :html5
|
191
|
+
b.optional :readonly
|
192
|
+
b.use :label, class: 'col-sm-3 form-control-label'
|
193
|
+
b.wrapper :grid_wrapper, tag: 'div', class: 'col-sm-9' do |ba|
|
194
|
+
ba.use :input, class: 'form-check-input', error_class: 'is-invalid', valid_class: 'is-valid'
|
195
|
+
ba.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback d-block' }
|
196
|
+
ba.use :hint, wrap_with: { tag: 'small', class: 'form-text text-muted' }
|
197
|
+
end
|
198
|
+
end
|
199
|
+
|
200
|
+
# horizontal file input
|
201
|
+
config.wrappers :horizontal_file, tag: 'div', class: 'form-group row', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
202
|
+
b.use :html5
|
203
|
+
b.use :placeholder
|
204
|
+
b.optional :maxlength
|
205
|
+
b.optional :minlength
|
206
|
+
b.optional :readonly
|
207
|
+
b.use :label, class: 'col-sm-3 form-control-label'
|
208
|
+
b.wrapper :grid_wrapper, tag: 'div', class: 'col-sm-9' do |ba|
|
209
|
+
ba.use :input, error_class: 'is-invalid', valid_class: 'is-valid'
|
210
|
+
ba.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback d-block' }
|
211
|
+
ba.use :hint, wrap_with: { tag: 'small', class: 'form-text text-muted' }
|
212
|
+
end
|
213
|
+
end
|
214
|
+
|
215
|
+
# horizontal multi select
|
216
|
+
config.wrappers :horizontal_multi_select, tag: 'div', class: 'form-group row', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
217
|
+
b.use :html5
|
218
|
+
b.optional :readonly
|
219
|
+
b.use :label, class: 'col-sm-3 control-label'
|
220
|
+
b.wrapper :grid_wrapper, tag: 'div', class: 'col-sm-9' do |ba|
|
221
|
+
ba.wrapper tag: 'div', class: 'd-flex flex-row justify-content-between align-items-center' do |bb|
|
222
|
+
bb.use :input, class: 'form-control mx-1', error_class: 'is-invalid', valid_class: 'is-valid'
|
223
|
+
end
|
224
|
+
ba.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback d-block' }
|
225
|
+
ba.use :hint, wrap_with: { tag: 'small', class: 'form-text text-muted' }
|
226
|
+
end
|
227
|
+
end
|
228
|
+
|
229
|
+
# horizontal range input
|
230
|
+
config.wrappers :horizontal_range, tag: 'div', class: 'form-group row', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
231
|
+
b.use :html5
|
232
|
+
b.use :placeholder
|
233
|
+
b.optional :readonly
|
234
|
+
b.optional :step
|
235
|
+
b.use :label, class: 'col-sm-3 form-control-label'
|
236
|
+
b.wrapper :grid_wrapper, tag: 'div', class: 'col-sm-9' do |ba|
|
237
|
+
ba.use :input, class: 'form-control-range', error_class: 'is-invalid', valid_class: 'is-valid'
|
238
|
+
ba.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback d-block' }
|
239
|
+
ba.use :hint, wrap_with: { tag: 'small', class: 'form-text text-muted' }
|
240
|
+
end
|
241
|
+
end
|
242
|
+
|
243
|
+
|
244
|
+
# inline forms
|
245
|
+
#
|
246
|
+
# inline default_wrapper
|
247
|
+
config.wrappers :inline_form, tag: 'span', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
248
|
+
b.use :html5
|
249
|
+
b.use :placeholder
|
250
|
+
b.optional :maxlength
|
251
|
+
b.optional :minlength
|
252
|
+
b.optional :pattern
|
253
|
+
b.optional :min_max
|
254
|
+
b.optional :readonly
|
255
|
+
b.use :label, class: 'sr-only'
|
256
|
+
|
257
|
+
b.use :input, class: 'form-control', error_class: 'is-invalid', valid_class: 'is-valid'
|
258
|
+
b.use :error, wrap_with: { tag: 'div', class: 'invalid-feedback' }
|
259
|
+
b.optional :hint, wrap_with: { tag: 'small', class: 'form-text text-muted' }
|
260
|
+
end
|
261
|
+
|
262
|
+
# inline input for boolean
|
263
|
+
config.wrappers :inline_boolean, tag: 'span', class: 'form-check flex-wrap justify-content-start mr-sm-2', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
264
|
+
b.use :html5
|
265
|
+
b.optional :readonly
|
266
|
+
b.use :input, class: 'form-check-input', error_class: 'is-invalid', valid_class: 'is-valid'
|
267
|
+
b.use :label, class: 'form-check-label'
|
268
|
+
b.use :error, wrap_with: { tag: 'div', class: 'invalid-feedback' }
|
269
|
+
b.optional :hint, wrap_with: { tag: 'small', class: 'form-text text-muted' }
|
270
|
+
end
|
271
|
+
|
272
|
+
|
273
|
+
# bootstrap custom forms
|
274
|
+
#
|
275
|
+
# custom input for boolean
|
276
|
+
config.wrappers :custom_boolean, tag: 'fieldset', class: 'form-group', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
277
|
+
b.use :html5
|
278
|
+
b.optional :readonly
|
279
|
+
b.wrapper :form_check_wrapper, tag: 'div', class: 'custom-control custom-checkbox' do |bb|
|
280
|
+
bb.use :input, class: 'custom-control-input', error_class: 'is-invalid', valid_class: 'is-valid'
|
281
|
+
bb.use :label, class: 'custom-control-label'
|
282
|
+
bb.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback' }
|
283
|
+
bb.use :hint, wrap_with: { tag: 'small', class: 'form-text text-muted' }
|
284
|
+
end
|
285
|
+
end
|
286
|
+
|
287
|
+
config.wrappers :custom_boolean_switch, tag: 'fieldset', class: 'form-group', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
288
|
+
b.use :html5
|
289
|
+
b.optional :readonly
|
290
|
+
b.wrapper :form_check_wrapper, tag: 'div', class: 'custom-control custom-checkbox-switch' do |bb|
|
291
|
+
bb.use :input, class: 'custom-control-input', error_class: 'is-invalid', valid_class: 'is-valid'
|
292
|
+
bb.use :label, class: 'custom-control-label'
|
293
|
+
bb.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback' }
|
294
|
+
bb.use :hint, wrap_with: { tag: 'small', class: 'form-text text-muted' }
|
295
|
+
end
|
296
|
+
end
|
297
|
+
|
298
|
+
# custom input for radio buttons and check boxes
|
299
|
+
config.wrappers :custom_collection, item_wrapper_class: 'custom-control', tag: 'fieldset', class: 'form-group', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
300
|
+
b.use :html5
|
301
|
+
b.optional :readonly
|
302
|
+
b.wrapper :legend_tag, tag: 'legend', class: 'col-form-label pt-0' do |ba|
|
303
|
+
ba.use :label_text
|
304
|
+
end
|
305
|
+
b.use :input, class: 'custom-control-input', error_class: 'is-invalid', valid_class: 'is-valid'
|
306
|
+
b.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback d-block' }
|
307
|
+
b.use :hint, wrap_with: { tag: 'small', class: 'form-text text-muted' }
|
308
|
+
end
|
309
|
+
|
310
|
+
# custom input for inline radio buttons and check boxes
|
311
|
+
config.wrappers :custom_collection_inline, item_wrapper_class: 'custom-control custom-control-inline', tag: 'fieldset', class: 'form-group', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
312
|
+
b.use :html5
|
313
|
+
b.optional :readonly
|
314
|
+
b.wrapper :legend_tag, tag: 'legend', class: 'col-form-label pt-0' do |ba|
|
315
|
+
ba.use :label_text
|
316
|
+
end
|
317
|
+
b.use :input, class: 'custom-control-input', error_class: 'is-invalid', valid_class: 'is-valid'
|
318
|
+
b.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback d-block' }
|
319
|
+
b.use :hint, wrap_with: { tag: 'small', class: 'form-text text-muted' }
|
320
|
+
end
|
321
|
+
|
322
|
+
# custom file input
|
323
|
+
config.wrappers :custom_file, tag: 'div', class: 'form-group', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
324
|
+
b.use :html5
|
325
|
+
b.use :placeholder
|
326
|
+
b.optional :maxlength
|
327
|
+
b.optional :minlength
|
328
|
+
b.optional :readonly
|
329
|
+
b.use :label, class: 'form-control-label'
|
330
|
+
b.wrapper :custom_file_wrapper, tag: 'div', class: 'custom-file' do |ba|
|
331
|
+
ba.use :input, class: 'custom-file-input', error_class: 'is-invalid', valid_class: 'is-valid'
|
332
|
+
ba.use :label, class: 'custom-file-label'
|
333
|
+
ba.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback' }
|
334
|
+
end
|
335
|
+
b.use :hint, wrap_with: { tag: 'small', class: 'form-text text-muted' }
|
336
|
+
end
|
337
|
+
|
338
|
+
# custom multi select
|
339
|
+
config.wrappers :custom_multi_select, tag: 'div', class: 'form-group', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
340
|
+
b.use :html5
|
341
|
+
b.optional :readonly
|
342
|
+
b.use :label, class: 'form-control-label'
|
343
|
+
b.wrapper tag: 'div', class: 'd-flex flex-row justify-content-between align-items-center' do |ba|
|
344
|
+
ba.use :input, class: 'custom-select mx-1', error_class: 'is-invalid', valid_class: 'is-valid'
|
345
|
+
end
|
346
|
+
b.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback d-block' }
|
347
|
+
b.use :hint, wrap_with: { tag: 'small', class: 'form-text text-muted' }
|
348
|
+
end
|
349
|
+
|
350
|
+
# custom range input
|
351
|
+
config.wrappers :custom_range, tag: 'div', class: 'form-group', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
352
|
+
b.use :html5
|
353
|
+
b.use :placeholder
|
354
|
+
b.optional :readonly
|
355
|
+
b.optional :step
|
356
|
+
b.use :label, class: 'form-control-label'
|
357
|
+
b.use :input, class: 'custom-range', error_class: 'is-invalid', valid_class: 'is-valid'
|
358
|
+
b.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback d-block' }
|
359
|
+
b.use :hint, wrap_with: { tag: 'small', class: 'form-text text-muted' }
|
360
|
+
end
|
361
|
+
|
362
|
+
|
363
|
+
# Input Group - custom component
|
364
|
+
# see example app and config at https://github.com/rafaelfranca/simple_form-bootstrap
|
365
|
+
# config.wrappers :input_group, tag: 'div', class: 'form-group', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
366
|
+
# b.use :html5
|
367
|
+
# b.use :placeholder
|
368
|
+
# b.optional :maxlength
|
369
|
+
# b.optional :minlength
|
370
|
+
# b.optional :pattern
|
371
|
+
# b.optional :min_max
|
372
|
+
# b.optional :readonly
|
373
|
+
# b.use :label, class: 'form-control-label'
|
374
|
+
# b.wrapper :input_group_tag, tag: 'div', class: 'input-group' do |ba|
|
375
|
+
# ba.optional :prepend
|
376
|
+
# ba.use :input, class: 'form-control', error_class: 'is-invalid', valid_class: 'is-valid'
|
377
|
+
# ba.optional :append
|
378
|
+
# end
|
379
|
+
# b.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback d-block' }
|
380
|
+
# b.use :hint, wrap_with: { tag: 'small', class: 'form-text text-muted' }
|
381
|
+
# end
|
382
|
+
|
383
|
+
|
384
|
+
# Floating Labels form
|
385
|
+
#
|
386
|
+
# floating labels default_wrapper
|
387
|
+
config.wrappers :floating_labels_form, tag: 'div', class: 'form-label-group', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
388
|
+
b.use :html5
|
389
|
+
b.use :placeholder
|
390
|
+
b.optional :maxlength
|
391
|
+
b.optional :minlength
|
392
|
+
b.optional :pattern
|
393
|
+
b.optional :min_max
|
394
|
+
b.optional :readonly
|
395
|
+
b.use :input, class: 'form-control', error_class: 'is-invalid', valid_class: 'is-valid'
|
396
|
+
b.use :label, class: 'form-control-label'
|
397
|
+
b.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback' }
|
398
|
+
b.use :hint, wrap_with: { tag: 'small', class: 'form-text text-muted' }
|
399
|
+
end
|
400
|
+
|
401
|
+
# custom multi select
|
402
|
+
config.wrappers :floating_labels_select, tag: 'div', class: 'form-label-group', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
403
|
+
b.use :html5
|
404
|
+
b.optional :readonly
|
405
|
+
b.use :input, class: 'custom-select custom-select-lg', error_class: 'is-invalid', valid_class: 'is-valid'
|
406
|
+
b.use :label, class: 'form-control-label'
|
407
|
+
b.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback' }
|
408
|
+
b.use :hint, wrap_with: { tag: 'small', class: 'form-text text-muted' }
|
409
|
+
end
|
410
|
+
|
411
|
+
|
412
|
+
# The default wrapper to be used by the FormBuilder.
|
413
|
+
config.default_wrapper = :vertical_form
|
414
|
+
|
415
|
+
# Custom wrappers for input types. This should be a hash containing an input
|
416
|
+
# type as key and the wrapper that will be used for all inputs with specified type.
|
417
|
+
config.wrapper_mappings = {
|
418
|
+
boolean: :vertical_boolean,
|
419
|
+
check_boxes: :vertical_collection,
|
420
|
+
date: :vertical_multi_select,
|
421
|
+
datetime: :vertical_multi_select,
|
422
|
+
file: :vertical_file,
|
423
|
+
radio_buttons: :vertical_collection,
|
424
|
+
range: :vertical_range,
|
425
|
+
time: :vertical_multi_select
|
426
|
+
}
|
427
|
+
|
428
|
+
# enable custom form wrappers
|
429
|
+
# config.wrapper_mappings = {
|
430
|
+
# boolean: :custom_boolean,
|
431
|
+
# check_boxes: :custom_collection,
|
432
|
+
# date: :custom_multi_select,
|
433
|
+
# datetime: :custom_multi_select,
|
434
|
+
# file: :custom_file,
|
435
|
+
# radio_buttons: :custom_collection,
|
436
|
+
# range: :custom_range,
|
437
|
+
# time: :custom_multi_select
|
438
|
+
# }
|
439
|
+
end
|