optimacms_options 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +20 -20
- data/Rakefile +37 -37
- data/app/assets/javascripts/optimacms_options/application.js +13 -13
- data/app/assets/stylesheets/optimacms_options/application.css +15 -15
- data/app/controllers/optimacms_options/admin/options_controller.rb +161 -161
- data/app/helpers/optimacms_options/application_helper.rb +4 -4
- data/app/helpers/optimacms_options/filter_helper.rb +17 -17
- data/app/views/layouts/optimacms_options/application.html.erb +14 -14
- data/app/views/optimacms_options/admin/options/_form.html.haml +16 -16
- data/app/views/optimacms_options/admin/options/edit.html.haml +2 -2
- data/app/views/optimacms_options/admin/options/index.html.haml +41 -41
- data/app/views/optimacms_options/admin/options/new.html.haml +2 -2
- data/config/routes.rb +13 -16
- data/db/migrate/20160125141700_optimacms_options.rb +16 -16
- data/lib/optimacms/admin_menu/admin_menu.rb +22 -22
- data/lib/optimacms_options.rb +6 -6
- data/lib/optimacms_options/engine.rb +38 -38
- data/lib/optimacms_options/version.rb +3 -3
- data/lib/tasks/optimacms_options_tasks.rake +4 -4
- data/spec/dummy/README.rdoc +28 -28
- data/spec/dummy/Rakefile +6 -6
- data/spec/dummy/app/assets/javascripts/application.js +13 -13
- data/spec/dummy/app/assets/stylesheets/application.css +15 -15
- data/spec/dummy/app/controllers/application_controller.rb +5 -5
- data/spec/dummy/app/controllers/debug_controller.rb +38 -38
- data/spec/dummy/app/helpers/application_helper.rb +2 -2
- data/spec/dummy/app/models/concerns/option_concern.rb +11 -11
- data/spec/dummy/app/views/layouts/application.html.erb +14 -14
- data/spec/dummy/bin/bundle +3 -3
- data/spec/dummy/bin/rails +4 -4
- data/spec/dummy/bin/rake +4 -4
- data/spec/dummy/bin/setup +29 -29
- data/spec/dummy/config.ru +4 -4
- data/spec/dummy/config/application.rb +36 -36
- data/spec/dummy/config/boot.rb +5 -5
- data/spec/dummy/config/database.yml +43 -43
- data/spec/dummy/config/environment.rb +5 -5
- data/spec/dummy/config/environments/development.rb +41 -41
- data/spec/dummy/config/environments/production.rb +79 -79
- data/spec/dummy/config/environments/test.rb +42 -42
- data/spec/dummy/config/initializers/assets.rb +11 -11
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -7
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -3
- data/spec/dummy/config/initializers/devise.rb +265 -265
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -4
- data/spec/dummy/config/initializers/inflections.rb +16 -16
- data/spec/dummy/config/initializers/kaminari_config.rb +10 -10
- data/spec/dummy/config/initializers/mime_types.rb +4 -4
- data/spec/dummy/config/initializers/optimacms.rb +3 -0
- data/spec/dummy/config/initializers/redis.rb +1 -1
- data/spec/dummy/config/initializers/session_store.rb +3 -3
- data/spec/dummy/config/initializers/simple_form.rb +166 -166
- data/spec/dummy/config/initializers/simple_form_bootstrap.rb +136 -136
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -14
- data/spec/dummy/config/locales/devise.en.yml +62 -62
- data/spec/dummy/config/locales/en.yml +23 -23
- data/spec/dummy/config/routes.rb +18 -18
- data/spec/dummy/config/secrets.yml +25 -25
- data/spec/dummy/db/schema.rb +370 -370
- data/spec/dummy/lib/optimacms/admin_menu/admin_menu.rb +22 -22
- data/spec/dummy/log/development.log +0 -25351
- data/spec/dummy/public/404.html +67 -67
- data/spec/dummy/public/422.html +67 -67
- data/spec/dummy/public/500.html +66 -66
- data/spec/dummy/tmp/pids/server.pid +1 -1
- metadata +46 -324
- data/spec/dummy/tmp/cache/assets/development/sass/0f12a102a4bba8b53f7db8d616f88ab567fc0720/noskin.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_alerts.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_background-variant.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_border-radius.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_buttons.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_center-block.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_clearfix.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_forms.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_gradients.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_grid-framework.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_grid.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_hide-text.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_image.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_labels.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_list-group.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_nav-divider.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_nav-vertical-align.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_opacity.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_pagination.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_panels.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_progress-bar.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_reset-filter.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_resize.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_responsive-visibility.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_size.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_tab-focus.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_table-row.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_text-emphasis.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_text-overflow.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_vendor-prefixes.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/33f0f974eb769f0d4055060ebcabbf726b288716/admin.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/33f0f974eb769f0d4055060ebcabbf726b288716/admin_tpl.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/33f0f974eb769f0d4055060ebcabbf726b288716/bootstrap_and_overrides.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/33f0f974eb769f0d4055060ebcabbf726b288716/bootstrap_custom.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/33f0f974eb769f0d4055060ebcabbf726b288716/bootstrap_variables.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/33f0f974eb769f0d4055060ebcabbf726b288716/colors.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/33f0f974eb769f0d4055060ebcabbf726b288716/tpl.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/52b23612dd848efe2ce31660b0d0dcbe37548061/noskin.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/6c0ced6e44f3225624dc509e06df3341be8ba4b1/font-awesome.css.erbc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_alerts.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_badges.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_breadcrumbs.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_button-groups.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_buttons.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_carousel.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_close.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_code.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_component-animations.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_dropdowns.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_forms.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_glyphicons.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_grid.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_input-groups.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_jumbotron.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_labels.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_list-group.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_media.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_mixins.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_modals.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_navbar.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_navs.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_normalize.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_pager.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_pagination.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_panels.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_popovers.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_print.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_progress-bars.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_responsive-embed.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_responsive-utilities.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_scaffolding.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_tables.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_thumbnails.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_tooltip.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_type.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_utilities.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_variables.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_wells.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/fb3dad0782c644b76f2da8b4421b37fd8f2d4525/admin.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/fb3dad0782c644b76f2da8b4421b37fd8f2d4525/admin_tpl.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/fb3dad0782c644b76f2da8b4421b37fd8f2d4525/bootstrap_and_overrides.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/fb3dad0782c644b76f2da8b4421b37fd8f2d4525/bootstrap_custom.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/fb3dad0782c644b76f2da8b4421b37fd8f2d4525/bootstrap_variables.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/fb3dad0782c644b76f2da8b4421b37fd8f2d4525/colors.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/fb3dad0782c644b76f2da8b4421b37fd8f2d4525/tpl.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/0bf0600f6998e835549356c93ed88a44 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/0ca733d61d616fcb5252b090f4ac46b2 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/0e26c0deef0461318bea48023a51dad2 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/153a6f84a946f4691146ab70fbb7468c +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/19017017a4b6618592356de2006c3ddc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/28f6997fb7bde29ca790ef41c455167f +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/38143381b3424562ebae21c73cea3b09 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/39e4dc69d3e009f933e32de8dc9b05bf +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/3c62e52b2b7812cd045e255b1f85cc7f +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/3c8c0e19b8ea320b3a18b69762d99773 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/3ff3b20807100b014315d9e3ebbd3bbd +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/4ab0aecdac7c60de123d5a17dcba3751 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/584227ac29a4981fa44f78cc0e91e6ab +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/5cfe8fa37eeec7d44b093550d0b3e14f +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/69c661f38eadf38f75ca9b2b83d71cb3 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/6b82f713cf05c62df2b688e97cb162eb +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/7358083ee9425c6ccf3b5a266ff72f96 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/73eaf8217025a9327591c3bdcdcc056e +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/7415648cb818482fe5f1ad10021d0586 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/756f245b2a7516f484b40928b0e84452 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/75f70b2a440425dc9bf19f6edb18fea7 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/78fc4ca638e7834ef879b249ea5599d9 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/80df25333a9293942f2f1a03d04d3662 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/81e03d37c88eb087889e2ad9096c75d8 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/86e9cfe4bb740cd9539f29aa7d6e77f3 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/87b5d678a139c779af82f50975d19558 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/8844c67dfba4a3ba3059a3bf8ecad189 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/8ddf2da188373f0124d9ed387d7d1c40 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/92b7eae87958c76aa1528f8e4e54bd51 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/9520ce25409d2121e4f8836417bfdf0c +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/985159daf63d70b8e7f7c8f48360aee8 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/99211371c628025a64c31560c4672db6 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/9f0bebfda7d812e4f457431f1cce4595 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/a1ad3be0833a3742d578f9837b1ce9ac +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/a29f779c454e6ba62650232bab4f79ec +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/a2f9988837a830f9477d9820acfe5ca5 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/a5c4b558d2a51cb4220e19d7cc3ca337 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/a7d105a6cfcd36d22ec2078561487f47 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/abdf4874f88017012c208c93ac8ba414 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/b160e0530bb9c2dd78e0d9442c24a08a +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/b8c05e88a3e38ff7b901e3c80d869b2f +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/c120acf80a2619bf8164e02e6f960764 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/c24d77c1f7e73d8f31a63f95cdc569c9 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/c726d2736d2c6c9279018d410300f893 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/c78c6d66171101de8e064c83d0a62036 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/c999ee7ff7abf6db93cf07d4bc777871 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/cf36742cf19dff45417a76457df7e71b +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/d2482ba19c90b1649810826ac09ce9fc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/e45815a37baece5f0ecd8903de564835 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/e601c1145f5c414d64b60dd40683ec9d +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/ec4cb426a924f6d7cb5a564fc6075860 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/f1995cbd97aba518d78c44d266cc4165 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/fc012c29aa5b01fe548bebca6d7523a9 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/fef4237dac77f36232df28412e9dcc13 +0 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# Configure sensitive parameters which will be filtered from the log file.
|
4
|
-
Rails.application.config.filter_parameters += [:password]
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Configure sensitive parameters which will be filtered from the log file.
|
4
|
+
Rails.application.config.filter_parameters += [:password]
|
@@ -1,16 +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
|
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
|
@@ -1,10 +1,10 @@
|
|
1
|
-
Kaminari.configure do |config|
|
2
|
-
# config.default_per_page = 25
|
3
|
-
# config.max_per_page = nil
|
4
|
-
# config.window = 4
|
5
|
-
# config.outer_window = 0
|
6
|
-
# config.left = 0
|
7
|
-
# config.right = 0
|
8
|
-
#config.page_method_name = :pg
|
9
|
-
config.param_name = :pg
|
10
|
-
end
|
1
|
+
Kaminari.configure do |config|
|
2
|
+
# config.default_per_page = 25
|
3
|
+
# config.max_per_page = nil
|
4
|
+
# config.window = 4
|
5
|
+
# config.outer_window = 0
|
6
|
+
# config.left = 0
|
7
|
+
# config.right = 0
|
8
|
+
#config.page_method_name = :pg
|
9
|
+
config.param_name = :pg
|
10
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# Add new mime types for use in respond_to blocks:
|
4
|
-
# Mime::Type.register "text/richtext", :rtf
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new mime types for use in respond_to blocks:
|
4
|
+
# Mime::Type.register "text/richtext", :rtf
|
@@ -1 +1 @@
|
|
1
|
-
#$redis = Redis.new(:host => Rails.configuration.gex_config[:redis_host], :port => 6379)
|
1
|
+
#$redis = Redis.new(:host => Rails.configuration.gex_config[:redis_host], :port => 6379)
|
@@ -1,3 +1,3 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
Rails.application.config.session_store :cookie_store, key: '_dummy_session'
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
Rails.application.config.session_store :cookie_store, key: '_dummy_session'
|
@@ -1,166 +1,166 @@
|
|
1
|
-
# Use this setup block to configure all options available in SimpleForm.
|
2
|
-
SimpleForm.setup do |config|
|
3
|
-
# Wrappers are used by the form builder to generate a
|
4
|
-
# complete input. You can remove any component from the
|
5
|
-
# wrapper, change the order or even add your own to the
|
6
|
-
# stack. The options given below are used to wrap the
|
7
|
-
# whole input.
|
8
|
-
config.wrappers :default, class: :input,
|
9
|
-
hint_class: :field_with_hint, error_class: :field_with_errors do |b|
|
10
|
-
## Extensions enabled by default
|
11
|
-
# Any of these extensions can be disabled for a
|
12
|
-
# given input by passing: `f.input EXTENSION_NAME => false`.
|
13
|
-
# You can make any of these extensions optional by
|
14
|
-
# renaming `b.use` to `b.optional`.
|
15
|
-
|
16
|
-
# Determines whether to use HTML5 (:email, :url, ...)
|
17
|
-
# and required attributes
|
18
|
-
b.use :html5
|
19
|
-
|
20
|
-
# Calculates placeholders automatically from I18n
|
21
|
-
# You can also pass a string as f.input placeholder: "Placeholder"
|
22
|
-
b.use :placeholder
|
23
|
-
|
24
|
-
## Optional extensions
|
25
|
-
# They are disabled unless you pass `f.input EXTENSION_NAME => true`
|
26
|
-
# to the input. If so, they will retrieve the values from the model
|
27
|
-
# if any exists. If you want to enable any of those
|
28
|
-
# extensions by default, you can change `b.optional` to `b.use`.
|
29
|
-
|
30
|
-
# Calculates maxlength from length validations for string inputs
|
31
|
-
b.optional :maxlength
|
32
|
-
|
33
|
-
# Calculates pattern from format validations for string inputs
|
34
|
-
b.optional :pattern
|
35
|
-
|
36
|
-
# Calculates min and max from length validations for numeric inputs
|
37
|
-
b.optional :min_max
|
38
|
-
|
39
|
-
# Calculates readonly automatically from readonly attributes
|
40
|
-
b.optional :readonly
|
41
|
-
|
42
|
-
## Inputs
|
43
|
-
b.use :label_input
|
44
|
-
b.use :hint, wrap_with: { tag: :span, class: :hint }
|
45
|
-
b.use :error, wrap_with: { tag: :span, class: :error }
|
46
|
-
|
47
|
-
## full_messages_for
|
48
|
-
# If you want to display the full error message for the attribute, you can
|
49
|
-
# use the component :full_error, like:
|
50
|
-
#
|
51
|
-
# b.use :full_error, wrap_with: { tag: :span, class: :error }
|
52
|
-
end
|
53
|
-
|
54
|
-
# The default wrapper to be used by the FormBuilder.
|
55
|
-
config.default_wrapper = :default
|
56
|
-
|
57
|
-
# Define the way to render check boxes / radio buttons with labels.
|
58
|
-
# Defaults to :nested for bootstrap config.
|
59
|
-
# inline: input + label
|
60
|
-
# nested: label > input
|
61
|
-
config.boolean_style = :nested
|
62
|
-
|
63
|
-
# Default class for buttons
|
64
|
-
config.button_class = 'btn'
|
65
|
-
|
66
|
-
# Method used to tidy up errors. Specify any Rails Array method.
|
67
|
-
# :first lists the first message for each field.
|
68
|
-
# Use :to_sentence to list all errors for each field.
|
69
|
-
# config.error_method = :first
|
70
|
-
|
71
|
-
# Default tag used for error notification helper.
|
72
|
-
config.error_notification_tag = :div
|
73
|
-
|
74
|
-
# CSS class to add for error notification helper.
|
75
|
-
config.error_notification_class = 'error_notification'
|
76
|
-
|
77
|
-
# ID to add for error notification helper.
|
78
|
-
# config.error_notification_id = nil
|
79
|
-
|
80
|
-
# Series of attempts to detect a default label method for collection.
|
81
|
-
# config.collection_label_methods = [ :to_label, :name, :title, :to_s ]
|
82
|
-
|
83
|
-
# Series of attempts to detect a default value method for collection.
|
84
|
-
# config.collection_value_methods = [ :id, :to_s ]
|
85
|
-
|
86
|
-
# You can wrap a collection of radio/check boxes in a pre-defined tag, defaulting to none.
|
87
|
-
# config.collection_wrapper_tag = nil
|
88
|
-
|
89
|
-
# You can define the class to use on all collection wrappers. Defaulting to none.
|
90
|
-
# config.collection_wrapper_class = nil
|
91
|
-
|
92
|
-
# You can wrap each item in a collection of radio/check boxes with a tag,
|
93
|
-
# defaulting to :span. Please note that when using :boolean_style = :nested,
|
94
|
-
# SimpleForm will force this option to be a label.
|
95
|
-
# config.item_wrapper_tag = :span
|
96
|
-
|
97
|
-
# You can define a class to use in all item wrappers. Defaulting to none.
|
98
|
-
# config.item_wrapper_class = nil
|
99
|
-
|
100
|
-
# How the label text should be generated altogether with the required text.
|
101
|
-
# config.label_text = lambda { |label, required, explicit_label| "#{required} #{label}" }
|
102
|
-
|
103
|
-
# You can define the class to use on all labels. Default is nil.
|
104
|
-
# config.label_class = nil
|
105
|
-
|
106
|
-
# You can define the default class to be used on forms. Can be overriden
|
107
|
-
# with `html: { :class }`. Defaulting to none.
|
108
|
-
# config.default_form_class = nil
|
109
|
-
|
110
|
-
# You can define which elements should obtain additional classes
|
111
|
-
# config.generate_additional_classes_for = [:wrapper, :label, :input]
|
112
|
-
|
113
|
-
# Whether attributes are required by default (or not). Default is true.
|
114
|
-
# config.required_by_default = true
|
115
|
-
|
116
|
-
# Tell browsers whether to use the native HTML5 validations (novalidate form option).
|
117
|
-
# These validations are enabled in SimpleForm's internal config but disabled by default
|
118
|
-
# in this configuration, which is recommended due to some quirks from different browsers.
|
119
|
-
# To stop SimpleForm from generating the novalidate option, enabling the HTML5 validations,
|
120
|
-
# change this configuration to true.
|
121
|
-
config.browser_validations = false
|
122
|
-
|
123
|
-
# Collection of methods to detect if a file type was given.
|
124
|
-
# config.file_methods = [ :mounted_as, :file?, :public_filename ]
|
125
|
-
|
126
|
-
# Custom mappings for input types. This should be a hash containing a regexp
|
127
|
-
# to match as key, and the input type that will be used when the field name
|
128
|
-
# matches the regexp as value.
|
129
|
-
# config.input_mappings = { /count/ => :integer }
|
130
|
-
|
131
|
-
# Custom wrappers for input types. This should be a hash containing an input
|
132
|
-
# type as key and the wrapper that will be used for all inputs with specified type.
|
133
|
-
# config.wrapper_mappings = { string: :prepend }
|
134
|
-
|
135
|
-
# Namespaces where SimpleForm should look for custom input classes that
|
136
|
-
# override default inputs.
|
137
|
-
# config.custom_inputs_namespaces << "CustomInputs"
|
138
|
-
|
139
|
-
# Default priority for time_zone inputs.
|
140
|
-
# config.time_zone_priority = nil
|
141
|
-
|
142
|
-
# Default priority for country inputs.
|
143
|
-
# config.country_priority = nil
|
144
|
-
|
145
|
-
# When false, do not use translations for labels.
|
146
|
-
# config.translate_labels = true
|
147
|
-
|
148
|
-
# Automatically discover new inputs in Rails' autoload path.
|
149
|
-
# config.inputs_discovery = true
|
150
|
-
|
151
|
-
# Cache SimpleForm inputs discovery
|
152
|
-
# config.cache_discovery = !Rails.env.development?
|
153
|
-
|
154
|
-
# Default class for inputs
|
155
|
-
# config.input_class = nil
|
156
|
-
|
157
|
-
# Define the default class of the input wrapper of the boolean input.
|
158
|
-
config.boolean_label_class = 'checkbox'
|
159
|
-
|
160
|
-
# Defines if the default input wrapper class should be included in radio
|
161
|
-
# collection wrappers.
|
162
|
-
# config.include_default_input_wrapper_class = true
|
163
|
-
|
164
|
-
# Defines which i18n scope will be used in Simple Form.
|
165
|
-
# config.i18n_scope = 'simple_form'
|
166
|
-
end
|
1
|
+
# Use this setup block to configure all options available in SimpleForm.
|
2
|
+
SimpleForm.setup do |config|
|
3
|
+
# Wrappers are used by the form builder to generate a
|
4
|
+
# complete input. You can remove any component from the
|
5
|
+
# wrapper, change the order or even add your own to the
|
6
|
+
# stack. The options given below are used to wrap the
|
7
|
+
# whole input.
|
8
|
+
config.wrappers :default, class: :input,
|
9
|
+
hint_class: :field_with_hint, error_class: :field_with_errors do |b|
|
10
|
+
## Extensions enabled by default
|
11
|
+
# Any of these extensions can be disabled for a
|
12
|
+
# given input by passing: `f.input EXTENSION_NAME => false`.
|
13
|
+
# You can make any of these extensions optional by
|
14
|
+
# renaming `b.use` to `b.optional`.
|
15
|
+
|
16
|
+
# Determines whether to use HTML5 (:email, :url, ...)
|
17
|
+
# and required attributes
|
18
|
+
b.use :html5
|
19
|
+
|
20
|
+
# Calculates placeholders automatically from I18n
|
21
|
+
# You can also pass a string as f.input placeholder: "Placeholder"
|
22
|
+
b.use :placeholder
|
23
|
+
|
24
|
+
## Optional extensions
|
25
|
+
# They are disabled unless you pass `f.input EXTENSION_NAME => true`
|
26
|
+
# to the input. If so, they will retrieve the values from the model
|
27
|
+
# if any exists. If you want to enable any of those
|
28
|
+
# extensions by default, you can change `b.optional` to `b.use`.
|
29
|
+
|
30
|
+
# Calculates maxlength from length validations for string inputs
|
31
|
+
b.optional :maxlength
|
32
|
+
|
33
|
+
# Calculates pattern from format validations for string inputs
|
34
|
+
b.optional :pattern
|
35
|
+
|
36
|
+
# Calculates min and max from length validations for numeric inputs
|
37
|
+
b.optional :min_max
|
38
|
+
|
39
|
+
# Calculates readonly automatically from readonly attributes
|
40
|
+
b.optional :readonly
|
41
|
+
|
42
|
+
## Inputs
|
43
|
+
b.use :label_input
|
44
|
+
b.use :hint, wrap_with: { tag: :span, class: :hint }
|
45
|
+
b.use :error, wrap_with: { tag: :span, class: :error }
|
46
|
+
|
47
|
+
## full_messages_for
|
48
|
+
# If you want to display the full error message for the attribute, you can
|
49
|
+
# use the component :full_error, like:
|
50
|
+
#
|
51
|
+
# b.use :full_error, wrap_with: { tag: :span, class: :error }
|
52
|
+
end
|
53
|
+
|
54
|
+
# The default wrapper to be used by the FormBuilder.
|
55
|
+
config.default_wrapper = :default
|
56
|
+
|
57
|
+
# Define the way to render check boxes / radio buttons with labels.
|
58
|
+
# Defaults to :nested for bootstrap config.
|
59
|
+
# inline: input + label
|
60
|
+
# nested: label > input
|
61
|
+
config.boolean_style = :nested
|
62
|
+
|
63
|
+
# Default class for buttons
|
64
|
+
config.button_class = 'btn'
|
65
|
+
|
66
|
+
# Method used to tidy up errors. Specify any Rails Array method.
|
67
|
+
# :first lists the first message for each field.
|
68
|
+
# Use :to_sentence to list all errors for each field.
|
69
|
+
# config.error_method = :first
|
70
|
+
|
71
|
+
# Default tag used for error notification helper.
|
72
|
+
config.error_notification_tag = :div
|
73
|
+
|
74
|
+
# CSS class to add for error notification helper.
|
75
|
+
config.error_notification_class = 'error_notification'
|
76
|
+
|
77
|
+
# ID to add for error notification helper.
|
78
|
+
# config.error_notification_id = nil
|
79
|
+
|
80
|
+
# Series of attempts to detect a default label method for collection.
|
81
|
+
# config.collection_label_methods = [ :to_label, :name, :title, :to_s ]
|
82
|
+
|
83
|
+
# Series of attempts to detect a default value method for collection.
|
84
|
+
# config.collection_value_methods = [ :id, :to_s ]
|
85
|
+
|
86
|
+
# You can wrap a collection of radio/check boxes in a pre-defined tag, defaulting to none.
|
87
|
+
# config.collection_wrapper_tag = nil
|
88
|
+
|
89
|
+
# You can define the class to use on all collection wrappers. Defaulting to none.
|
90
|
+
# config.collection_wrapper_class = nil
|
91
|
+
|
92
|
+
# You can wrap each item in a collection of radio/check boxes with a tag,
|
93
|
+
# defaulting to :span. Please note that when using :boolean_style = :nested,
|
94
|
+
# SimpleForm will force this option to be a label.
|
95
|
+
# config.item_wrapper_tag = :span
|
96
|
+
|
97
|
+
# You can define a class to use in all item wrappers. Defaulting to none.
|
98
|
+
# config.item_wrapper_class = nil
|
99
|
+
|
100
|
+
# How the label text should be generated altogether with the required text.
|
101
|
+
# config.label_text = lambda { |label, required, explicit_label| "#{required} #{label}" }
|
102
|
+
|
103
|
+
# You can define the class to use on all labels. Default is nil.
|
104
|
+
# config.label_class = nil
|
105
|
+
|
106
|
+
# You can define the default class to be used on forms. Can be overriden
|
107
|
+
# with `html: { :class }`. Defaulting to none.
|
108
|
+
# config.default_form_class = nil
|
109
|
+
|
110
|
+
# You can define which elements should obtain additional classes
|
111
|
+
# config.generate_additional_classes_for = [:wrapper, :label, :input]
|
112
|
+
|
113
|
+
# Whether attributes are required by default (or not). Default is true.
|
114
|
+
# config.required_by_default = true
|
115
|
+
|
116
|
+
# Tell browsers whether to use the native HTML5 validations (novalidate form option).
|
117
|
+
# These validations are enabled in SimpleForm's internal config but disabled by default
|
118
|
+
# in this configuration, which is recommended due to some quirks from different browsers.
|
119
|
+
# To stop SimpleForm from generating the novalidate option, enabling the HTML5 validations,
|
120
|
+
# change this configuration to true.
|
121
|
+
config.browser_validations = false
|
122
|
+
|
123
|
+
# Collection of methods to detect if a file type was given.
|
124
|
+
# config.file_methods = [ :mounted_as, :file?, :public_filename ]
|
125
|
+
|
126
|
+
# Custom mappings for input types. This should be a hash containing a regexp
|
127
|
+
# to match as key, and the input type that will be used when the field name
|
128
|
+
# matches the regexp as value.
|
129
|
+
# config.input_mappings = { /count/ => :integer }
|
130
|
+
|
131
|
+
# Custom wrappers for input types. This should be a hash containing an input
|
132
|
+
# type as key and the wrapper that will be used for all inputs with specified type.
|
133
|
+
# config.wrapper_mappings = { string: :prepend }
|
134
|
+
|
135
|
+
# Namespaces where SimpleForm should look for custom input classes that
|
136
|
+
# override default inputs.
|
137
|
+
# config.custom_inputs_namespaces << "CustomInputs"
|
138
|
+
|
139
|
+
# Default priority for time_zone inputs.
|
140
|
+
# config.time_zone_priority = nil
|
141
|
+
|
142
|
+
# Default priority for country inputs.
|
143
|
+
# config.country_priority = nil
|
144
|
+
|
145
|
+
# When false, do not use translations for labels.
|
146
|
+
# config.translate_labels = true
|
147
|
+
|
148
|
+
# Automatically discover new inputs in Rails' autoload path.
|
149
|
+
# config.inputs_discovery = true
|
150
|
+
|
151
|
+
# Cache SimpleForm inputs discovery
|
152
|
+
# config.cache_discovery = !Rails.env.development?
|
153
|
+
|
154
|
+
# Default class for inputs
|
155
|
+
# config.input_class = nil
|
156
|
+
|
157
|
+
# Define the default class of the input wrapper of the boolean input.
|
158
|
+
config.boolean_label_class = 'checkbox'
|
159
|
+
|
160
|
+
# Defines if the default input wrapper class should be included in radio
|
161
|
+
# collection wrappers.
|
162
|
+
# config.include_default_input_wrapper_class = true
|
163
|
+
|
164
|
+
# Defines which i18n scope will be used in Simple Form.
|
165
|
+
# config.i18n_scope = 'simple_form'
|
166
|
+
end
|
@@ -1,136 +1,136 @@
|
|
1
|
-
# Use this setup block to configure all options available in SimpleForm.
|
2
|
-
SimpleForm.setup do |config|
|
3
|
-
config.error_notification_class = 'alert alert-danger'
|
4
|
-
config.button_class = 'btn btn-default'
|
5
|
-
config.boolean_label_class = nil
|
6
|
-
|
7
|
-
config.wrappers :vertical_form, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
8
|
-
b.use :html5
|
9
|
-
b.use :placeholder
|
10
|
-
b.optional :maxlength
|
11
|
-
b.optional :pattern
|
12
|
-
b.optional :min_max
|
13
|
-
b.optional :readonly
|
14
|
-
b.use :label, class: 'control-label'
|
15
|
-
|
16
|
-
b.use :input, class: 'form-control'
|
17
|
-
b.use :error, wrap_with: { tag: 'span', class: 'help-block' }
|
18
|
-
b.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
19
|
-
end
|
20
|
-
|
21
|
-
config.wrappers :vertical_file_input, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
22
|
-
b.use :html5
|
23
|
-
b.use :placeholder
|
24
|
-
b.optional :maxlength
|
25
|
-
b.optional :readonly
|
26
|
-
b.use :label, class: 'control-label'
|
27
|
-
|
28
|
-
b.use :input
|
29
|
-
b.use :error, wrap_with: { tag: 'span', class: 'help-block' }
|
30
|
-
b.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
31
|
-
end
|
32
|
-
|
33
|
-
config.wrappers :vertical_boolean, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
34
|
-
b.use :html5
|
35
|
-
b.optional :readonly
|
36
|
-
|
37
|
-
b.wrapper tag: 'div', class: 'checkbox' do |ba|
|
38
|
-
ba.use :label_input
|
39
|
-
end
|
40
|
-
|
41
|
-
b.use :error, wrap_with: { tag: 'span', class: 'help-block' }
|
42
|
-
b.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
43
|
-
end
|
44
|
-
|
45
|
-
config.wrappers :vertical_radio_and_checkboxes, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
46
|
-
b.use :html5
|
47
|
-
b.optional :readonly
|
48
|
-
b.use :label, class: 'control-label'
|
49
|
-
b.use :input
|
50
|
-
b.use :error, wrap_with: { tag: 'span', class: 'help-block' }
|
51
|
-
b.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
52
|
-
end
|
53
|
-
|
54
|
-
config.wrappers :horizontal_form, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
55
|
-
b.use :html5
|
56
|
-
b.use :placeholder
|
57
|
-
b.optional :maxlength
|
58
|
-
b.optional :pattern
|
59
|
-
b.optional :min_max
|
60
|
-
b.optional :readonly
|
61
|
-
b.use :label, class: 'col-sm-3 control-label'
|
62
|
-
|
63
|
-
b.wrapper tag: 'div', class: 'col-sm-9' do |ba|
|
64
|
-
ba.use :input, class: 'form-control'
|
65
|
-
ba.use :error, wrap_with: { tag: 'span', class: 'help-block' }
|
66
|
-
ba.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
67
|
-
end
|
68
|
-
end
|
69
|
-
|
70
|
-
config.wrappers :horizontal_file_input, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
71
|
-
b.use :html5
|
72
|
-
b.use :placeholder
|
73
|
-
b.optional :maxlength
|
74
|
-
b.optional :readonly
|
75
|
-
b.use :label, class: 'col-sm-3 control-label'
|
76
|
-
|
77
|
-
b.wrapper tag: 'div', class: 'col-sm-9' do |ba|
|
78
|
-
ba.use :input
|
79
|
-
ba.use :error, wrap_with: { tag: 'span', class: 'help-block' }
|
80
|
-
ba.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
81
|
-
end
|
82
|
-
end
|
83
|
-
|
84
|
-
config.wrappers :horizontal_boolean, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
85
|
-
b.use :html5
|
86
|
-
b.optional :readonly
|
87
|
-
|
88
|
-
b.wrapper tag: 'div', class: 'col-sm-offset-3 col-sm-9' do |wr|
|
89
|
-
wr.wrapper tag: 'div', class: 'checkbox' do |ba|
|
90
|
-
ba.use :label_input, class: 'col-sm-9'
|
91
|
-
end
|
92
|
-
|
93
|
-
wr.use :error, wrap_with: { tag: 'span', class: 'help-block' }
|
94
|
-
wr.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
95
|
-
end
|
96
|
-
end
|
97
|
-
|
98
|
-
config.wrappers :horizontal_radio_and_checkboxes, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
99
|
-
b.use :html5
|
100
|
-
b.optional :readonly
|
101
|
-
|
102
|
-
b.use :label, class: 'col-sm-3 control-label'
|
103
|
-
|
104
|
-
b.wrapper tag: 'div', class: 'col-sm-9' do |ba|
|
105
|
-
ba.use :input
|
106
|
-
ba.use :error, wrap_with: { tag: 'span', class: 'help-block' }
|
107
|
-
ba.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
108
|
-
end
|
109
|
-
end
|
110
|
-
|
111
|
-
config.wrappers :inline_form, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
112
|
-
b.use :html5
|
113
|
-
b.use :placeholder
|
114
|
-
b.optional :maxlength
|
115
|
-
b.optional :pattern
|
116
|
-
b.optional :min_max
|
117
|
-
b.optional :readonly
|
118
|
-
b.use :label, class: 'sr-only'
|
119
|
-
|
120
|
-
b.use :input, class: 'form-control'
|
121
|
-
b.use :error, wrap_with: { tag: 'span', class: 'help-block' }
|
122
|
-
b.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
123
|
-
end
|
124
|
-
|
125
|
-
# Wrappers for forms and inputs using the Bootstrap toolkit.
|
126
|
-
# Check the Bootstrap docs (http://getbootstrap.com)
|
127
|
-
# to learn about the different styles for forms and inputs,
|
128
|
-
# buttons and other elements.
|
129
|
-
config.default_wrapper = :vertical_form
|
130
|
-
config.wrapper_mappings = {
|
131
|
-
check_boxes: :vertical_radio_and_checkboxes,
|
132
|
-
radio_buttons: :vertical_radio_and_checkboxes,
|
133
|
-
file: :vertical_file_input,
|
134
|
-
boolean: :vertical_boolean,
|
135
|
-
}
|
136
|
-
end
|
1
|
+
# Use this setup block to configure all options available in SimpleForm.
|
2
|
+
SimpleForm.setup do |config|
|
3
|
+
config.error_notification_class = 'alert alert-danger'
|
4
|
+
config.button_class = 'btn btn-default'
|
5
|
+
config.boolean_label_class = nil
|
6
|
+
|
7
|
+
config.wrappers :vertical_form, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
8
|
+
b.use :html5
|
9
|
+
b.use :placeholder
|
10
|
+
b.optional :maxlength
|
11
|
+
b.optional :pattern
|
12
|
+
b.optional :min_max
|
13
|
+
b.optional :readonly
|
14
|
+
b.use :label, class: 'control-label'
|
15
|
+
|
16
|
+
b.use :input, class: 'form-control'
|
17
|
+
b.use :error, wrap_with: { tag: 'span', class: 'help-block' }
|
18
|
+
b.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
19
|
+
end
|
20
|
+
|
21
|
+
config.wrappers :vertical_file_input, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
22
|
+
b.use :html5
|
23
|
+
b.use :placeholder
|
24
|
+
b.optional :maxlength
|
25
|
+
b.optional :readonly
|
26
|
+
b.use :label, class: 'control-label'
|
27
|
+
|
28
|
+
b.use :input
|
29
|
+
b.use :error, wrap_with: { tag: 'span', class: 'help-block' }
|
30
|
+
b.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
31
|
+
end
|
32
|
+
|
33
|
+
config.wrappers :vertical_boolean, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
34
|
+
b.use :html5
|
35
|
+
b.optional :readonly
|
36
|
+
|
37
|
+
b.wrapper tag: 'div', class: 'checkbox' do |ba|
|
38
|
+
ba.use :label_input
|
39
|
+
end
|
40
|
+
|
41
|
+
b.use :error, wrap_with: { tag: 'span', class: 'help-block' }
|
42
|
+
b.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
43
|
+
end
|
44
|
+
|
45
|
+
config.wrappers :vertical_radio_and_checkboxes, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
46
|
+
b.use :html5
|
47
|
+
b.optional :readonly
|
48
|
+
b.use :label, class: 'control-label'
|
49
|
+
b.use :input
|
50
|
+
b.use :error, wrap_with: { tag: 'span', class: 'help-block' }
|
51
|
+
b.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
52
|
+
end
|
53
|
+
|
54
|
+
config.wrappers :horizontal_form, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
55
|
+
b.use :html5
|
56
|
+
b.use :placeholder
|
57
|
+
b.optional :maxlength
|
58
|
+
b.optional :pattern
|
59
|
+
b.optional :min_max
|
60
|
+
b.optional :readonly
|
61
|
+
b.use :label, class: 'col-sm-3 control-label'
|
62
|
+
|
63
|
+
b.wrapper tag: 'div', class: 'col-sm-9' do |ba|
|
64
|
+
ba.use :input, class: 'form-control'
|
65
|
+
ba.use :error, wrap_with: { tag: 'span', class: 'help-block' }
|
66
|
+
ba.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
config.wrappers :horizontal_file_input, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
71
|
+
b.use :html5
|
72
|
+
b.use :placeholder
|
73
|
+
b.optional :maxlength
|
74
|
+
b.optional :readonly
|
75
|
+
b.use :label, class: 'col-sm-3 control-label'
|
76
|
+
|
77
|
+
b.wrapper tag: 'div', class: 'col-sm-9' do |ba|
|
78
|
+
ba.use :input
|
79
|
+
ba.use :error, wrap_with: { tag: 'span', class: 'help-block' }
|
80
|
+
ba.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
config.wrappers :horizontal_boolean, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
85
|
+
b.use :html5
|
86
|
+
b.optional :readonly
|
87
|
+
|
88
|
+
b.wrapper tag: 'div', class: 'col-sm-offset-3 col-sm-9' do |wr|
|
89
|
+
wr.wrapper tag: 'div', class: 'checkbox' do |ba|
|
90
|
+
ba.use :label_input, class: 'col-sm-9'
|
91
|
+
end
|
92
|
+
|
93
|
+
wr.use :error, wrap_with: { tag: 'span', class: 'help-block' }
|
94
|
+
wr.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
config.wrappers :horizontal_radio_and_checkboxes, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
99
|
+
b.use :html5
|
100
|
+
b.optional :readonly
|
101
|
+
|
102
|
+
b.use :label, class: 'col-sm-3 control-label'
|
103
|
+
|
104
|
+
b.wrapper tag: 'div', class: 'col-sm-9' do |ba|
|
105
|
+
ba.use :input
|
106
|
+
ba.use :error, wrap_with: { tag: 'span', class: 'help-block' }
|
107
|
+
ba.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
config.wrappers :inline_form, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
112
|
+
b.use :html5
|
113
|
+
b.use :placeholder
|
114
|
+
b.optional :maxlength
|
115
|
+
b.optional :pattern
|
116
|
+
b.optional :min_max
|
117
|
+
b.optional :readonly
|
118
|
+
b.use :label, class: 'sr-only'
|
119
|
+
|
120
|
+
b.use :input, class: 'form-control'
|
121
|
+
b.use :error, wrap_with: { tag: 'span', class: 'help-block' }
|
122
|
+
b.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
123
|
+
end
|
124
|
+
|
125
|
+
# Wrappers for forms and inputs using the Bootstrap toolkit.
|
126
|
+
# Check the Bootstrap docs (http://getbootstrap.com)
|
127
|
+
# to learn about the different styles for forms and inputs,
|
128
|
+
# buttons and other elements.
|
129
|
+
config.default_wrapper = :vertical_form
|
130
|
+
config.wrapper_mappings = {
|
131
|
+
check_boxes: :vertical_radio_and_checkboxes,
|
132
|
+
radio_buttons: :vertical_radio_and_checkboxes,
|
133
|
+
file: :vertical_file_input,
|
134
|
+
boolean: :vertical_boolean,
|
135
|
+
}
|
136
|
+
end
|