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,23 @@
|
|
1
|
+
en:
|
2
|
+
|
3
|
+
products:
|
4
|
+
index:
|
5
|
+
title: Products
|
6
|
+
name: Name
|
7
|
+
empty_collection: No products available.
|
8
|
+
|
9
|
+
new:
|
10
|
+
title: New Product
|
11
|
+
edit:
|
12
|
+
title: Edit Product
|
13
|
+
|
14
|
+
activerecord:
|
15
|
+
|
16
|
+
errors:
|
17
|
+
models:
|
18
|
+
product:
|
19
|
+
attributes:
|
20
|
+
name:
|
21
|
+
missing_english_name: Please switch the locale to English.
|
22
|
+
missing_model_file: Please create and deploy a file for the new product model first.
|
23
|
+
|
@@ -0,0 +1,34 @@
|
|
1
|
+
en:
|
2
|
+
stories:
|
3
|
+
index:
|
4
|
+
title: Stories
|
5
|
+
name: Name
|
6
|
+
empty_collection: No stories available.
|
7
|
+
|
8
|
+
new:
|
9
|
+
title: New Story
|
10
|
+
|
11
|
+
show:
|
12
|
+
states:
|
13
|
+
completed: Completed
|
14
|
+
|
15
|
+
edit:
|
16
|
+
title: Edit Story
|
17
|
+
|
18
|
+
steps:
|
19
|
+
initialization:
|
20
|
+
title: Criteria
|
21
|
+
setup_tasks:
|
22
|
+
title: Setup Tasks
|
23
|
+
add_task: Add Task
|
24
|
+
update: Update Tasks
|
25
|
+
activate:
|
26
|
+
title: Activate
|
27
|
+
|
28
|
+
activerecord:
|
29
|
+
errors:
|
30
|
+
models:
|
31
|
+
story:
|
32
|
+
attributes:
|
33
|
+
base:
|
34
|
+
missing_tasks: 'Please define at least 1 task.'
|
@@ -0,0 +1,36 @@
|
|
1
|
+
en:
|
2
|
+
|
3
|
+
tasks:
|
4
|
+
general:
|
5
|
+
events:
|
6
|
+
assign: Assign
|
7
|
+
cancel: Cancel
|
8
|
+
complete: Complete
|
9
|
+
follow_up: Follow up
|
10
|
+
review: Pull request
|
11
|
+
|
12
|
+
index:
|
13
|
+
title: Tasks
|
14
|
+
name: Name
|
15
|
+
empty_collection: No tasks available.
|
16
|
+
|
17
|
+
new:
|
18
|
+
title: New Task
|
19
|
+
|
20
|
+
show:
|
21
|
+
story_text: Story
|
22
|
+
text: Task Text
|
23
|
+
states:
|
24
|
+
under_supervision: Under supervision
|
25
|
+
|
26
|
+
edit:
|
27
|
+
title: Edit Task
|
28
|
+
|
29
|
+
activerecord:
|
30
|
+
errors:
|
31
|
+
models:
|
32
|
+
task:
|
33
|
+
attributes:
|
34
|
+
base:
|
35
|
+
missing_result: 'Valid result missing.'
|
36
|
+
|
@@ -0,0 +1,29 @@
|
|
1
|
+
en:
|
2
|
+
vacancies:
|
3
|
+
index:
|
4
|
+
title: Vacancies
|
5
|
+
empty_collection: No vacancies available.
|
6
|
+
new:
|
7
|
+
title: New Vacancy
|
8
|
+
edit:
|
9
|
+
title: Edit Vacancy
|
10
|
+
show:
|
11
|
+
states:
|
12
|
+
open: Open
|
13
|
+
recommended: Recommended
|
14
|
+
denied: Denied
|
15
|
+
closed: Closed
|
16
|
+
events:
|
17
|
+
recommend: Recommend
|
18
|
+
accept_recommendation: Accept recommendation
|
19
|
+
deny_recommendation: Deny recommendation
|
20
|
+
close: Close
|
21
|
+
reopen: Reopen
|
22
|
+
|
23
|
+
activerecord:
|
24
|
+
errors:
|
25
|
+
models:
|
26
|
+
vacancy:
|
27
|
+
attributes:
|
28
|
+
limit:
|
29
|
+
reached: Limit of candidatures already reached
|
@@ -0,0 +1,26 @@
|
|
1
|
+
en:
|
2
|
+
simple_form:
|
3
|
+
"yes": 'Yes'
|
4
|
+
"no": 'No'
|
5
|
+
required:
|
6
|
+
text: 'required'
|
7
|
+
mark: '*'
|
8
|
+
# You can uncomment the line below if you need to overwrite the whole required html.
|
9
|
+
# When using html, text and mark won't be used.
|
10
|
+
# html: '<abbr title="required">*</abbr>'
|
11
|
+
error_notification:
|
12
|
+
default_message: "Please review the problems below:"
|
13
|
+
# Labels and hints examples
|
14
|
+
# labels:
|
15
|
+
# defaults:
|
16
|
+
# password: 'Password'
|
17
|
+
# user:
|
18
|
+
# new:
|
19
|
+
# email: 'E-mail to sign in.'
|
20
|
+
# edit:
|
21
|
+
# email: 'E-mail.'
|
22
|
+
# hints:
|
23
|
+
# defaults:
|
24
|
+
# username: 'User name to sign in.'
|
25
|
+
# password: 'No special characters, please.'
|
26
|
+
|
@@ -0,0 +1,37 @@
|
|
1
|
+
en:
|
2
|
+
|
3
|
+
workflow:
|
4
|
+
index:
|
5
|
+
title: Workflow
|
6
|
+
assigned_tasks: Assigned Tasks
|
7
|
+
completed_tasks: Completed Tasks
|
8
|
+
|
9
|
+
project_owner:
|
10
|
+
index:
|
11
|
+
title: Project Owner
|
12
|
+
tasks: Tasks
|
13
|
+
|
14
|
+
user:
|
15
|
+
general:
|
16
|
+
steps:
|
17
|
+
general:
|
18
|
+
cancel: Cancel
|
19
|
+
cancel_successful: Task successfully cancelled.
|
20
|
+
next: Next
|
21
|
+
skip: Skip
|
22
|
+
|
23
|
+
index:
|
24
|
+
title: User
|
25
|
+
|
26
|
+
products:
|
27
|
+
no_name:
|
28
|
+
title: No Name
|
29
|
+
|
30
|
+
tasks:
|
31
|
+
next:
|
32
|
+
title: Next Task
|
33
|
+
unavailable: No further task available.
|
34
|
+
|
35
|
+
controllers:
|
36
|
+
vacancies:
|
37
|
+
candidatures:
|
data/config/routes.rb
ADDED
@@ -0,0 +1,188 @@
|
|
1
|
+
Rails.application.routes.draw do
|
2
|
+
devise_for :users, controllers: {
|
3
|
+
registrations: 'devise_extensions/registrations',
|
4
|
+
}
|
5
|
+
|
6
|
+
resources :areas do
|
7
|
+
resources :users, only: :index
|
8
|
+
resources :projects, only: :index
|
9
|
+
|
10
|
+
collection do
|
11
|
+
put :update_multiple
|
12
|
+
get :autocomplete
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
resources :professions do
|
17
|
+
collection do
|
18
|
+
put :update_multiple
|
19
|
+
get :autocomplete
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
resources :products do
|
24
|
+
resources :projects, only: [:index, :new]
|
25
|
+
|
26
|
+
collection do
|
27
|
+
put :update_multiple
|
28
|
+
get :autocomplete
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
resources :projects do
|
33
|
+
resources :users, only: :index
|
34
|
+
resources :vacancies, only: [:index, :new]
|
35
|
+
resources :stories, only: [:index, :new]
|
36
|
+
resources :comments, only: [:index, :new]
|
37
|
+
|
38
|
+
collection do
|
39
|
+
put :update_multiple
|
40
|
+
get :autocomplete
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
resources :vacancies do
|
45
|
+
resources :candidatures, only: [:index, :new]
|
46
|
+
resources :comments, only: [:index, :new]
|
47
|
+
|
48
|
+
collection do
|
49
|
+
put :update_multiple
|
50
|
+
get :autocomplete
|
51
|
+
end
|
52
|
+
|
53
|
+
member do
|
54
|
+
put :recommend
|
55
|
+
put :accept_recommendation
|
56
|
+
put :deny_recommendation
|
57
|
+
put :close
|
58
|
+
put :reopen
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
resources :candidatures do
|
63
|
+
resources :comments, only: [:index, :new]
|
64
|
+
|
65
|
+
collection do
|
66
|
+
put :update_multiple
|
67
|
+
get :autocomplete
|
68
|
+
end
|
69
|
+
|
70
|
+
member do
|
71
|
+
get :accept
|
72
|
+
get :deny
|
73
|
+
get :quit
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
resources :stories, only: [:create, :show, :edit, :update, :destroy] do
|
78
|
+
resources :tasks, only: [:index, :new]
|
79
|
+
|
80
|
+
collection do
|
81
|
+
put :update_multiple
|
82
|
+
get :autocomplete
|
83
|
+
end
|
84
|
+
|
85
|
+
member do
|
86
|
+
match 'setup_tasks' => 'stories#setup_tasks', via: [:get, :put]
|
87
|
+
match 'activate' => 'stories#activate', via: [:get, :put]
|
88
|
+
match 'complete' => 'stories#complete', via: [:get, :put]
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
resources :tasks do
|
93
|
+
resources :results, only: [:index, :new]
|
94
|
+
|
95
|
+
collection do
|
96
|
+
put :update_multiple
|
97
|
+
get :autocomplete
|
98
|
+
end
|
99
|
+
|
100
|
+
member do
|
101
|
+
match 'assign' => 'tasks#assign', via: [:get, :put]
|
102
|
+
match 'review' => 'tasks#review', via: [:get, :put]
|
103
|
+
match 'unassign' => 'tasks#unassign', via: [:get, :put]
|
104
|
+
match 'complete' => 'tasks#complete', via: [:get, :put]
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
resources :results do
|
109
|
+
collection do
|
110
|
+
put :update_multiple
|
111
|
+
get :autocomplete
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
115
|
+
resources :comments, only: [:new, :edit, :create, :update, :destroy]
|
116
|
+
|
117
|
+
resources :users do
|
118
|
+
resources :projects, only: :index
|
119
|
+
resources :candidatures, only: :index
|
120
|
+
|
121
|
+
collection do
|
122
|
+
put :update_multiple
|
123
|
+
get :autocomplete
|
124
|
+
get :languages
|
125
|
+
end
|
126
|
+
|
127
|
+
member do
|
128
|
+
match 'preferences', via: [:get, :put]
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
match 'workflow' => 'workflow#index', as: :workflow
|
133
|
+
|
134
|
+
namespace 'workflow' do
|
135
|
+
resources :project_owner, only: :index do
|
136
|
+
collection do
|
137
|
+
match 'tasks/:id/edit' => 'tasks#edit', as: :edit_task
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
141
|
+
resources :user, only: :index do
|
142
|
+
collection do
|
143
|
+
match 'products/:id' => 'products#show', as: :product
|
144
|
+
match 'stories/:story_id/tasks' => 'tasks#index', as: :tasks
|
145
|
+
match 'stories/:story_id/tasks/next' => 'tasks#next', as: :next_task
|
146
|
+
put 'tasks/:id' => 'tasks#update', as: :update_task
|
147
|
+
match 'tasks/:id/edit' => 'tasks#edit', as: :edit_task
|
148
|
+
|
149
|
+
match 'tasks/:id/assign' => 'tasks#assign', as: :assign_task
|
150
|
+
match 'tasks/:id/review' => 'tasks#review', as: :review_task
|
151
|
+
match 'tasks/:id/unassign' => 'tasks#unassign', as: :unassign_task
|
152
|
+
match 'tasks/:id/complete' => 'tasks#complete', as: :complete_task
|
153
|
+
end
|
154
|
+
end
|
155
|
+
|
156
|
+
resources :vacancies, controller: 'vacancies', only: :index do
|
157
|
+
collection do
|
158
|
+
match '/' => 'vacancies#open', as: :open
|
159
|
+
|
160
|
+
get :autocomplete
|
161
|
+
|
162
|
+
get :open
|
163
|
+
get :recommended
|
164
|
+
get :denied
|
165
|
+
get :closed
|
166
|
+
end
|
167
|
+
end
|
168
|
+
|
169
|
+
resources :candidatures, controller: 'candidatures', only: :index do
|
170
|
+
collection do
|
171
|
+
match '/' => 'candidatures#new', as: :new
|
172
|
+
|
173
|
+
get :autocomplete
|
174
|
+
|
175
|
+
get :new
|
176
|
+
get :accepted
|
177
|
+
get :denied
|
178
|
+
end
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
182
|
+
resources :pages do
|
183
|
+
collection do
|
184
|
+
put :update_multiple
|
185
|
+
get :autocomplete
|
186
|
+
end
|
187
|
+
end
|
188
|
+
end
|