voluntary 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README.rdoc +48 -0
- data/Rakefile +27 -0
- data/app/assets/javascripts/voluntary/application.js +6 -0
- data/app/assets/javascripts/voluntary/base.js.coffee +34 -0
- data/app/assets/javascripts/voluntary/bootstrap.js.coffee +4 -0
- data/app/assets/javascripts/voluntary/functions.js +24 -0
- data/app/assets/javascripts/voluntary/users.js.coffee +12 -0
- data/app/assets/stylesheets/voluntary/application.css +15 -0
- data/app/assets/stylesheets/voluntary/base.css.scss +40 -0
- data/app/assets/stylesheets/voluntary/bootstrap_and_overrides.css.less +67 -0
- data/app/controllers/areas_controller.rb +66 -0
- data/app/controllers/candidatures_controller.rb +79 -0
- data/app/controllers/comments_controller.rb +70 -0
- data/app/controllers/devise_extensions/registrations_controller.rb +37 -0
- data/app/controllers/home_controller.rb +7 -0
- data/app/controllers/organizations_controller.rb +67 -0
- data/app/controllers/pages_controller.rb +54 -0
- data/app/controllers/products_controller.rb +62 -0
- data/app/controllers/professions_controller.rb +66 -0
- data/app/controllers/projects_controller.rb +56 -0
- data/app/controllers/results_controller.rb +93 -0
- data/app/controllers/stories_controller.rb +96 -0
- data/app/controllers/tasks_controller.rb +88 -0
- data/app/controllers/users_controller.rb +52 -0
- data/app/controllers/vacancies_controller.rb +79 -0
- data/app/controllers/voluntary/application_controller.rb +92 -0
- data/app/controllers/workflow/candidatures_controller.rb +20 -0
- data/app/controllers/workflow/products_controller.rb +6 -0
- data/app/controllers/workflow/project_owner_controller.rb +33 -0
- data/app/controllers/workflow/stories_controller.rb +6 -0
- data/app/controllers/workflow/tasks_controller.rb +147 -0
- data/app/controllers/workflow/user_controller.rb +6 -0
- data/app/controllers/workflow/vacancies_controller.rb +17 -0
- data/app/controllers/workflow_controller.rb +7 -0
- data/app/helpers/application_helper.rb +65 -0
- data/app/helpers/collection_helper.rb +31 -0
- data/app/helpers/comments_helper.rb +11 -0
- data/app/helpers/form_helper.rb +39 -0
- data/app/helpers/language_helper.rb +15 -0
- data/app/helpers/layout_helper.rb +24 -0
- data/app/helpers/product_helper.rb +32 -0
- data/app/helpers/show_helper.rb +65 -0
- data/app/helpers/wizard_helper.rb +27 -0
- data/app/models/area.rb +19 -0
- data/app/models/area_user.rb +19 -0
- data/app/models/candidature.rb +35 -0
- data/app/models/comment.rb +16 -0
- data/app/models/history_tracker.rb +3 -0
- data/app/models/mongo_db_document.rb +11 -0
- data/app/models/organization.rb +19 -0
- data/app/models/page.rb +30 -0
- data/app/models/product.rb +99 -0
- data/app/models/product/new_product.rb +3 -0
- data/app/models/product/project_management.rb +29 -0
- data/app/models/profession.rb +13 -0
- data/app/models/project.rb +66 -0
- data/app/models/project_user.rb +13 -0
- data/app/models/result.rb +55 -0
- data/app/models/role.rb +8 -0
- data/app/models/role/admin.rb +2 -0
- data/app/models/role/master.rb +2 -0
- data/app/models/role/project_owner.rb +2 -0
- data/app/models/role/user.rb +2 -0
- data/app/models/state_machines/candidature.rb +42 -0
- data/app/models/state_machines/page.rb +18 -0
- data/app/models/state_machines/story.rb +51 -0
- data/app/models/state_machines/task.rb +46 -0
- data/app/models/state_machines/vacancy.rb +41 -0
- data/app/models/story.rb +82 -0
- data/app/models/task.rb +85 -0
- data/app/models/user.rb +95 -0
- data/app/models/user_role.rb +6 -0
- data/app/models/vacancy.rb +41 -0
- data/app/observers/candidature_observer.rb +29 -0
- data/app/observers/story_observer.rb +6 -0
- data/app/observers/task_observer.rb +34 -0
- data/app/presenters/layout/application_presenter.rb +3 -0
- data/app/presenters/layout_presenter.rb +9 -0
- data/app/presenters/presenter.rb +46 -0
- data/app/presenters/resource_presenter.rb +30 -0
- data/app/presenters/resources/general/wizard_presenter.rb +17 -0
- data/app/presenters/resources/general/wizards/story/steps/activate_presenter.rb +3 -0
- data/app/presenters/resources/general/wizards/story/steps/setup_tasks_presenter.rb +5 -0
- data/app/presenters/resources/general/wizards/story_presenter.rb +3 -0
- data/app/presenters/resources/user/form_presenter.rb +16 -0
- data/app/presenters/shared/collection/table_presenter.rb +33 -0
- data/app/views/areas/_form.html.erb +11 -0
- data/app/views/areas/edit.html.erb +3 -0
- data/app/views/areas/index.html.erb +5 -0
- data/app/views/areas/new.html.erb +3 -0
- data/app/views/areas/show.html.erb +6 -0
- data/app/views/candidatures/_form.html.erb +13 -0
- data/app/views/candidatures/edit.html.erb +3 -0
- data/app/views/candidatures/index.html.erb +11 -0
- data/app/views/candidatures/new.html.erb +3 -0
- data/app/views/candidatures/show.html.erb +18 -0
- data/app/views/comments/_form.html.erb +16 -0
- data/app/views/comments/_resource.html.erb +16 -0
- data/app/views/comments/edit.html.erb +3 -0
- data/app/views/comments/new.html.erb +3 -0
- data/app/views/devise/mailer/confirmation_instructions.html.erb +10 -0
- data/app/views/devise/registrations/new.html.erb +5 -0
- data/app/views/general/wizard.html.erb +16 -0
- data/app/views/kaminari/_first_page.html.erb +13 -0
- data/app/views/kaminari/_gap.html.erb +8 -0
- data/app/views/kaminari/_last_page.html.erb +13 -0
- data/app/views/kaminari/_next_page.html.erb +13 -0
- data/app/views/kaminari/_page.html.erb +12 -0
- data/app/views/kaminari/_paginator.html.erb +25 -0
- data/app/views/kaminari/_prev_page.html.erb +13 -0
- data/app/views/layouts/application.html.erb +48 -0
- data/app/views/layouts/shared/_flash_messages.html.erb +7 -0
- data/app/views/layouts/shared/_navigation.html.erb +7 -0
- data/app/views/organizations/_form.html.erb +11 -0
- data/app/views/organizations/edit.html.erb +3 -0
- data/app/views/organizations/index.html.erb +5 -0
- data/app/views/organizations/new.html.erb +3 -0
- data/app/views/organizations/show.html.erb +6 -0
- data/app/views/pages/_form.html.erb +12 -0
- data/app/views/pages/edit.html.erb +3 -0
- data/app/views/pages/index.html.erb +5 -0
- data/app/views/pages/new.html.erb +3 -0
- data/app/views/pages/show.html.erb +10 -0
- data/app/views/products/_form.html.erb +28 -0
- data/app/views/products/edit.html.erb +3 -0
- data/app/views/products/index.html.erb +5 -0
- data/app/views/products/mixins/_keywords.html.erb +4 -0
- data/app/views/products/new.html.erb +3 -0
- data/app/views/products/show.html.erb +11 -0
- data/app/views/products/types/text_creation/stories/_form.html.erb +19 -0
- data/app/views/products/types/text_creation/stories/_task_fields.html.erb +7 -0
- data/app/views/projects/_form.html.erb +16 -0
- data/app/views/projects/edit.html.erb +3 -0
- data/app/views/projects/index.html.erb +5 -0
- data/app/views/projects/new.html.erb +3 -0
- data/app/views/projects/show.html.erb +13 -0
- data/app/views/shared/_comments.html.erb +7 -0
- data/app/views/shared/collection/_list.html.erb +37 -0
- data/app/views/shared/collection/_table.html.erb +36 -0
- data/app/views/shared/form/_error_messages.html.erb +10 -0
- data/app/views/shared/resource/_actions.html.erb +26 -0
- data/app/views/shared/resource/_event_elements.html.erb +7 -0
- data/app/views/stories/_collection.html.erb +8 -0
- data/app/views/stories/_form.html.erb +19 -0
- data/app/views/stories/_task_fields.html.erb +11 -0
- data/app/views/stories/index.html.erb +1 -0
- data/app/views/stories/show.html.erb +13 -0
- data/app/views/stories/steps/_activate.html.erb +17 -0
- data/app/views/stories/steps/_setup_tasks.html.erb +35 -0
- data/app/views/stories/tasks.html.erb +0 -0
- data/app/views/tasks/_collection.html.erb +12 -0
- data/app/views/users/_form.html.erb +43 -0
- data/app/views/users/edit.html.erb +3 -0
- data/app/views/users/index.html.erb +6 -0
- data/app/views/users/new.html.erb +3 -0
- data/app/views/users/preferences.html.erb +11 -0
- data/app/views/users/show.html.erb +6 -0
- data/app/views/vacancies/_form.html.erb +15 -0
- data/app/views/vacancies/edit.html.erb +3 -0
- data/app/views/vacancies/index.html.erb +7 -0
- data/app/views/vacancies/new.html.erb +3 -0
- data/app/views/vacancies/show.html.erb +17 -0
- data/app/views/workflow/index.html.erb +0 -0
- data/app/views/workflow/products/show.html.erb +34 -0
- data/app/views/workflow/project_owner/_candidatures.html.erb +31 -0
- data/app/views/workflow/project_owner/_stories.html.erb +29 -0
- data/app/views/workflow/project_owner/_tasks.html.erb +34 -0
- data/app/views/workflow/project_owner/_vacancies.html.erb +27 -0
- data/app/views/workflow/project_owner/index.html.erb +24 -0
- data/app/views/workflow/tasks/_work_form.html.erb +8 -0
- data/app/views/workflow/tasks/_work_head.html.erb +15 -0
- data/app/views/workflow/tasks/edit.html.erb +3 -0
- data/app/views/workflow/tasks/index.html.erb +31 -0
- data/app/views/workflow/tasks/next.html.erb +0 -0
- data/app/views/workflow/tasks/steps/_complete.html.erb +11 -0
- data/app/views/workflow/tasks/steps/_review.html.erb +13 -0
- data/app/views/workflow/tasks/steps/_work.html.erb +17 -0
- data/app/views/workflow/user/_tasks.html.erb +30 -0
- data/app/views/workflow/user/index.html.erb +14 -0
- data/config/initializers/1_initialize_app_config.rb +5 -0
- data/config/initializers/devise.rb +193 -0
- data/config/initializers/locale_settings.rb +42 -0
- data/config/initializers/mongoid-history.rb +2 -0
- data/config/initializers/recaptcha.rb +7 -0
- data/config/initializers/simple_form.rb +178 -0
- data/config/initializers/simple_navigation.rb +2 -0
- data/config/locales/devise.en.yml +59 -0
- data/config/locales/en.yml +26 -0
- data/config/locales/general/en.yml +71 -0
- data/config/locales/resources/area/en.yml +12 -0
- data/config/locales/resources/candidature/en.yml +19 -0
- data/config/locales/resources/comment/en.yml +11 -0
- data/config/locales/resources/organization/en.yml +11 -0
- data/config/locales/resources/page/en.yml +11 -0
- data/config/locales/resources/product/en.yml +23 -0
- data/config/locales/resources/project/en.yml +9 -0
- data/config/locales/resources/result/en.yml +9 -0
- data/config/locales/resources/story/en.yml +34 -0
- data/config/locales/resources/task/en.yml +36 -0
- data/config/locales/resources/user/en.yml +14 -0
- data/config/locales/resources/vacancy/en.yml +29 -0
- data/config/locales/simple_form.en.yml +26 -0
- data/config/locales/workflow/en.yml +37 -0
- data/config/routes.rb +188 -0
- data/db/migrate/20120907144853_create_schema.rb +217 -0
- data/db/migrate/20120911093743_remove_timestamps_from_habtm_tables.rb +21 -0
- data/db/migrate/20120919161831_add_unique_index_for_one_user_candidature_per_vacancy.rb +9 -0
- data/db/migrate/20120922201955_create_mongo_db_documents.rb +13 -0
- data/db/migrate/20120923140109_add_product_to_project.rb +6 -0
- data/db/migrate/20121004061413_add_extra_user_attributes.rb +9 -0
- data/db/migrate/20121004132105_create_professions.rb +13 -0
- data/db/migrate/20121006162913_add_public_attribute_to_roles.rb +6 -0
- data/db/migrate/20121006170407_add_type_attribute_to_roles.rb +5 -0
- data/db/migrate/20121007071543_add_foreign_languages_to_user.rb +6 -0
- data/db/migrate/20121028073712_create_organizations.rb +13 -0
- data/db/seeds.rb +14 -0
- data/lib/applicat/mvc/controller.rb +171 -0
- data/lib/applicat/mvc/controller/error_handling.rb +40 -0
- data/lib/applicat/mvc/controller/resource.rb +19 -0
- data/lib/applicat/mvc/controller/transition_actions.rb +43 -0
- data/lib/applicat/mvc/model/resource/base.rb +56 -0
- data/lib/applicat/mvc/model/tokenable.rb +24 -0
- data/lib/applicat/mvc/model/tree.rb +82 -0
- data/lib/db_seed.rb +150 -0
- data/lib/environment_configuration.rb +54 -0
- data/lib/generators/voluntary/install/install_generator.rb +118 -0
- data/lib/generators/voluntary/install/templates/app/controllers/application_controller.rb +3 -0
- data/lib/generators/voluntary/install/templates/app/models/ability.rb +49 -0
- data/lib/generators/voluntary/install/templates/app/models/app_config.rb +32 -0
- data/lib/generators/voluntary/install/templates/app/views/layouts/application.html.erb +50 -0
- data/lib/generators/voluntary/install/templates/config/application.yml +147 -0
- data/lib/generators/voluntary/install/templates/config/cucumber.yml +8 -0
- data/lib/generators/voluntary/install/templates/config/database.example.yml +28 -0
- data/lib/generators/voluntary/install/templates/config/deploy.rb +59 -0
- data/lib/generators/voluntary/install/templates/config/email.example.yml +9 -0
- data/lib/generators/voluntary/install/templates/config/initializers/recaptcha_example +4 -0
- data/lib/generators/voluntary/install/templates/config/locale_settings.yml +121 -0
- data/lib/generators/voluntary/install/templates/config/main_navigation.rb +262 -0
- data/lib/generators/voluntary/install/templates/config/mongoid.yml +78 -0
- data/lib/generators/voluntary/install/templates/config/nginx.conf +27 -0
- data/lib/generators/voluntary/install/templates/config/unicorn.rb +9 -0
- data/lib/generators/voluntary/install/templates/config/unicorn_init.sh +84 -0
- data/lib/generators/voluntary/install/templates/db/seeds.rb +14 -0
- data/lib/generators/voluntary/install/templates/features/step_definitions/email_steps.rb +89 -0
- data/lib/generators/voluntary/install/templates/features/step_definitions/factory_steps.rb +120 -0
- data/lib/generators/voluntary/install/templates/features/step_definitions/javascript_steps.rb +15 -0
- data/lib/generators/voluntary/install/templates/features/step_definitions/navigation_steps.rb +3 -0
- data/lib/generators/voluntary/install/templates/features/step_definitions/resources_steps.rb +8 -0
- data/lib/generators/voluntary/install/templates/features/step_definitions/session_steps.rb +35 -0
- data/lib/generators/voluntary/install/templates/features/step_definitions/web_steps.rb +271 -0
- data/lib/generators/voluntary/install/templates/features/support/database_cleaner_patches.rb +24 -0
- data/lib/generators/voluntary/install/templates/features/support/env.rb +83 -0
- data/lib/generators/voluntary/install/templates/features/support/integration_sessions_controller.rb +32 -0
- data/lib/generators/voluntary/install/templates/features/support/integration_sessions_form.html.erb +1 -0
- data/lib/generators/voluntary/install/templates/features/support/paths.rb +98 -0
- data/lib/generators/voluntary/install/templates/features/support/selectors.rb +44 -0
- data/lib/generators/voluntary/install/templates/features/support/spork_env +72 -0
- data/lib/generators/voluntary/install/templates/features/support/user_cuke_helpers.rb +78 -0
- data/lib/generators/voluntary/install/templates/lib/volontariat_seed.rb +36 -0
- data/lib/generators/voluntary/install/templates/spec/spec_helper.rb +72 -0
- data/lib/generators/voluntary/install/templates/spec/support/deferred_garbage_collector.rb +45 -0
- data/lib/generators/voluntary/install/templates/spec/support/devise.rb +3 -0
- data/lib/generators/voluntary/install/templates/spec/support/mongo_database_cleaner.rb +19 -0
- data/lib/generators/voluntary/install/templates/vendor/assets/javascripts/jquery.tokeninput.js +915 -0
- data/lib/generators/voluntary/install/templates/vendor/assets/stylesheets/token-input-facebook.css +122 -0
- data/lib/generators/voluntary/install/templates/vendor/assets/stylesheets/token-input-mac.css +204 -0
- data/lib/generators/voluntary/install/templates/vendor/assets/stylesheets/token-input.css +127 -0
- data/lib/i18n_interpolation_fallbacks.rb +21 -0
- data/lib/model/mongo_db/commentable.rb +17 -0
- data/lib/model/mongo_db/core_extensions.rb +10 -0
- data/lib/model/mongo_db/customizable.rb +23 -0
- data/lib/model/mongo_db/product/keywords.rb +31 -0
- data/lib/model/mongo_db/state_version_attributes.rb +15 -0
- data/lib/tasks/cucumber.rake +65 -0
- data/lib/tasks/voluntary_tasks.rake +4 -0
- data/lib/vendors/active_model/naming.rb +14 -0
- data/lib/vendors/simple_navigation/renderer/breadcrumbs_without_method_links.rb +30 -0
- data/lib/vendors/simple_navigation/renderer/twitter_sidenav.rb +34 -0
- data/lib/voluntary.rb +87 -0
- data/lib/voluntary/engine.rb +11 -0
- data/lib/voluntary/helpers/application.rb +69 -0
- data/lib/voluntary/helpers/collection.rb +35 -0
- data/lib/voluntary/helpers/comments.rb +15 -0
- data/lib/voluntary/helpers/form.rb +43 -0
- data/lib/voluntary/helpers/language.rb +19 -0
- data/lib/voluntary/helpers/layout.rb +28 -0
- data/lib/voluntary/helpers/product.rb +36 -0
- data/lib/voluntary/helpers/show.rb +69 -0
- data/lib/voluntary/helpers/wizard.rb +31 -0
- data/lib/voluntary/version.rb +3 -0
- data/lib/wizard.rb +58 -0
- data/lib/wizard/controller/concerns/paths.rb +31 -0
- data/lib/wizard/controller/concerns/steps.rb +142 -0
- metadata +1217 -0
@@ -0,0 +1,42 @@
|
|
1
|
+
# Copyright (c) 2010-2011, Diaspora Inc. This file is
|
2
|
+
# licensed under the Affero General Public License version 3 or later. See
|
3
|
+
# the COPYRIGHT file.
|
4
|
+
|
5
|
+
require 'i18n_interpolation_fallbacks'
|
6
|
+
require "i18n/backend/fallbacks"
|
7
|
+
|
8
|
+
if File.exists?(File.expand_path("./config/locale_settings.yml"))
|
9
|
+
locale_settings = YAML::load(File.open(File.expand_path("./config/locale_settings.yml")))
|
10
|
+
AVAILABLE_LANGUAGES = (locale_settings['available'].length > 0) ? locale_settings['available'] : { "en" => 'English' }
|
11
|
+
AVAILABLE_LANGUAGE_CODES = locale_settings['available'].keys
|
12
|
+
OTHER_LANGUAGES = (locale_settings['other'].length > 0) ? locale_settings['other'] : { "en" => 'English' }
|
13
|
+
OTHER_LANGUAGE_CODES = locale_settings['other'].keys
|
14
|
+
DEFAULT_LANGUAGE = (AVAILABLE_LANGUAGE_CODES.include?(locale_settings['default'].to_s)) ? locale_settings['default'].to_s : "en"
|
15
|
+
LANGUAGE_CODES_MAP = locale_settings['fallbacks']
|
16
|
+
RTL_LANGUAGES = locale_settings['rtl']
|
17
|
+
else
|
18
|
+
AVAILABLE_LANGUAGES = { "en" => 'English' }
|
19
|
+
OTHER_LANGUAGES = { "en" => 'English' }
|
20
|
+
OTHER_LANGUAGE_CODES = ['']
|
21
|
+
DEFAULT_LANGUAGE = "en"
|
22
|
+
AVAILABLE_LANGUAGE_CODES = ["en"]
|
23
|
+
LANGUAGE_CODES_MAP = {}
|
24
|
+
RTL_LANGUAGES = []
|
25
|
+
end
|
26
|
+
|
27
|
+
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
28
|
+
I18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}')]
|
29
|
+
I18n.default_locale = DEFAULT_LANGUAGE
|
30
|
+
|
31
|
+
I18n::Backend::Simple.send(:include, I18n::Backend::InterpolationFallbacks)
|
32
|
+
I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)
|
33
|
+
|
34
|
+
(AVAILABLE_LANGUAGE_CODES + OTHER_LANGUAGE_CODES).flatten.each do |c|
|
35
|
+
I18n.fallbacks[c] = [c]
|
36
|
+
|
37
|
+
if LANGUAGE_CODES_MAP.key?(c)
|
38
|
+
I18n.fallbacks[c].concat(LANGUAGE_CODES_MAP[c])
|
39
|
+
end
|
40
|
+
|
41
|
+
I18n.fallbacks[c].concat([DEFAULT_LANGUAGE, "en"])
|
42
|
+
end
|
@@ -0,0 +1,178 @@
|
|
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 => :lookup`
|
26
|
+
# to the input. If so, they will retrieve the values from the model
|
27
|
+
# if any exists. If you want to enable the lookup for 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
|
+
end
|
47
|
+
|
48
|
+
config.wrappers :bootstrap, :tag => 'div', :class => 'control-group', :error_class => 'error' do |b|
|
49
|
+
b.use :html5
|
50
|
+
b.use :placeholder
|
51
|
+
b.use :label
|
52
|
+
b.wrapper :tag => 'div', :class => 'controls' do |ba|
|
53
|
+
ba.use :input
|
54
|
+
ba.use :error, :wrap_with => { :tag => 'span', :class => 'help-inline' }
|
55
|
+
ba.use :hint, :wrap_with => { :tag => 'p', :class => 'help-block' }
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
config.wrappers :prepend, :tag => 'div', :class => "control-group", :error_class => 'error' do |b|
|
60
|
+
b.use :html5
|
61
|
+
b.use :placeholder
|
62
|
+
b.use :label
|
63
|
+
b.wrapper :tag => 'div', :class => 'controls' do |input|
|
64
|
+
input.wrapper :tag => 'div', :class => 'input-prepend' do |prepend|
|
65
|
+
prepend.use :input
|
66
|
+
end
|
67
|
+
input.use :hint, :wrap_with => { :tag => 'span', :class => 'help-block' }
|
68
|
+
input.use :error, :wrap_with => { :tag => 'span', :class => 'help-inline' }
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
config.wrappers :append, :tag => 'div', :class => "control-group", :error_class => 'error' do |b|
|
73
|
+
b.use :html5
|
74
|
+
b.use :placeholder
|
75
|
+
b.use :label
|
76
|
+
b.wrapper :tag => 'div', :class => 'controls' do |input|
|
77
|
+
input.wrapper :tag => 'div', :class => 'input-append' do |append|
|
78
|
+
append.use :input
|
79
|
+
end
|
80
|
+
input.use :hint, :wrap_with => { :tag => 'span', :class => 'help-block' }
|
81
|
+
input.use :error, :wrap_with => { :tag => 'span', :class => 'help-inline' }
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
# Wrappers for forms and inputs using the Twitter Bootstrap toolkit.
|
86
|
+
# Check the Bootstrap docs (http://twitter.github.com/bootstrap)
|
87
|
+
# to learn about the different styles for forms and inputs,
|
88
|
+
# buttons and other elements.
|
89
|
+
config.default_wrapper = :bootstrap
|
90
|
+
|
91
|
+
# Define the way to render check boxes / radio buttons with labels.
|
92
|
+
# Defaults to :nested for bootstrap config.
|
93
|
+
# :inline => input + label
|
94
|
+
# :nested => label > input
|
95
|
+
config.boolean_style = :nested
|
96
|
+
|
97
|
+
# Default class for buttons
|
98
|
+
config.button_class = 'btn'
|
99
|
+
|
100
|
+
# Method used to tidy up errors. Specify any Rails Array method.
|
101
|
+
# :first lists the first message for each field.
|
102
|
+
# Use :to_sentence to list all errors for each field.
|
103
|
+
# config.error_method = :first
|
104
|
+
|
105
|
+
# Default tag used for error notification helper.
|
106
|
+
config.error_notification_tag = :div
|
107
|
+
|
108
|
+
# CSS class to add for error notification helper.
|
109
|
+
config.error_notification_class = 'alert alert-error'
|
110
|
+
|
111
|
+
# ID to add for error notification helper.
|
112
|
+
# config.error_notification_id = nil
|
113
|
+
|
114
|
+
# Series of attempts to detect a default label method for collection.
|
115
|
+
# config.collection_label_methods = [ :to_label, :name, :title, :to_s ]
|
116
|
+
|
117
|
+
# Series of attempts to detect a default value method for collection.
|
118
|
+
# config.collection_value_methods = [ :id, :to_s ]
|
119
|
+
|
120
|
+
# You can wrap a collection of radio/check boxes in a pre-defined tag, defaulting to none.
|
121
|
+
# config.collection_wrapper_tag = nil
|
122
|
+
|
123
|
+
# You can define the class to use on all collection wrappers. Defaulting to none.
|
124
|
+
# config.collection_wrapper_class = nil
|
125
|
+
|
126
|
+
# You can wrap each item in a collection of radio/check boxes with a tag,
|
127
|
+
# defaulting to :span. Please note that when using :boolean_style = :nested,
|
128
|
+
# SimpleForm will force this option to be a label.
|
129
|
+
# config.item_wrapper_tag = :span
|
130
|
+
|
131
|
+
# You can define a class to use in all item wrappers. Defaulting to none.
|
132
|
+
# config.item_wrapper_class = nil
|
133
|
+
|
134
|
+
# How the label text should be generated altogether with the required text.
|
135
|
+
# config.label_text = lambda { |label, required| "#{required} #{label}" }
|
136
|
+
|
137
|
+
# You can define the class to use on all labels. Default is nil.
|
138
|
+
config.label_class = 'control-label'
|
139
|
+
|
140
|
+
# You can define the class to use on all forms. Default is simple_form.
|
141
|
+
# config.form_class = :simple_form
|
142
|
+
|
143
|
+
# You can define which elements should obtain additional classes
|
144
|
+
# config.generate_additional_classes_for = [:wrapper, :label, :input]
|
145
|
+
|
146
|
+
# Whether attributes are required by default (or not). Default is true.
|
147
|
+
# config.required_by_default = true
|
148
|
+
|
149
|
+
# Tell browsers whether to use default HTML5 validations (novalidate option).
|
150
|
+
# Default is enabled.
|
151
|
+
config.browser_validations = false
|
152
|
+
|
153
|
+
# Collection of methods to detect if a file type was given.
|
154
|
+
# config.file_methods = [ :mounted_as, :file?, :public_filename ]
|
155
|
+
|
156
|
+
# Custom mappings for input types. This should be a hash containing a regexp
|
157
|
+
# to match as key, and the input type that will be used when the field name
|
158
|
+
# matches the regexp as value.
|
159
|
+
# config.input_mappings = { /count/ => :integer }
|
160
|
+
|
161
|
+
# Default priority for time_zone inputs.
|
162
|
+
# config.time_zone_priority = nil
|
163
|
+
|
164
|
+
# Default priority for country inputs.
|
165
|
+
# config.country_priority = nil
|
166
|
+
|
167
|
+
# Default size for text inputs.
|
168
|
+
# config.default_input_size = 50
|
169
|
+
|
170
|
+
# When false, do not use translations for labels.
|
171
|
+
# config.translate_labels = true
|
172
|
+
|
173
|
+
# Automatically discover new inputs in Rails' autoload path.
|
174
|
+
# config.inputs_discovery = true
|
175
|
+
|
176
|
+
# Cache SimpleForm inputs discovery
|
177
|
+
# config.cache_discovery = !Rails.env.development?
|
178
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n
|
2
|
+
|
3
|
+
en:
|
4
|
+
errors:
|
5
|
+
messages:
|
6
|
+
expired: "has expired, please request a new one"
|
7
|
+
not_found: "not found"
|
8
|
+
already_confirmed: "was already confirmed, please try signing in"
|
9
|
+
not_locked: "was not locked"
|
10
|
+
not_saved:
|
11
|
+
one: "1 error prohibited this %{resource} from being saved:"
|
12
|
+
other: "%{count} errors prohibited this %{resource} from being saved:"
|
13
|
+
|
14
|
+
devise:
|
15
|
+
failure:
|
16
|
+
already_authenticated: 'You are already signed in.'
|
17
|
+
unauthenticated: 'You need to sign in or sign up before continuing.'
|
18
|
+
unconfirmed: 'You have to confirm your account before continuing.'
|
19
|
+
locked: 'Your account is locked.'
|
20
|
+
invalid: 'Invalid email or password.'
|
21
|
+
invalid_token: 'Invalid authentication token.'
|
22
|
+
timeout: 'Your session expired, please sign in again to continue.'
|
23
|
+
inactive: 'Your account was not activated yet.'
|
24
|
+
sessions:
|
25
|
+
signed_in: 'Signed in successfully.'
|
26
|
+
signed_out: 'Signed out successfully.'
|
27
|
+
passwords:
|
28
|
+
send_instructions: 'You will receive an email with instructions about how to reset your password in a few minutes.'
|
29
|
+
updated: 'Your password was changed successfully. You are now signed in.'
|
30
|
+
updated_not_active: 'Your password was changed successfully.'
|
31
|
+
send_paranoid_instructions: "If your email address exists in our database, you will receive a password recovery link at your email address in a few minutes."
|
32
|
+
no_token: "You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided."
|
33
|
+
confirmations:
|
34
|
+
send_instructions: 'You will receive an email with instructions about how to confirm your account in a few minutes.'
|
35
|
+
send_paranoid_instructions: 'If your email address exists in our database, you will receive an email with instructions about how to confirm your account in a few minutes.'
|
36
|
+
confirmed: 'Your account was successfully confirmed. You are now signed in.'
|
37
|
+
registrations:
|
38
|
+
title: 'Sign up'
|
39
|
+
signed_up: 'Welcome! You have signed up successfully.'
|
40
|
+
signed_up_but_unconfirmed: 'A message with a confirmation link has been sent to your email address. Please open the link to activate your account.'
|
41
|
+
signed_up_but_inactive: 'You have signed up successfully. However, we could not sign you in because your account is not yet activated.'
|
42
|
+
signed_up_but_locked: 'You have signed up successfully. However, we could not sign you in because your account is locked.'
|
43
|
+
updated: 'You updated your account successfully.'
|
44
|
+
update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and click on the confirm link to finalize confirming your new email address."
|
45
|
+
destroyed: 'Bye! Your account was successfully cancelled. We hope to see you again soon.'
|
46
|
+
unlocks:
|
47
|
+
send_instructions: 'You will receive an email with instructions about how to unlock your account in a few minutes.'
|
48
|
+
unlocked: 'Your account has been unlocked successfully. Please sign in to continue.'
|
49
|
+
send_paranoid_instructions: 'If your account exists, you will receive an email with instructions about how to unlock it in a few minutes.'
|
50
|
+
omniauth_callbacks:
|
51
|
+
success: 'Successfully authenticated from %{kind} account.'
|
52
|
+
failure: 'Could not authenticate you from %{kind} because "%{reason}".'
|
53
|
+
mailer:
|
54
|
+
confirmation_instructions:
|
55
|
+
subject: 'Confirmation instructions'
|
56
|
+
reset_password_instructions:
|
57
|
+
subject: 'Reset password instructions'
|
58
|
+
unlock_instructions:
|
59
|
+
subject: 'Unlock Instructions'
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# Sample localization file for English: Add more files in this directory for other locales:
|
2
|
+
# See https://github:com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points:
|
3
|
+
|
4
|
+
en:
|
5
|
+
pages:
|
6
|
+
privacy_policy:
|
7
|
+
title: Privacy Police
|
8
|
+
terms_of_use:
|
9
|
+
title: Terms of Use
|
10
|
+
about_us:
|
11
|
+
title: About Us
|
12
|
+
|
13
|
+
layout:
|
14
|
+
title: Volontari.at - Creative Open Crowdsource Platform
|
15
|
+
|
16
|
+
home:
|
17
|
+
index:
|
18
|
+
last_projects: Last projects
|
19
|
+
last_vacancies: Last vacancies
|
20
|
+
|
21
|
+
authentication:
|
22
|
+
title: Authentication
|
23
|
+
sign_in: Sign in
|
24
|
+
sign_up: Sign up
|
25
|
+
rpx_sign_in: RPX sign in
|
26
|
+
sign_out: Sign out
|
@@ -0,0 +1,71 @@
|
|
1
|
+
en:
|
2
|
+
general:
|
3
|
+
index:
|
4
|
+
title: Home
|
5
|
+
new: New
|
6
|
+
edit: Edit
|
7
|
+
destroy: Destroy
|
8
|
+
remove: Remove
|
9
|
+
not_available: n/a
|
10
|
+
steps: Steps
|
11
|
+
error: Error
|
12
|
+
list_action: Back to the overview
|
13
|
+
details: Details
|
14
|
+
form:
|
15
|
+
errors_count: '%{count} prohibited this product from being saved:'
|
16
|
+
successfully_created: Creation successful
|
17
|
+
successfully_updated: Update successful
|
18
|
+
destroyed: Resource destroyed successfully.
|
19
|
+
questions:
|
20
|
+
are_you_sure: Are you sure?
|
21
|
+
actions: Actions
|
22
|
+
events:
|
23
|
+
activate: Activate
|
24
|
+
exceptions:
|
25
|
+
wrong_recaptcha: The captcha code which you typed in is wrong.
|
26
|
+
access_denied: Access denied
|
27
|
+
not_found: Resource not found.
|
28
|
+
notifications:
|
29
|
+
event_successful: "%{event} successful."
|
30
|
+
|
31
|
+
activerecord:
|
32
|
+
models:
|
33
|
+
area: Area
|
34
|
+
candidature: Candidature
|
35
|
+
comment: Comment
|
36
|
+
product: Product
|
37
|
+
project: Project
|
38
|
+
result: Result
|
39
|
+
story: Story
|
40
|
+
task: Task
|
41
|
+
user: User
|
42
|
+
vacancy: Vacancy
|
43
|
+
|
44
|
+
attributes:
|
45
|
+
general:
|
46
|
+
name: Name
|
47
|
+
parent: Parent
|
48
|
+
project_id: Project
|
49
|
+
state: State
|
50
|
+
user_id: User
|
51
|
+
vacancy_id: Vacancy
|
52
|
+
comment:
|
53
|
+
name: Subject
|
54
|
+
vacancy:
|
55
|
+
name: Name
|
56
|
+
limit: Limit
|
57
|
+
user:
|
58
|
+
area_tokens: Areas
|
59
|
+
country: Country
|
60
|
+
employment_relationship: Employment relationship
|
61
|
+
foreign_language: Foreign language
|
62
|
+
interface_language: Interface language
|
63
|
+
language: Mother tongue
|
64
|
+
profession: Beruf
|
65
|
+
|
66
|
+
errors:
|
67
|
+
models:
|
68
|
+
general:
|
69
|
+
attributes:
|
70
|
+
name:
|
71
|
+
reserved_word_included: is a reserved word
|
@@ -0,0 +1,19 @@
|
|
1
|
+
en:
|
2
|
+
candidatures:
|
3
|
+
index:
|
4
|
+
title: Candidatures
|
5
|
+
empty_collection: No candidatures available.
|
6
|
+
new:
|
7
|
+
title: New Candidature
|
8
|
+
edit:
|
9
|
+
title: Edit Candidature
|
10
|
+
show:
|
11
|
+
states:
|
12
|
+
new: New
|
13
|
+
accepted: Accepted
|
14
|
+
denied: Denied
|
15
|
+
events:
|
16
|
+
accept: Accept
|
17
|
+
deny: Deny
|
18
|
+
quit: Quit
|
19
|
+
|