surveillance 0.1.1
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.md +42 -0
- data/Rakefile +23 -0
- data/app/assets/javascripts/surveillance.js +6 -0
- data/app/assets/javascripts/surveillance/admin.coffee +4 -0
- data/app/assets/javascripts/surveillance/admin/matrix-questions.coffee +18 -0
- data/app/assets/javascripts/surveillance/application.js +17 -0
- data/app/assets/javascripts/surveillance/collections/branch_rule_collection.coffee +2 -0
- data/app/assets/javascripts/surveillance/form.coffee +7 -0
- data/app/assets/javascripts/surveillance/manifest.coffee +7 -0
- data/app/assets/javascripts/surveillance/models/branch_rule.coffee +21 -0
- data/app/assets/javascripts/surveillance/models/question.coffee +19 -0
- data/app/assets/javascripts/surveillance/models/questions/choosable_question.coffee +15 -0
- data/app/assets/javascripts/surveillance/models/questions/matrix.coffee +19 -0
- data/app/assets/javascripts/surveillance/models/questions/matrix_question.coffee +7 -0
- data/app/assets/javascripts/surveillance/models/questions/number.coffee +17 -0
- data/app/assets/javascripts/surveillance/vendor/backbone.min.js +1 -0
- data/app/assets/javascripts/surveillance/vendor/bootstrap.js +2118 -0
- data/app/assets/javascripts/surveillance/vendor/jquery-ui-sortable.js +2256 -0
- data/app/assets/javascripts/surveillance/vendor/jquery.scrollto.js +210 -0
- data/app/assets/javascripts/surveillance/vendor/underscore.min.js +5 -0
- data/app/assets/javascripts/surveillance/views/attempt_view.coffee +74 -0
- data/app/assets/javascripts/surveillance/views/question_view.coffee +53 -0
- data/app/assets/javascripts/surveillance/views/questions/choice_view.coffee +52 -0
- data/app/assets/javascripts/surveillance/views/questions/matrix_question_view.coffee +26 -0
- data/app/assets/javascripts/surveillance/views/questions/matrix_view.coffee +21 -0
- data/app/assets/javascripts/surveillance/views/questions/number_view.coffee +19 -0
- data/app/assets/javascripts/surveillance/views/questions/order.coffee +9 -0
- data/app/assets/javascripts/surveillance/views/questions/select_matrix_view.coffee +31 -0
- data/app/assets/javascripts/surveillance/views/section_view.coffee +54 -0
- data/app/assets/stylesheets/surveillance/admin.sass +1 -0
- data/app/assets/stylesheets/surveillance/application.css +14 -0
- data/app/assets/stylesheets/surveillance/fonts/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/stylesheets/surveillance/fonts/glyphicons-halflings-regular.svg +229 -0
- data/app/assets/stylesheets/surveillance/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/stylesheets/surveillance/fonts/glyphicons-halflings-regular.woff +0 -0
- data/app/assets/stylesheets/surveillance/overrides.sass +2 -0
- data/app/assets/stylesheets/surveillance/vendor/bootstrap.css +6175 -0
- data/app/controllers/concerns/surveillance/attempts_management_concern.rb +51 -0
- data/app/controllers/concerns/surveillance/base_controller_concern.rb +37 -0
- data/app/controllers/surveillance/admin/attempts_controller.rb +38 -0
- data/app/controllers/surveillance/admin/base_controller.rb +15 -0
- data/app/controllers/surveillance/admin/exports_controller.rb +24 -0
- data/app/controllers/surveillance/admin/options_controller.rb +44 -0
- data/app/controllers/surveillance/admin/questions_controller.rb +59 -0
- data/app/controllers/surveillance/admin/sections_controller.rb +46 -0
- data/app/controllers/surveillance/admin/surveys_controller.rb +43 -0
- data/app/controllers/surveillance/application_controller.rb +7 -0
- data/app/controllers/surveillance/response/attempts_controller.rb +50 -0
- data/app/controllers/surveillance/response/base_controller.rb +38 -0
- data/app/controllers/surveillance/response/partial_attempts_controller.rb +15 -0
- data/app/controllers/surveillance/surveys_controller.rb +6 -0
- data/app/helpers/surveillance/admin/exports_helper.rb +37 -0
- data/app/helpers/surveillance/application_helper.rb +84 -0
- data/app/models/surveillance/answer.rb +56 -0
- data/app/models/surveillance/answer_content.rb +7 -0
- data/app/models/surveillance/attempt.rb +146 -0
- data/app/models/surveillance/branch_rule.rb +52 -0
- data/app/models/surveillance/field_setting.rb +6 -0
- data/app/models/surveillance/option.rb +18 -0
- data/app/models/surveillance/question.rb +50 -0
- data/app/models/surveillance/section.rb +16 -0
- data/app/models/surveillance/survey.rb +38 -0
- data/app/views/layouts/surveillance/application.html.haml +11 -0
- data/app/views/surveillance/admin/attempts/index.html.haml +47 -0
- data/app/views/surveillance/admin/attempts/list.html.haml +11 -0
- data/app/views/surveillance/admin/attempts/overview.html.haml +6 -0
- data/app/views/surveillance/admin/attempts/show.html.haml +62 -0
- data/app/views/surveillance/admin/exports/show.rxls +39 -0
- data/app/views/surveillance/admin/options/_field.html.haml +11 -0
- data/app/views/surveillance/admin/options/_form.html.haml +8 -0
- data/app/views/surveillance/admin/options/_list.html.haml +10 -0
- data/app/views/surveillance/admin/options/_option.html.haml +13 -0
- data/app/views/surveillance/admin/options/edit.html.haml +7 -0
- data/app/views/surveillance/admin/options/new.html.haml +7 -0
- data/app/views/surveillance/admin/questions/_form.html.haml +35 -0
- data/app/views/surveillance/admin/questions/_list.html.haml +17 -0
- data/app/views/surveillance/admin/questions/_question.html.haml +27 -0
- data/app/views/surveillance/admin/questions/edit.html.haml +7 -0
- data/app/views/surveillance/admin/questions/new.html.haml +4 -0
- data/app/views/surveillance/admin/sections/_form.html.haml +16 -0
- data/app/views/surveillance/admin/sections/_list.html.haml +13 -0
- data/app/views/surveillance/admin/sections/_section.html.haml +16 -0
- data/app/views/surveillance/admin/sections/edit.html.haml +7 -0
- data/app/views/surveillance/admin/sections/new.html.haml +4 -0
- data/app/views/surveillance/admin/surveys/_form.html.haml +22 -0
- data/app/views/surveillance/admin/surveys/_list.html.haml +13 -0
- data/app/views/surveillance/admin/surveys/_survey.html.haml +32 -0
- data/app/views/surveillance/admin/surveys/edit.html.haml +7 -0
- data/app/views/surveillance/admin/surveys/index.html.haml +1 -0
- data/app/views/surveillance/admin/surveys/new.html.haml +4 -0
- data/app/views/surveillance/field/date/_form.html.haml +5 -0
- data/app/views/surveillance/field/date/_overview.html.haml +2 -0
- data/app/views/surveillance/field/date/_show.html.haml +10 -0
- data/app/views/surveillance/field/matrix/_form.html.haml +40 -0
- data/app/views/surveillance/field/matrix/_overview.html.haml +19 -0
- data/app/views/surveillance/field/matrix/_questions_fields.html.haml +11 -0
- data/app/views/surveillance/field/matrix/_settings.html.haml +18 -0
- data/app/views/surveillance/field/matrix/_show.html.haml +22 -0
- data/app/views/surveillance/field/multiple_choices/_form.html.haml +18 -0
- data/app/views/surveillance/field/multiple_choices/_settings.html.haml +21 -0
- data/app/views/surveillance/field/multiple_choices/_show.html.haml +21 -0
- data/app/views/surveillance/field/multiple_choices_matrix/_form.html.haml +33 -0
- data/app/views/surveillance/field/multiple_choices_matrix/_show.html.haml +1 -0
- data/app/views/surveillance/field/number/_form.html.haml +5 -0
- data/app/views/surveillance/field/number/_overview.html.haml +2 -0
- data/app/views/surveillance/field/number/_settings.html.haml +2 -0
- data/app/views/surveillance/field/number/_show.html.haml +10 -0
- data/app/views/surveillance/field/order/_form.html.haml +17 -0
- data/app/views/surveillance/field/order/_overview.html.haml +22 -0
- data/app/views/surveillance/field/order/_settings.html.haml +11 -0
- data/app/views/surveillance/field/order/_show.html.haml +8 -0
- data/app/views/surveillance/field/select_matrix/_form.html.haml +17 -0
- data/app/views/surveillance/field/shared/_rules_form.html.haml +30 -0
- data/app/views/surveillance/field/shared/settings/_boolean.html.haml +9 -0
- data/app/views/surveillance/field/shared/settings/_number.html.haml +5 -0
- data/app/views/surveillance/field/single_choice/_form.html.haml +16 -0
- data/app/views/surveillance/field/single_choice/_overview.html.haml +14 -0
- data/app/views/surveillance/field/single_choice/_settings.html.haml +2 -0
- data/app/views/surveillance/field/single_choice/_show.html.haml +21 -0
- data/app/views/surveillance/field/single_select/_form.html.haml +4 -0
- data/app/views/surveillance/field/single_select/_overview.html.haml +14 -0
- data/app/views/surveillance/field/single_select/_show.html.haml +13 -0
- data/app/views/surveillance/field/text/_form.html.haml +5 -0
- data/app/views/surveillance/field/text/_overview.html.haml +2 -0
- data/app/views/surveillance/field/text/_show.html.haml +10 -0
- data/app/views/surveillance/field/text_area/_form.html.haml +5 -0
- data/app/views/surveillance/field/text_area/_overview.html.haml +1 -0
- data/app/views/surveillance/field/text_area/_show.html.haml +10 -0
- data/app/views/surveillance/response/attempts/complete.html.haml +11 -0
- data/app/views/surveillance/response/attempts/edit.html.haml +15 -0
- data/app/views/surveillance/sections/_section.html.haml +24 -0
- data/app/views/surveillance/surveys/_survey.html.haml +4 -0
- data/app/views/surveillance/surveys/index.html.haml +8 -0
- data/app/views/surveillance/surveys/show.html.haml +15 -0
- data/config/locales/surveillance.fr.yml +165 -0
- data/config/routes.rb +30 -0
- data/db/migrate/20130626115136_create_surveillance_surveys.rb +13 -0
- data/db/migrate/20130626115805_create_surveillance_sections.rb +12 -0
- data/db/migrate/20130626130351_create_surveillance_questions.rb +14 -0
- data/db/migrate/20130702111125_create_surveillance_options.rb +11 -0
- data/db/migrate/20130703113456_create_surveillance_attempts.rb +11 -0
- data/db/migrate/20130703115649_create_surveillance_answers.rb +11 -0
- data/db/migrate/20130703115723_create_surveillance_answer_contents.rb +10 -0
- data/db/migrate/20130710151627_create_surveillance_field_settings.rb +11 -0
- data/db/migrate/20130711100032_create_surveillance_answers_options_join_table.rb +7 -0
- data/db/migrate/20130729143002_create_surveillance_branch_rules.rb +14 -0
- data/db/migrate/20140212153506_add_state_to_surveillance_attempts.rb +6 -0
- data/db/migrate/20140213101147_add_access_token_to_surveillance_attempts.rb +5 -0
- data/db/migrate/20140213133036_add_partial_to_surveillance_questions.rb +5 -0
- data/lib/generators/surveillance/install/install_generator.rb +34 -0
- data/lib/generators/surveillance/install/templates/initializer.rb +51 -0
- data/lib/surveillance.rb +61 -0
- data/lib/surveillance/branch_action.rb +5 -0
- data/lib/surveillance/branch_condition.rb +5 -0
- data/lib/surveillance/engine.rb +13 -0
- data/lib/surveillance/field.rb +58 -0
- data/lib/surveillance/field/base.rb +149 -0
- data/lib/surveillance/field/date.rb +17 -0
- data/lib/surveillance/field/matrix.rb +66 -0
- data/lib/surveillance/field/matrix_question.rb +13 -0
- data/lib/surveillance/field/multiple_choices.rb +29 -0
- data/lib/surveillance/field/multiple_choices_matrix.rb +13 -0
- data/lib/surveillance/field/number.rb +34 -0
- data/lib/surveillance/field/order.rb +40 -0
- data/lib/surveillance/field/order_question.rb +22 -0
- data/lib/surveillance/field/other_choice.rb +28 -0
- data/lib/surveillance/field/select_matrix.rb +13 -0
- data/lib/surveillance/field/single_choice.rb +36 -0
- data/lib/surveillance/field/single_select.rb +31 -0
- data/lib/surveillance/field/text.rb +13 -0
- data/lib/surveillance/field/text_area.rb +6 -0
- data/lib/surveillance/partials_collection.rb +7 -0
- data/lib/surveillance/setting.rb +24 -0
- data/lib/surveillance/settings_collection.rb +17 -0
- data/lib/surveillance/validators.rb +7 -0
- data/lib/surveillance/validators/answer_validator.rb +9 -0
- data/lib/surveillance/version.rb +3 -0
- data/lib/tasks/surveillance_tasks.rake +4 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -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/config.ru +4 -0
- data/spec/dummy/config/application.rb +28 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +29 -0
- data/spec/dummy/config/environments/production.rb +80 -0
- data/spec/dummy/config/environments/test.rb +36 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +12 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/locales/rails.fr.yml +226 -0
- data/spec/dummy/config/routes.rb +3 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20140113224541_create_surveillance_surveys.surveillance.rb +14 -0
- data/spec/dummy/db/migrate/20140113224542_create_surveillance_sections.surveillance.rb +13 -0
- data/spec/dummy/db/migrate/20140113224543_create_surveillance_questions.surveillance.rb +15 -0
- data/spec/dummy/db/migrate/20140113224544_create_surveillance_options.surveillance.rb +12 -0
- data/spec/dummy/db/migrate/20140113224545_create_surveillance_attempts.surveillance.rb +12 -0
- data/spec/dummy/db/migrate/20140113224546_create_surveillance_answers.surveillance.rb +12 -0
- data/spec/dummy/db/migrate/20140113224547_create_surveillance_answer_contents.surveillance.rb +11 -0
- data/spec/dummy/db/migrate/20140113224548_create_surveillance_field_settings.surveillance.rb +12 -0
- data/spec/dummy/db/migrate/20140113224549_create_surveillance_answers_options_join_table.surveillance.rb +8 -0
- data/spec/dummy/db/migrate/20140113224550_create_surveillance_branch_rules.surveillance.rb +15 -0
- data/spec/dummy/db/schema.rb +103 -0
- data/spec/dummy/log/development.log +38066 -0
- data/spec/dummy/public/404.html +58 -0
- data/spec/dummy/public/422.html +58 -0
- data/spec/dummy/public/500.html +57 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/spec +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/0018421aaf29044fbd13363bbdfd8f44 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/017d7a30ec05c0fb0265fb5167c73ee9 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/034b76adeb89d6ca63cd9eea649331f5 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/05de8fbfacab66a0efe4f9790b2ac723 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/0811effcff3b9107d49398bdba7488e5 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/0d45beae32861dc508fc2db09b9d95b3 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/0d4961f3da5a0d5234736a6abbf42226 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/0f491ed240e1a27bbc05e5213afd48bb +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/10e2a0dbdbb68c055e8b7ccd6f2906d8 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/1173cdef6c662a55ef590489fe26e8fe +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/1b3e93127523ec0f3c93bcd91d4390dc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/1bb56fbf17ccbb14dcbaa4d6d639e620 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/2bd0ba6a1598c9fa67081d8f906db6f8 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/3fbe053f103de46cc1b320f059b99c1f +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/4144b095447efb810a548b99e41df9eb +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/421d097cb8d88f975d8ccf75c9e5e306 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/474bc1c9055df6cc1cdff58817a6cb41 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/4829d251eeb22cdbd05b27b6ba809538 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/4f584ca3f0c8ec62906e6f03bc5963c2 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/55d647d88e01b91b2a146e7db0481c09 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/62db8b5885b79c5dc0667fab0fbf46bb +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/7080a4d265fe784c9704db71f81da832 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/7220af243fd39e3dffd233252e4a8c17 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/7cd0e5bfe12b86ed494d02e8e5b62bbf +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/7e37a8ae2a50653b388d57c573d12548 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/8113790dad1da8858c82cfc3eb14ef87 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/83997102fc04f275cd6cd8c1ddb55835 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/8a7b047a16adbc640e03eaabe4a4fe93 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/90b48fb4bfa22ddcd063734065d27086 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/935886b24c90d344752d2a80e3657801 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/9606a6d70af63ce3fea26ded0a69d5c2 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/97db73fdf0bbab24fb92892c61ec7a9b +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/a23bb60554e715c228ae3cdfb5d81807 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/ad17e102b9f9288a9e919b0b0a2ab05b +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/c26ae1f6640b52c232bd392a6e2f7110 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/c6cb3deca0f08bd9569d00fca09272da +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/d39b4eebbd0042342e10497a34fd6378 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/d5ee573b2abdcdc245a830bde2dd76f3 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/d6487e59842ff206d84f6de5e3a7400c +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/dafa124ddd0e828d7c5c0a5c4db455ba +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/e5bbd03518f9abc3e9bc1373c74fd3f1 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/ed5aa255edff522c2e36e6f0151ff747 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/ee263a426f6530013f86aa860448fa91 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/efa0c4d855d425fdf4b63ab26c45e94c +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/f2881259fd5bad1c0a5b1ab5dff97c47 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/f34108e540cff2fbc32036da452ca6ae +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/f7e7e00ef8efc13c6a2628e453344440 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/f9a44009076e46b0f35af5e7031a1871 +0 -0
- data/spec/spec_helper.rb +87 -0
- metadata +598 -0
@@ -0,0 +1,28 @@
|
|
1
|
+
== README
|
2
|
+
|
3
|
+
This README would normally document whatever steps are necessary to get the
|
4
|
+
application up and running.
|
5
|
+
|
6
|
+
Things you may want to cover:
|
7
|
+
|
8
|
+
* Ruby version
|
9
|
+
|
10
|
+
* System dependencies
|
11
|
+
|
12
|
+
* Configuration
|
13
|
+
|
14
|
+
* Database creation
|
15
|
+
|
16
|
+
* Database initialization
|
17
|
+
|
18
|
+
* How to run the test suite
|
19
|
+
|
20
|
+
* Services (job queues, cache servers, search engines, etc.)
|
21
|
+
|
22
|
+
* Deployment instructions
|
23
|
+
|
24
|
+
* ...
|
25
|
+
|
26
|
+
|
27
|
+
Please feel free to use a different markup language if you do not plan to run
|
28
|
+
<tt>rake doc:app</tt>.
|
data/spec/dummy/Rakefile
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
+
// listed below.
|
3
|
+
//
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
+
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
6
|
+
//
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
+
// compiled file.
|
9
|
+
//
|
10
|
+
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
|
11
|
+
// about supported directives.
|
12
|
+
//
|
13
|
+
//= require_tree .
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
+
* listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
+
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
7
|
+
*
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the top of the
|
9
|
+
* compiled file, but it's generally better to create a new file per style scope.
|
10
|
+
*
|
11
|
+
*= require_self
|
12
|
+
*= require_tree .
|
13
|
+
*/
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Dummy</title>
|
5
|
+
<%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
|
6
|
+
<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
|
7
|
+
<%= csrf_meta_tags %>
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
|
11
|
+
<%= yield %>
|
12
|
+
|
13
|
+
</body>
|
14
|
+
</html>
|
data/spec/dummy/bin/rake
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
require File.expand_path('../boot', __FILE__)
|
2
|
+
|
3
|
+
# Pick the frameworks you want:
|
4
|
+
require "active_record/railtie"
|
5
|
+
require "action_controller/railtie"
|
6
|
+
require "action_mailer/railtie"
|
7
|
+
require "sprockets/railtie"
|
8
|
+
# require "rails/test_unit/railtie"
|
9
|
+
|
10
|
+
Bundler.require(*Rails.groups)
|
11
|
+
require "surveillance"
|
12
|
+
|
13
|
+
module Dummy
|
14
|
+
class Application < Rails::Application
|
15
|
+
# Settings in config/environments/* take precedence over those specified here.
|
16
|
+
# Application configuration should go into files in config/initializers
|
17
|
+
# -- all .rb files in that directory are automatically loaded.
|
18
|
+
|
19
|
+
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
20
|
+
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
21
|
+
# config.time_zone = 'Central Time (US & Canada)'
|
22
|
+
|
23
|
+
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
24
|
+
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
25
|
+
config.i18n.default_locale = :fr
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# SQLite version 3.x
|
2
|
+
# gem install sqlite3
|
3
|
+
#
|
4
|
+
# Ensure the SQLite 3 gem is defined in your Gemfile
|
5
|
+
# gem 'sqlite3'
|
6
|
+
development:
|
7
|
+
adapter: sqlite3
|
8
|
+
database: db/development.sqlite3
|
9
|
+
pool: 5
|
10
|
+
timeout: 5000
|
11
|
+
|
12
|
+
# Warning: The database defined as "test" will be erased and
|
13
|
+
# re-generated from your development database when you run "rake".
|
14
|
+
# Do not set this db to the same as development or production.
|
15
|
+
test:
|
16
|
+
adapter: sqlite3
|
17
|
+
database: db/test.sqlite3
|
18
|
+
pool: 5
|
19
|
+
timeout: 5000
|
20
|
+
|
21
|
+
production:
|
22
|
+
adapter: sqlite3
|
23
|
+
database: db/production.sqlite3
|
24
|
+
pool: 5
|
25
|
+
timeout: 5000
|
@@ -0,0 +1,29 @@
|
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# In the development environment your application's code is reloaded on
|
5
|
+
# every request. This slows down response time but is perfect for development
|
6
|
+
# since you don't have to restart the web server when you make code changes.
|
7
|
+
config.cache_classes = false
|
8
|
+
|
9
|
+
# Do not eager load code on boot.
|
10
|
+
config.eager_load = false
|
11
|
+
|
12
|
+
# Show full error reports and disable caching.
|
13
|
+
config.consider_all_requests_local = true
|
14
|
+
config.action_controller.perform_caching = false
|
15
|
+
|
16
|
+
# Don't care if the mailer can't send.
|
17
|
+
config.action_mailer.raise_delivery_errors = false
|
18
|
+
|
19
|
+
# Print deprecation notices to the Rails logger.
|
20
|
+
config.active_support.deprecation = :log
|
21
|
+
|
22
|
+
# Raise an error on page load if there are pending migrations
|
23
|
+
config.active_record.migration_error = :page_load
|
24
|
+
|
25
|
+
# Debug mode disables concatenation and preprocessing of assets.
|
26
|
+
# This option may cause significant delays in view rendering with a large
|
27
|
+
# number of complex assets.
|
28
|
+
config.assets.debug = true
|
29
|
+
end
|
@@ -0,0 +1,80 @@
|
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# Code is not reloaded between requests.
|
5
|
+
config.cache_classes = true
|
6
|
+
|
7
|
+
# Eager load code on boot. This eager loads most of Rails and
|
8
|
+
# your application in memory, allowing both thread web servers
|
9
|
+
# and those relying on copy on write to perform better.
|
10
|
+
# Rake tasks automatically ignore this option for performance.
|
11
|
+
config.eager_load = true
|
12
|
+
|
13
|
+
# Full error reports are disabled and caching is turned on.
|
14
|
+
config.consider_all_requests_local = false
|
15
|
+
config.action_controller.perform_caching = true
|
16
|
+
|
17
|
+
# Enable Rack::Cache to put a simple HTTP cache in front of your application
|
18
|
+
# Add `rack-cache` to your Gemfile before enabling this.
|
19
|
+
# For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
|
20
|
+
# config.action_dispatch.rack_cache = true
|
21
|
+
|
22
|
+
# Disable Rails's static asset server (Apache or nginx will already do this).
|
23
|
+
config.serve_static_assets = false
|
24
|
+
|
25
|
+
# Compress JavaScripts and CSS.
|
26
|
+
config.assets.js_compressor = :uglifier
|
27
|
+
# config.assets.css_compressor = :sass
|
28
|
+
|
29
|
+
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
30
|
+
config.assets.compile = false
|
31
|
+
|
32
|
+
# Generate digests for assets URLs.
|
33
|
+
config.assets.digest = true
|
34
|
+
|
35
|
+
# Version of your assets, change this if you want to expire all your assets.
|
36
|
+
config.assets.version = '1.0'
|
37
|
+
|
38
|
+
# Specifies the header that your server uses for sending files.
|
39
|
+
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
|
40
|
+
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
|
41
|
+
|
42
|
+
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
43
|
+
# config.force_ssl = true
|
44
|
+
|
45
|
+
# Set to :debug to see everything in the log.
|
46
|
+
config.log_level = :info
|
47
|
+
|
48
|
+
# Prepend all log lines with the following tags.
|
49
|
+
# config.log_tags = [ :subdomain, :uuid ]
|
50
|
+
|
51
|
+
# Use a different logger for distributed setups.
|
52
|
+
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
53
|
+
|
54
|
+
# Use a different cache store in production.
|
55
|
+
# config.cache_store = :mem_cache_store
|
56
|
+
|
57
|
+
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
58
|
+
# config.action_controller.asset_host = "http://assets.example.com"
|
59
|
+
|
60
|
+
# Precompile additional assets.
|
61
|
+
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
62
|
+
# config.assets.precompile += %w( search.js )
|
63
|
+
|
64
|
+
# Ignore bad email addresses and do not raise email delivery errors.
|
65
|
+
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
66
|
+
# config.action_mailer.raise_delivery_errors = false
|
67
|
+
|
68
|
+
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
69
|
+
# the I18n.default_locale when a translation can not be found).
|
70
|
+
config.i18n.fallbacks = true
|
71
|
+
|
72
|
+
# Send deprecation notices to registered listeners.
|
73
|
+
config.active_support.deprecation = :notify
|
74
|
+
|
75
|
+
# Disable automatic flushing of the log to improve performance.
|
76
|
+
# config.autoflush_log = false
|
77
|
+
|
78
|
+
# Use default logging formatter so that PID and timestamp are not suppressed.
|
79
|
+
config.log_formatter = ::Logger::Formatter.new
|
80
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# The test environment is used exclusively to run your application's
|
5
|
+
# test suite. You never need to work with it otherwise. Remember that
|
6
|
+
# your test database is "scratch space" for the test suite and is wiped
|
7
|
+
# and recreated between test runs. Don't rely on the data there!
|
8
|
+
config.cache_classes = true
|
9
|
+
|
10
|
+
# Do not eager load code on boot. This avoids loading your whole application
|
11
|
+
# just for the purpose of running a single test. If you are using a tool that
|
12
|
+
# preloads Rails for running tests, you may have to set it to true.
|
13
|
+
config.eager_load = false
|
14
|
+
|
15
|
+
# Configure static asset server for tests with Cache-Control for performance.
|
16
|
+
config.serve_static_assets = true
|
17
|
+
config.static_cache_control = "public, max-age=3600"
|
18
|
+
|
19
|
+
# Show full error reports and disable caching.
|
20
|
+
config.consider_all_requests_local = true
|
21
|
+
config.action_controller.perform_caching = false
|
22
|
+
|
23
|
+
# Raise exceptions instead of rendering exception templates.
|
24
|
+
config.action_dispatch.show_exceptions = false
|
25
|
+
|
26
|
+
# Disable request forgery protection in test environment.
|
27
|
+
config.action_controller.allow_forgery_protection = false
|
28
|
+
|
29
|
+
# Tell Action Mailer not to deliver emails to the real world.
|
30
|
+
# The :test delivery method accumulates sent emails in the
|
31
|
+
# ActionMailer::Base.deliveries array.
|
32
|
+
config.action_mailer.delivery_method = :test
|
33
|
+
|
34
|
+
# Print deprecation notices to the stderr.
|
35
|
+
config.active_support.deprecation = :stderr
|
36
|
+
end
|
@@ -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,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,12 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key is used for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
|
6
|
+
# Make sure the secret is at least 30 characters and all random,
|
7
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
8
|
+
# You can use `rake secret` to generate a secure secret key.
|
9
|
+
|
10
|
+
# Make sure your secret_key_base is kept private
|
11
|
+
# if you're sharing your code publicly.
|
12
|
+
Dummy::Application.config.secret_key_base = '739c799c2c75426c70549b7bab7d5584377ea02a1c23aa21e5215968da59ee8815367b3e513ec4178e0637970c7541e7d247e06976869f3dc8441bcd2f24aaaf'
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
|
9
|
+
end
|
10
|
+
|
11
|
+
# To enable root element in JSON for ActiveRecord objects.
|
12
|
+
# ActiveSupport.on_load(:active_record) do
|
13
|
+
# self.include_root_in_json = true
|
14
|
+
# end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Files in the config/locales directory are used for internationalization
|
2
|
+
# and are automatically loaded by Rails. If you want to use locales other
|
3
|
+
# than English, add the necessary files in this directory.
|
4
|
+
#
|
5
|
+
# To use the locales, use `I18n.t`:
|
6
|
+
#
|
7
|
+
# I18n.t 'hello'
|
8
|
+
#
|
9
|
+
# In views, this is aliased to just `t`:
|
10
|
+
#
|
11
|
+
# <%= t('hello') %>
|
12
|
+
#
|
13
|
+
# To use a different locale, set it with `I18n.locale`:
|
14
|
+
#
|
15
|
+
# I18n.locale = :es
|
16
|
+
#
|
17
|
+
# This would use the information in config/locales/es.yml.
|
18
|
+
#
|
19
|
+
# To learn more, please read the Rails Internationalization guide
|
20
|
+
# available at http://guides.rubyonrails.org/i18n.html.
|
21
|
+
|
22
|
+
en:
|
23
|
+
hello: "Hello world"
|
@@ -0,0 +1,226 @@
|
|
1
|
+
# French translations for Ruby on Rails
|
2
|
+
# by Christian Lescuyer (christian@flyingcoders.com)
|
3
|
+
# contributors:
|
4
|
+
# - Sebastien Grosjean - ZenCocoon.com
|
5
|
+
# - Bruno Michel - http://github.com/nono
|
6
|
+
# - Tsutomu Kuroda - http://github.com/kuroda (t-kuroda@oiax.jp)
|
7
|
+
# Emended by Benjamin des Gachons and Patrick Chew : <http://www.fitima.org/docs/fiche.pdf>
|
8
|
+
|
9
|
+
fr:
|
10
|
+
date:
|
11
|
+
formats:
|
12
|
+
default: "%d/%m/%Y"
|
13
|
+
short: "%e %b"
|
14
|
+
long: "%e %B %Y"
|
15
|
+
simple: "%A %d %B"
|
16
|
+
day: "%V %B %Y"
|
17
|
+
day_names:
|
18
|
+
- dimanche
|
19
|
+
- lundi
|
20
|
+
- mardi
|
21
|
+
- mercredi
|
22
|
+
- jeudi
|
23
|
+
- vendredi
|
24
|
+
- samedi
|
25
|
+
abbr_day_names:
|
26
|
+
- dim
|
27
|
+
- lun
|
28
|
+
- mar
|
29
|
+
- mer
|
30
|
+
- jeu
|
31
|
+
- ven
|
32
|
+
- sam
|
33
|
+
month_names:
|
34
|
+
- ~
|
35
|
+
- janvier
|
36
|
+
- février
|
37
|
+
- mars
|
38
|
+
- avril
|
39
|
+
- mai
|
40
|
+
- juin
|
41
|
+
- juillet
|
42
|
+
- août
|
43
|
+
- septembre
|
44
|
+
- octobre
|
45
|
+
- novembre
|
46
|
+
- décembre
|
47
|
+
abbr_month_names:
|
48
|
+
- ~
|
49
|
+
- jan.
|
50
|
+
- fév.
|
51
|
+
- mar.
|
52
|
+
- avr.
|
53
|
+
- mai
|
54
|
+
- juin
|
55
|
+
- juil.
|
56
|
+
- août
|
57
|
+
- sept.
|
58
|
+
- oct.
|
59
|
+
- nov.
|
60
|
+
- déc.
|
61
|
+
order:
|
62
|
+
- :day
|
63
|
+
- :month
|
64
|
+
- :year
|
65
|
+
|
66
|
+
time:
|
67
|
+
formats:
|
68
|
+
default: "%d/%m/%Y %H:%M"
|
69
|
+
short: "%d %b %H:%M"
|
70
|
+
long: "%A %d %B %Y %H:%M"
|
71
|
+
simple: "%A %d %B à %H:%M"
|
72
|
+
time_only: "%H:%M"
|
73
|
+
am: 'am'
|
74
|
+
pm: 'pm'
|
75
|
+
|
76
|
+
datetime:
|
77
|
+
distance_in_words:
|
78
|
+
half_a_minute: "une demi-minute"
|
79
|
+
less_than_x_seconds:
|
80
|
+
zero: "moins d'une seconde"
|
81
|
+
one: "moins d'une seconde"
|
82
|
+
other: "moins de %{count} secondes"
|
83
|
+
x_seconds:
|
84
|
+
one: "1 seconde"
|
85
|
+
other: "%{count} secondes"
|
86
|
+
less_than_x_minutes:
|
87
|
+
zero: "moins d'une minute"
|
88
|
+
one: "moins d'une minute"
|
89
|
+
other: "moins de %{count} minutes"
|
90
|
+
x_minutes:
|
91
|
+
one: "1 minute"
|
92
|
+
other: "%{count} minutes"
|
93
|
+
about_x_hours:
|
94
|
+
one: "environ une heure"
|
95
|
+
other: "environ %{count} heures"
|
96
|
+
x_days:
|
97
|
+
one: "1 jour"
|
98
|
+
other: "%{count} jours"
|
99
|
+
about_x_months:
|
100
|
+
one: "environ un mois"
|
101
|
+
other: "environ %{count} mois"
|
102
|
+
x_months:
|
103
|
+
one: "1 mois"
|
104
|
+
other: "%{count} mois"
|
105
|
+
about_x_years:
|
106
|
+
one: "environ un an"
|
107
|
+
other: "environ %{count} ans"
|
108
|
+
over_x_years:
|
109
|
+
one: "plus d'un an"
|
110
|
+
other: "plus de %{count} ans"
|
111
|
+
almost_x_years:
|
112
|
+
one: "presqu'un an"
|
113
|
+
other: "presque %{count} ans"
|
114
|
+
prompts:
|
115
|
+
year: "Année"
|
116
|
+
month: "Mois"
|
117
|
+
day: "Jour"
|
118
|
+
hour: "Heure"
|
119
|
+
minute: "Minute"
|
120
|
+
second: "Seconde"
|
121
|
+
|
122
|
+
number:
|
123
|
+
format:
|
124
|
+
separator: ","
|
125
|
+
delimiter: " "
|
126
|
+
precision: 3
|
127
|
+
significant: false
|
128
|
+
strip_insignificant_zeros: false
|
129
|
+
currency:
|
130
|
+
format:
|
131
|
+
format: "%n %u"
|
132
|
+
unit: "€"
|
133
|
+
separator: ","
|
134
|
+
delimiter: " "
|
135
|
+
precision: 2
|
136
|
+
significant: false
|
137
|
+
strip_insignificant_zeros: false
|
138
|
+
percentage:
|
139
|
+
format:
|
140
|
+
delimiter: ""
|
141
|
+
precision:
|
142
|
+
format:
|
143
|
+
delimiter: ""
|
144
|
+
human:
|
145
|
+
format:
|
146
|
+
delimiter: ""
|
147
|
+
precision: 2
|
148
|
+
significant: true
|
149
|
+
strip_insignificant_zeros: true
|
150
|
+
storage_units:
|
151
|
+
format: "%n %u"
|
152
|
+
units:
|
153
|
+
byte:
|
154
|
+
one: "octet"
|
155
|
+
other: "octets"
|
156
|
+
kb: "ko"
|
157
|
+
mb: "Mo"
|
158
|
+
gb: "Go"
|
159
|
+
tb: "To"
|
160
|
+
decimal_units:
|
161
|
+
format: "%n %u"
|
162
|
+
units:
|
163
|
+
unit: ""
|
164
|
+
thousand: "millier"
|
165
|
+
million: "million"
|
166
|
+
billion: "milliard"
|
167
|
+
trillion: "billion"
|
168
|
+
quadrillion: "million de milliards"
|
169
|
+
|
170
|
+
support:
|
171
|
+
array:
|
172
|
+
words_connector: ", "
|
173
|
+
two_words_connector: " et "
|
174
|
+
last_word_connector: " et "
|
175
|
+
|
176
|
+
helpers:
|
177
|
+
select:
|
178
|
+
prompt: "Veuillez sélectionner"
|
179
|
+
submit:
|
180
|
+
create: "Créer un(e) %{model}"
|
181
|
+
update: "Modifier ce(tte) %{model}"
|
182
|
+
submit: "Enregistrer ce(tte) %{model}"
|
183
|
+
|
184
|
+
errors: &errors
|
185
|
+
format: "%{attribute} %{message}"
|
186
|
+
messages: &errors_messages
|
187
|
+
inclusion: "n'est pas inclus(e) dans la liste"
|
188
|
+
exclusion: "n'est pas disponible"
|
189
|
+
invalid: "n'est pas valide"
|
190
|
+
confirmation: "ne concorde pas avec la confirmation"
|
191
|
+
accepted: "doit être accepté(e)"
|
192
|
+
empty: "doit être rempli(e)"
|
193
|
+
blank: "doit être rempli(e)"
|
194
|
+
too_long:
|
195
|
+
one: "est trop long (pas plus d'un caractère)"
|
196
|
+
other: "est trop long (pas plus de %{count} caractères)"
|
197
|
+
too_short:
|
198
|
+
one: "est trop court (au moins un caractère)"
|
199
|
+
other: "est trop court (au moins %{count} caractères)"
|
200
|
+
wrong_length:
|
201
|
+
one: "ne fait pas la bonne longueur (doit comporter un seul caractère)"
|
202
|
+
other: "ne fait pas la bonne longueur (doit comporter %{count} caractères)"
|
203
|
+
not_a_number: "n'est pas un nombre"
|
204
|
+
not_an_integer: "doit être un nombre entier"
|
205
|
+
greater_than: "doit être supérieur à %{count}"
|
206
|
+
greater_than_or_equal_to: "doit être supérieur ou égal à %{count}"
|
207
|
+
equal_to: "doit être égal à %{count}"
|
208
|
+
less_than: "doit être inférieur à %{count}"
|
209
|
+
less_than_or_equal_to: "doit être inférieur ou égal à %{count}"
|
210
|
+
odd: "doit être impair"
|
211
|
+
even: "doit être pair"
|
212
|
+
taken: "n'est pas disponible"
|
213
|
+
record_invalid: "La validation a échoué : %{errors}"
|
214
|
+
|
215
|
+
template: &errors_template
|
216
|
+
header:
|
217
|
+
one: "Impossible d'enregistrer ce(tte) %{model} : 1 erreur"
|
218
|
+
other: "Impossible d'enregistrer ce(tte) %{model} : %{count} erreurs"
|
219
|
+
body: "Veuillez vérifier les champs suivants : "
|
220
|
+
|
221
|
+
activemodel:
|
222
|
+
errors:
|
223
|
+
<<: *errors
|
224
|
+
activerecord:
|
225
|
+
errors:
|
226
|
+
<<: *errors
|