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
data/lib/generators/voluntary/install/templates/vendor/assets/stylesheets/token-input-facebook.css
ADDED
@@ -0,0 +1,122 @@
|
|
1
|
+
/* Example tokeninput style #2: Facebook style */
|
2
|
+
ul.token-input-list-facebook {
|
3
|
+
overflow: hidden;
|
4
|
+
height: auto !important;
|
5
|
+
height: 1%;
|
6
|
+
width: 400px;
|
7
|
+
border: 1px solid #8496ba;
|
8
|
+
cursor: text;
|
9
|
+
font-size: 12px;
|
10
|
+
font-family: Verdana, sans-serif;
|
11
|
+
min-height: 1px;
|
12
|
+
z-index: 999;
|
13
|
+
margin: 0;
|
14
|
+
padding: 0;
|
15
|
+
background-color: #fff;
|
16
|
+
list-style-type: none;
|
17
|
+
clear: left;
|
18
|
+
}
|
19
|
+
|
20
|
+
ul.token-input-list-facebook li input {
|
21
|
+
border: 0;
|
22
|
+
width: 100px;
|
23
|
+
padding: 3px 8px;
|
24
|
+
background-color: white;
|
25
|
+
margin: 2px 0;
|
26
|
+
-webkit-appearance: caret;
|
27
|
+
}
|
28
|
+
|
29
|
+
li.token-input-token-facebook {
|
30
|
+
overflow: hidden;
|
31
|
+
height: auto !important;
|
32
|
+
height: 15px;
|
33
|
+
margin: 3px;
|
34
|
+
padding: 1px 3px;
|
35
|
+
background-color: #eff2f7;
|
36
|
+
color: #000;
|
37
|
+
cursor: default;
|
38
|
+
border: 1px solid #ccd5e4;
|
39
|
+
font-size: 11px;
|
40
|
+
border-radius: 5px;
|
41
|
+
-moz-border-radius: 5px;
|
42
|
+
-webkit-border-radius: 5px;
|
43
|
+
float: left;
|
44
|
+
white-space: nowrap;
|
45
|
+
}
|
46
|
+
|
47
|
+
li.token-input-token-facebook p {
|
48
|
+
display: inline;
|
49
|
+
padding: 0;
|
50
|
+
margin: 0;
|
51
|
+
}
|
52
|
+
|
53
|
+
li.token-input-token-facebook span {
|
54
|
+
color: #a6b3cf;
|
55
|
+
margin-left: 5px;
|
56
|
+
font-weight: bold;
|
57
|
+
cursor: pointer;
|
58
|
+
}
|
59
|
+
|
60
|
+
li.token-input-selected-token-facebook {
|
61
|
+
background-color: #5670a6;
|
62
|
+
border: 1px solid #3b5998;
|
63
|
+
color: #fff;
|
64
|
+
}
|
65
|
+
|
66
|
+
li.token-input-input-token-facebook {
|
67
|
+
float: left;
|
68
|
+
margin: 0;
|
69
|
+
padding: 0;
|
70
|
+
list-style-type: none;
|
71
|
+
}
|
72
|
+
|
73
|
+
div.token-input-dropdown-facebook {
|
74
|
+
position: absolute;
|
75
|
+
width: 400px;
|
76
|
+
background-color: #fff;
|
77
|
+
overflow: hidden;
|
78
|
+
border-left: 1px solid #ccc;
|
79
|
+
border-right: 1px solid #ccc;
|
80
|
+
border-bottom: 1px solid #ccc;
|
81
|
+
cursor: default;
|
82
|
+
font-size: 11px;
|
83
|
+
font-family: Verdana, sans-serif;
|
84
|
+
z-index: 1;
|
85
|
+
}
|
86
|
+
|
87
|
+
div.token-input-dropdown-facebook p {
|
88
|
+
margin: 0;
|
89
|
+
padding: 5px;
|
90
|
+
font-weight: bold;
|
91
|
+
color: #777;
|
92
|
+
}
|
93
|
+
|
94
|
+
div.token-input-dropdown-facebook ul {
|
95
|
+
margin: 0;
|
96
|
+
padding: 0;
|
97
|
+
}
|
98
|
+
|
99
|
+
div.token-input-dropdown-facebook ul li {
|
100
|
+
background-color: #fff;
|
101
|
+
padding: 3px;
|
102
|
+
margin: 0;
|
103
|
+
list-style-type: none;
|
104
|
+
}
|
105
|
+
|
106
|
+
div.token-input-dropdown-facebook ul li.token-input-dropdown-item-facebook {
|
107
|
+
background-color: #fff;
|
108
|
+
}
|
109
|
+
|
110
|
+
div.token-input-dropdown-facebook ul li.token-input-dropdown-item2-facebook {
|
111
|
+
background-color: #fff;
|
112
|
+
}
|
113
|
+
|
114
|
+
div.token-input-dropdown-facebook ul li em {
|
115
|
+
font-weight: bold;
|
116
|
+
font-style: normal;
|
117
|
+
}
|
118
|
+
|
119
|
+
div.token-input-dropdown-facebook ul li.token-input-selected-dropdown-item-facebook {
|
120
|
+
background-color: #3b5998;
|
121
|
+
color: #fff;
|
122
|
+
}
|
@@ -0,0 +1,204 @@
|
|
1
|
+
/* Example tokeninput style #2: Mac Style */
|
2
|
+
fieldset.token-input-mac {
|
3
|
+
position: relative;
|
4
|
+
padding: 0;
|
5
|
+
margin: 5px 0;
|
6
|
+
background: #fff;
|
7
|
+
width: 400px;
|
8
|
+
border: 1px solid #A4BDEC;
|
9
|
+
border-radius: 10px;
|
10
|
+
-moz-border-radius: 10px;
|
11
|
+
-webkit-border-radius: 10px;
|
12
|
+
}
|
13
|
+
|
14
|
+
fieldset.token-input-mac.token-input-dropdown-mac {
|
15
|
+
border-radius: 10px 10px 0 0;
|
16
|
+
-moz-border-radius: 10px 10px 0 0;
|
17
|
+
-webkit-border-radius: 10px 10px 0 0;
|
18
|
+
box-shadow: 0 5px 20px 0 rgba(0,0,0,0.25);
|
19
|
+
-moz-box-shadow: 0 5px 20px 0 rgba(0,0,0,0.25);
|
20
|
+
-webkit-box-shadow: 0 5px 20px 0 rgba(0,0,0,0.25);
|
21
|
+
}
|
22
|
+
|
23
|
+
ul.token-input-list-mac {
|
24
|
+
overflow: hidden;
|
25
|
+
height: auto !important;
|
26
|
+
height: 1%;
|
27
|
+
cursor: text;
|
28
|
+
font-size: 12px;
|
29
|
+
font-family: Verdana, sans-serif;
|
30
|
+
min-height: 1px;
|
31
|
+
z-index: 999;
|
32
|
+
margin: 0;
|
33
|
+
padding: 3px;
|
34
|
+
background: transparent;
|
35
|
+
}
|
36
|
+
|
37
|
+
ul.token-input-list-mac.error {
|
38
|
+
border: 1px solid #C52020;
|
39
|
+
}
|
40
|
+
|
41
|
+
ul.token-input-list-mac li {
|
42
|
+
list-style-type: none;
|
43
|
+
}
|
44
|
+
|
45
|
+
li.token-input-token-mac p {
|
46
|
+
display: inline;
|
47
|
+
padding: 0;
|
48
|
+
margin: 0;
|
49
|
+
}
|
50
|
+
|
51
|
+
li.token-input-token-mac span {
|
52
|
+
color: #a6b3cf;
|
53
|
+
margin-left: 5px;
|
54
|
+
font-weight: bold;
|
55
|
+
cursor: pointer;
|
56
|
+
}
|
57
|
+
|
58
|
+
/* TOKENS */
|
59
|
+
|
60
|
+
li.token-input-token-mac {
|
61
|
+
font-family: "Lucida Grande", Arial, sans-serif;
|
62
|
+
font-size: 9pt;
|
63
|
+
line-height: 12pt;
|
64
|
+
overflow: hidden;
|
65
|
+
height: 16px;
|
66
|
+
margin: 3px;
|
67
|
+
padding: 0 10px;
|
68
|
+
background: none;
|
69
|
+
background-color: #dee7f8;
|
70
|
+
color: #000;
|
71
|
+
cursor: default;
|
72
|
+
border: 1px solid #a4bdec;
|
73
|
+
border-radius: 15px;
|
74
|
+
-moz-border-radius: 15px;
|
75
|
+
-webkit-border-radius: 15px;
|
76
|
+
float: left;
|
77
|
+
}
|
78
|
+
|
79
|
+
li.token-input-highlighted-token-mac {
|
80
|
+
background-color: #bbcef1;
|
81
|
+
border: 1px solid #598bec;
|
82
|
+
color: #000;
|
83
|
+
}
|
84
|
+
|
85
|
+
li.token-input-selected-token-mac {
|
86
|
+
background-color: #598bec;
|
87
|
+
border: 1px solid transparent;
|
88
|
+
color: #fff;
|
89
|
+
}
|
90
|
+
|
91
|
+
li.token-input-highlighted-token-mac span.token-input-delete-token-mac {
|
92
|
+
color: #000;
|
93
|
+
}
|
94
|
+
|
95
|
+
li.token-input-selected-token-mac span.token-input-delete-token-mac {
|
96
|
+
color: #fff;
|
97
|
+
}
|
98
|
+
|
99
|
+
li.token-input-input-token-mac {
|
100
|
+
border: none;
|
101
|
+
background: transparent;
|
102
|
+
float: left;
|
103
|
+
padding: 0;
|
104
|
+
margin: 0;
|
105
|
+
}
|
106
|
+
|
107
|
+
li.token-input-input-token-mac input {
|
108
|
+
border: 0;
|
109
|
+
width: 100px;
|
110
|
+
padding: 3px;
|
111
|
+
background-color: transparent;
|
112
|
+
margin: 0;
|
113
|
+
}
|
114
|
+
|
115
|
+
div.token-input-dropdown-mac {
|
116
|
+
position: absolute;
|
117
|
+
border: 1px solid #A4BDEC;
|
118
|
+
border-top: none;
|
119
|
+
left: -1px;
|
120
|
+
right: -1px;
|
121
|
+
background-color: #fff;
|
122
|
+
overflow: hidden;
|
123
|
+
cursor: default;
|
124
|
+
font-size: 10pt;
|
125
|
+
font-family: "Lucida Grande", Arial, sans-serif;
|
126
|
+
padding: 5px;
|
127
|
+
border-radius: 0 0 10px 10px;
|
128
|
+
-moz-border-radius: 0 0 10px 10px;
|
129
|
+
-webkit-border-radius: 0 0 10px 10px;
|
130
|
+
box-shadow: 0 5px 20px 0 rgba(0,0,0,0.25);
|
131
|
+
-moz-box-shadow: 0 5px 20px 0 rgba(0,0,0,0.25);
|
132
|
+
-webkit-box-shadow: 0 5px 20px 0 rgba(0,0,0,0.25);
|
133
|
+
clip:rect(0px, 1000px, 1000px, -10px);
|
134
|
+
}
|
135
|
+
|
136
|
+
div.token-input-dropdown-mac p {
|
137
|
+
font-size: 8pt;
|
138
|
+
margin: 0;
|
139
|
+
padding: 0 5px;
|
140
|
+
font-style: italic;
|
141
|
+
color: #aaa;
|
142
|
+
}
|
143
|
+
|
144
|
+
div.token-input-dropdown-mac h3.token-input-dropdown-category-mac {
|
145
|
+
font-family: "Lucida Grande", Arial, sans-serif;
|
146
|
+
font-size: 10pt;
|
147
|
+
font-weight: bold;
|
148
|
+
border: none;
|
149
|
+
padding: 0 5px;
|
150
|
+
margin: 0;
|
151
|
+
}
|
152
|
+
|
153
|
+
div.token-input-dropdown-mac ul {
|
154
|
+
margin: 0;
|
155
|
+
padding: 0;
|
156
|
+
}
|
157
|
+
|
158
|
+
div.token-input-dropdown-mac ul li {
|
159
|
+
list-style-type: none;
|
160
|
+
cursor: pointer;
|
161
|
+
background: none;
|
162
|
+
background-color: #fff;
|
163
|
+
margin: 0;
|
164
|
+
padding: 0 0 0 25px;
|
165
|
+
}
|
166
|
+
|
167
|
+
div.token-input-dropdown-mac ul li.token-input-dropdown-item-mac {
|
168
|
+
background-color: #fff;
|
169
|
+
}
|
170
|
+
|
171
|
+
div.token-input-dropdown-mac ul li.token-input-dropdown-item-mac.odd {
|
172
|
+
background-color: #ECF4F9;
|
173
|
+
border-radius: 15px;
|
174
|
+
-moz-border-radius: 15px;
|
175
|
+
-webkit-border-radius: 15px;
|
176
|
+
}
|
177
|
+
|
178
|
+
div.token-input-dropdown-mac ul li.token-input-dropdown-item-mac span.token-input-dropdown-item-description-mac {
|
179
|
+
float: right;
|
180
|
+
font-size: 8pt;
|
181
|
+
font-style: italic;
|
182
|
+
padding: 0 10px 0 0;
|
183
|
+
color: #999;
|
184
|
+
}
|
185
|
+
|
186
|
+
div.token-input-dropdown-mac ul li strong {
|
187
|
+
font-weight: bold;
|
188
|
+
text-decoration: underline;
|
189
|
+
font-style: none;
|
190
|
+
}
|
191
|
+
|
192
|
+
div.token-input-dropdown-mac ul li.token-input-selected-dropdown-item-mac,
|
193
|
+
div.token-input-dropdown-mac ul li.token-input-selected-dropdown-item-mac.odd {
|
194
|
+
background-color: #598bec;
|
195
|
+
color: #fff;
|
196
|
+
border-radius: 15px;
|
197
|
+
-moz-border-radius: 15px;
|
198
|
+
-webkit-border-radius: 15px;
|
199
|
+
}
|
200
|
+
|
201
|
+
div.token-input-dropdown-mac ul li.token-input-selected-dropdown-item-mac span.token-input-dropdown-item-description-mac,
|
202
|
+
div.token-input-dropdown-mac ul li.token-input-selected-dropdown-item-mac.odd span.token-input-dropdown-item-description-mac {
|
203
|
+
color: #fff;
|
204
|
+
}
|
@@ -0,0 +1,127 @@
|
|
1
|
+
/* Example tokeninput style #1: Token vertical list*/
|
2
|
+
ul.token-input-list {
|
3
|
+
overflow: hidden;
|
4
|
+
height: auto !important;
|
5
|
+
height: 1%;
|
6
|
+
width: 400px;
|
7
|
+
border: 1px solid #999;
|
8
|
+
cursor: text;
|
9
|
+
font-size: 12px;
|
10
|
+
font-family: Verdana, sans-serif;
|
11
|
+
z-index: 999;
|
12
|
+
margin: 0;
|
13
|
+
padding: 0;
|
14
|
+
background-color: #fff;
|
15
|
+
list-style-type: none;
|
16
|
+
clear: left;
|
17
|
+
}
|
18
|
+
|
19
|
+
ul.token-input-list li {
|
20
|
+
list-style-type: none;
|
21
|
+
}
|
22
|
+
|
23
|
+
ul.token-input-list li input {
|
24
|
+
border: 0;
|
25
|
+
width: 350px;
|
26
|
+
padding: 3px 8px;
|
27
|
+
background-color: white;
|
28
|
+
-webkit-appearance: caret;
|
29
|
+
}
|
30
|
+
|
31
|
+
ul.token-input-disabled,
|
32
|
+
ul.token-input-disabled li input {
|
33
|
+
background-color: #E8E8E8;
|
34
|
+
}
|
35
|
+
|
36
|
+
ul.token-input-disabled li.token-input-token {
|
37
|
+
background-color: #D9E3CA;
|
38
|
+
color: #7D7D7D
|
39
|
+
}
|
40
|
+
|
41
|
+
ul.token-input-disabled li.token-input-token span {
|
42
|
+
color: #CFCFCF;
|
43
|
+
cursor: default;
|
44
|
+
}
|
45
|
+
|
46
|
+
li.token-input-token {
|
47
|
+
overflow: hidden;
|
48
|
+
height: auto !important;
|
49
|
+
height: 1%;
|
50
|
+
margin: 3px;
|
51
|
+
padding: 3px 5px;
|
52
|
+
background-color: #d0efa0;
|
53
|
+
color: #000;
|
54
|
+
font-weight: bold;
|
55
|
+
cursor: default;
|
56
|
+
display: block;
|
57
|
+
}
|
58
|
+
|
59
|
+
li.token-input-token p {
|
60
|
+
float: left;
|
61
|
+
padding: 0;
|
62
|
+
margin: 0;
|
63
|
+
}
|
64
|
+
|
65
|
+
li.token-input-token span {
|
66
|
+
float: right;
|
67
|
+
color: #777;
|
68
|
+
cursor: pointer;
|
69
|
+
}
|
70
|
+
|
71
|
+
li.token-input-selected-token {
|
72
|
+
background-color: #08844e;
|
73
|
+
color: #fff;
|
74
|
+
}
|
75
|
+
|
76
|
+
li.token-input-selected-token span {
|
77
|
+
color: #bbb;
|
78
|
+
}
|
79
|
+
|
80
|
+
div.token-input-dropdown {
|
81
|
+
position: absolute;
|
82
|
+
width: 400px;
|
83
|
+
background-color: #fff;
|
84
|
+
overflow: hidden;
|
85
|
+
border-left: 1px solid #ccc;
|
86
|
+
border-right: 1px solid #ccc;
|
87
|
+
border-bottom: 1px solid #ccc;
|
88
|
+
cursor: default;
|
89
|
+
font-size: 12px;
|
90
|
+
font-family: Verdana, sans-serif;
|
91
|
+
z-index: 1;
|
92
|
+
}
|
93
|
+
|
94
|
+
div.token-input-dropdown p {
|
95
|
+
margin: 0;
|
96
|
+
padding: 5px;
|
97
|
+
font-weight: bold;
|
98
|
+
color: #777;
|
99
|
+
}
|
100
|
+
|
101
|
+
div.token-input-dropdown ul {
|
102
|
+
margin: 0;
|
103
|
+
padding: 0;
|
104
|
+
}
|
105
|
+
|
106
|
+
div.token-input-dropdown ul li {
|
107
|
+
background-color: #fff;
|
108
|
+
padding: 3px;
|
109
|
+
list-style-type: none;
|
110
|
+
}
|
111
|
+
|
112
|
+
div.token-input-dropdown ul li.token-input-dropdown-item {
|
113
|
+
background-color: #fafafa;
|
114
|
+
}
|
115
|
+
|
116
|
+
div.token-input-dropdown ul li.token-input-dropdown-item2 {
|
117
|
+
background-color: #fff;
|
118
|
+
}
|
119
|
+
|
120
|
+
div.token-input-dropdown ul li em {
|
121
|
+
font-weight: bold;
|
122
|
+
font-style: normal;
|
123
|
+
}
|
124
|
+
|
125
|
+
div.token-input-dropdown ul li.token-input-selected-dropdown-item {
|
126
|
+
background-color: #d0efa0;
|
127
|
+
}
|