fat_free_crm 0.13.6 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of fat_free_crm might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.rubocop.yml +5 -0
- data/.travis.yml +8 -5
- data/CHANGELOG +26 -0
- data/Gemfile +26 -26
- data/Gemfile.lock +280 -250
- data/Guardfile +0 -1
- data/README.md +7 -9
- data/Rakefile +1 -1
- data/app/assets/javascripts/application.js.erb +1 -0
- data/app/assets/javascripts/crm.js.coffee +6 -7
- data/app/assets/javascripts/search.js.coffee +7 -1
- data/app/assets/stylesheets/about.css.scss +10 -0
- data/app/assets/stylesheets/application.css.erb +2 -0
- data/app/assets/stylesheets/common.scss +1 -1
- data/app/controllers/admin/application_controller.rb +3 -3
- data/app/controllers/admin/field_groups_controller.rb +12 -7
- data/app/controllers/admin/fields_controller.rb +21 -17
- data/app/controllers/admin/groups_controller.rb +10 -4
- data/app/controllers/admin/plugins_controller.rb +1 -2
- data/app/controllers/admin/settings_controller.rb +1 -2
- data/app/controllers/admin/tags_controller.rb +10 -4
- data/app/controllers/admin/users_controller.rb +32 -12
- data/app/controllers/application_controller.rb +58 -38
- data/app/controllers/authentications_controller.rb +5 -8
- data/app/controllers/comments_controller.rb +15 -11
- data/app/controllers/emails_controller.rb +1 -2
- data/app/controllers/entities/accounts_controller.rb +20 -20
- data/app/controllers/entities/campaigns_controller.rb +25 -22
- data/app/controllers/entities/contacts_controller.rb +25 -24
- data/app/controllers/entities/leads_controller.rb +33 -31
- data/app/controllers/entities/opportunities_controller.rb +31 -28
- data/app/controllers/entities_controller.rb +26 -22
- data/app/controllers/home_controller.rb +18 -18
- data/app/controllers/lists_controller.rb +11 -7
- data/app/controllers/passwords_controller.rb +5 -6
- data/app/controllers/tasks_controller.rb +23 -18
- data/app/controllers/users_controller.rb +31 -7
- data/app/helpers/accounts_helper.rb +40 -42
- data/app/helpers/addresses_helper.rb +1 -3
- data/app/helpers/admin/application_helper.rb +4 -4
- data/app/helpers/admin/field_groups_helper.rb +5 -7
- data/app/helpers/admin/fields_helper.rb +2 -3
- data/app/helpers/admin/plugins_helper.rb +0 -1
- data/app/helpers/admin/settings_helper.rb +0 -1
- data/app/helpers/admin/tags_helper.rb +1 -1
- data/app/helpers/admin/users_helper.rb +16 -18
- data/app/helpers/application_helper.rb +127 -119
- data/app/helpers/authentications_helper.rb +0 -1
- data/app/helpers/campaigns_helper.rb +5 -7
- data/app/helpers/comments_helper.rb +0 -1
- data/app/helpers/contacts_helper.rb +0 -1
- data/app/helpers/home_helper.rb +14 -14
- data/app/helpers/javascript_helper.rb +30 -0
- data/app/helpers/leads_helper.rb +7 -7
- data/app/helpers/opportunities_helper.rb +8 -10
- data/app/helpers/passwords_helper.rb +0 -1
- data/app/helpers/tags_helper.rb +1 -3
- data/app/helpers/tasks_helper.rb +24 -26
- data/app/helpers/users_helper.rb +6 -7
- data/app/helpers/versions_helper.rb +3 -5
- data/app/inputs/date_pair_input.rb +6 -7
- data/app/inputs/date_time_input.rb +3 -4
- data/app/inputs/datetime_pair_input.rb +0 -1
- data/app/inputs/text_input.rb +2 -2
- data/app/mailers/dropbox_mailer.rb +4 -7
- data/app/mailers/subscription_mailer.rb +4 -5
- data/app/mailers/user_mailer.rb +7 -9
- data/app/models/entities/account.rb +31 -28
- data/app/models/entities/account_contact.rb +2 -1
- data/app/models/entities/account_opportunity.rb +1 -1
- data/app/models/entities/campaign.rb +22 -19
- data/app/models/entities/contact.rb +55 -53
- data/app/models/entities/contact_opportunity.rb +1 -1
- data/app/models/entities/lead.rb +49 -41
- data/app/models/entities/opportunity.rb +38 -38
- data/app/models/fields/custom_field.rb +21 -27
- data/app/models/fields/custom_field_date_pair.rb +7 -8
- data/app/models/fields/custom_field_datetime_pair.rb +0 -2
- data/app/models/fields/custom_field_pair.rb +8 -10
- data/app/models/fields/field.rb +29 -30
- data/app/models/fields/field_group.rb +4 -4
- data/app/models/list.rb +1 -1
- data/app/models/observers/entity_observer.rb +1 -1
- data/app/models/observers/lead_observer.rb +1 -1
- data/app/models/observers/opportunity_observer.rb +1 -1
- data/app/models/observers/task_observer.rb +1 -1
- data/app/models/polymorphic/address.rb +7 -7
- data/app/models/polymorphic/avatar.rb +8 -9
- data/app/models/polymorphic/comment.rb +16 -10
- data/app/models/polymorphic/email.rb +13 -6
- data/app/models/polymorphic/tag.rb +2 -2
- data/app/models/polymorphic/task.rb +45 -45
- data/{config/initializers/paper_trail.rb → app/models/polymorphic/version.rb} +26 -31
- data/app/models/setting.rb +12 -17
- data/app/models/users/ability.rb +5 -6
- data/app/models/users/authentication.rb +6 -5
- data/app/models/users/group.rb +1 -3
- data/app/models/users/permission.rb +3 -3
- data/app/models/users/preference.rb +7 -7
- data/app/models/users/user.rb +36 -43
- data/app/views/accounts/_top_section.html.haml +2 -2
- data/app/views/accounts/edit.js.haml +0 -1
- data/app/views/admin/fields/_field.html.haml +1 -1
- data/app/views/admin/tags/_tag.html.haml +1 -1
- data/app/views/admin/users/_user.html.haml +4 -4
- data/app/views/campaigns/_top_section.html.haml +1 -1
- data/app/views/campaigns/edit.js.haml +0 -2
- data/app/views/contacts/_top_section.html.haml +1 -1
- data/app/views/contacts/edit.js.haml +0 -1
- data/app/views/entities/_basic_search.html.haml +1 -1
- data/app/views/home/_account.html.haml +2 -2
- data/app/views/home/_opportunity.html.haml +2 -2
- data/app/views/layouts/_about.html.haml +1 -1
- data/app/views/leads/_top_section.html.haml +1 -1
- data/app/views/leads/edit.js.haml +0 -2
- data/app/views/lists/_sidebar.html.haml +1 -1
- data/app/views/opportunities/_top_section.html.haml +2 -2
- data/app/views/opportunities/edit.js.haml +0 -1
- data/app/views/shared/_tags.html.haml +2 -1
- data/app/views/tasks/_edit.html.haml +2 -3
- data/app/views/tasks/_top_section.html.haml +1 -1
- data/app/views/users/_user.html.haml +2 -1
- data/app/views/users/opportunities_overview.html.haml +2 -2
- data/bin/bundle +3 -0
- data/bin/rails +4 -0
- data/bin/rake +4 -0
- data/config/application.rb +16 -33
- data/config/boot.rb +1 -1
- data/config/database.mysql.mac.yml +1 -0
- data/config/database.mysql.yml +1 -0
- data/config/database.postgres.docker.yml +1 -1
- data/config/database.postgres.yml +1 -0
- data/config/database.sqlite.yml +1 -0
- data/config/deploy.example.rb +3 -5
- data/config/environments/development.rb +13 -14
- data/config/environments/production.rb +8 -7
- data/config/environments/staging.rb +43 -41
- data/config/environments/test.rb +12 -14
- data/config/initializers/assets.rb +14 -0
- data/config/initializers/backtrace_silencers.rb +7 -0
- data/config/initializers/cookies_serializer.rb +3 -0
- data/config/initializers/custom_field_ransack_translations.rb +1 -1
- data/config/initializers/filter_parameter_logging.rb +4 -0
- data/config/initializers/inflections.rb +16 -0
- data/config/initializers/mime_types.rb +0 -1
- data/config/initializers/paginate_arrays.rb +0 -1
- data/config/initializers/ransack.rb +5 -5
- data/config/initializers/session_store.rb +5 -0
- data/config/initializers/simple_form.rb +1 -1
- data/config/initializers/views.rb +33 -33
- data/config/initializers/wrap_parameters.rb +14 -0
- data/config/locales/cz_fat_free_crm.yml +1 -1
- data/config/locales/de_fat_free_crm.yml +2 -2
- data/config/locales/en-GB_fat_free_crm.yml +2 -3
- data/config/locales/en-US_fat_free_crm.yml +2 -3
- data/config/locales/en.yml +23 -0
- data/config/locales/es-CL.yml +227 -0
- data/config/locales/es-CL_fat_free_crm.yml +929 -0
- data/config/locales/es-CL_ransack.yml +91 -0
- data/config/locales/es.yml +53 -59
- data/config/locales/es_fat_free_crm.yml +708 -370
- data/config/locales/es_ransack.yml +91 -0
- data/config/locales/fr-CA_fat_free_crm.yml +7 -7
- data/config/locales/fr_fat_free_crm.yml +285 -81
- data/config/locales/it_fat_free_crm.yml +1 -1
- data/config/locales/ja_fat_free_crm.yml +1 -1
- data/config/locales/nl.yml +210 -0
- data/config/locales/nl_fat_free_crm.yml +920 -0
- data/config/locales/nl_ransack.yml +91 -0
- data/config/locales/pl_fat_free_crm.yml +1 -1
- data/config/locales/pt-BR_fat_free_crm.yml +111 -38
- data/config/locales/ru_fat_free_crm.yml +3 -4
- data/config/locales/sv-SE_fat_free_crm.yml +1 -1
- data/config/locales/th.rb +157 -158
- data/config/locales/th_fat_free_crm.yml +1 -1
- data/config/locales/zh-CN_fat_free_crm.yml +3 -4
- data/config/routes.rb +93 -94
- data/config/unicorn.rb +25 -2
- data/custom_plan.rb +0 -2
- data/db/demo/accounts.yml +4 -5
- data/db/demo/addresses.yml +5 -5
- data/db/demo/campaigns.yml +2 -2
- data/db/demo/comments.yml +1 -1
- data/db/demo/contacts.yml +8 -8
- data/db/demo/emails.yml +5 -5
- data/db/demo/leads.yml +10 -10
- data/db/demo/opportunities.yml +2 -2
- data/db/demo/tasks.yml +2 -2
- data/db/demo/users.yml +12 -16
- data/db/migrate/20100928030598_create_sessions.rb +1 -2
- data/db/migrate/20100928030599_create_users.rb +24 -25
- data/db/migrate/20100928030600_create_openid_tables.rb +11 -12
- data/db/migrate/20100928030601_create_accounts.rb +14 -15
- data/db/migrate/20100928030602_create_permissions.rb +2 -3
- data/db/migrate/20100928030603_create_settings.rb +4 -5
- data/db/migrate/20100928030604_create_preferences.rb +3 -4
- data/db/migrate/20100928030605_create_campaigns.rb +19 -20
- data/db/migrate/20100928030606_create_leads.rb +26 -27
- data/db/migrate/20100928030607_create_contacts.rb +26 -27
- data/db/migrate/20100928030608_create_opportunities.rb +15 -16
- data/db/migrate/20100928030609_create_account_contacts.rb +2 -3
- data/db/migrate/20100928030610_create_account_opportunities.rb +2 -3
- data/db/migrate/20100928030611_create_contact_opportunities.rb +3 -4
- data/db/migrate/20100928030612_create_tasks.rb +14 -15
- data/db/migrate/20100928030613_create_comments.rb +6 -7
- data/db/migrate/20100928030614_create_activities.rb +6 -7
- data/db/migrate/20100928030615_create_avatars.rb +5 -6
- data/db/migrate/20100928030616_rename_remember_token.rb +0 -1
- data/db/migrate/20100928030617_drop_openid_tables.rb +11 -11
- data/db/migrate/20100928030618_add_admin_to_users.rb +1 -2
- data/db/migrate/20100928030619_add_suspended_to_users.rb +0 -1
- data/db/migrate/20100928030620_remove_uuid.rb +3 -3
- data/db/migrate/20100928030621_add_email_to_accounts.rb +1 -2
- data/db/migrate/20100928030622_add_background_info_to_models.rb +0 -1
- data/db/migrate/20100928030623_create_addresses.rb +14 -16
- data/db/migrate/20100928030624_add_index_on_permissions.rb +2 -3
- data/db/migrate/20100928030625_create_emails.rb +15 -16
- data/db/migrate/20100928030626_add_state_to_timeline_objects.rb +2 -3
- data/db/migrate/20100928030627_acts_as_taggable_on_migration.rb +2 -3
- data/db/migrate/20101221123456_add_single_access_token_to_users.rb +0 -1
- data/db/migrate/20101221345678_add_rating_and_category_to_accounts.rb +2 -3
- data/db/migrate/20110719082054_add_skype_to_contacts_and_leads.rb +2 -3
- data/db/migrate/20111101083437_create_fields.rb +14 -15
- data/db/migrate/20111101090312_create_field_groups.rb +4 -5
- data/db/migrate/20111116091952_add_field_groups_tag_id.rb +0 -1
- data/db/migrate/20111117041311_change_fields_collection_to_text.rb +0 -1
- data/db/migrate/20111201030535_add_field_groups_klass_name.rb +4 -4
- data/db/migrate/20120121054235_create_lists.rb +1 -1
- data/db/migrate/20120216031616_create_versions.rb +5 -5
- data/db/migrate/20120216042541_is_paranoid_to_paper_trail.rb +1 -3
- data/db/migrate/20120224073107_remove_default_value_and_clear_settings.rb +1 -1
- data/db/migrate/20120316045804_activities_to_versions.rb +6 -6
- data/db/migrate/20120405080727_change_subscribed_users_to_set.rb +5 -5
- data/db/migrate/20120405080742_change_further_subscribed_users_to_set.rb +5 -5
- data/db/migrate/20120406082136_create_groups.rb +1 -1
- data/db/migrate/20120510025219_add_not_null_constraints_for_timestamp_columns.rb +2 -1
- data/db/migrate/20120528102124_increase_length_of_version_events.rb +2 -2
- data/db/migrate/20121003063155_add_settings_to_custom_fields.rb +1 -1
- data/db/migrate/20121221033947_fix_country_mapping.rb +0 -1
- data/db/migrate/20131207033244_add_user_id_to_lists.rb +1 -1
- data/db/migrate/20141126031837_increase_email_to254_chars.rb +14 -14
- data/db/migrate/20141230021159_add_transaction_id_column_to_versions.rb +11 -0
- data/db/migrate/20141230205453_add_missing_unique_indices.acts_as_taggable_on_engine.rb +20 -0
- data/db/migrate/20141230205454_add_taggings_counter_cache_to_tags.acts_as_taggable_on_engine.rb +15 -0
- data/db/migrate/20141230205455_add_missing_taggable_index.acts_as_taggable_on_engine.rb +10 -0
- data/db/migrate/20150123060900_convert_radio_to_radio_buttons.rb +10 -0
- data/db/migrate/20150227123054_remove_last_request_at_from_users.rb +5 -0
- data/db/migrate/20150427131956_create_index_related_type.rb +9 -0
- data/db/migrate/20160511053730_add_account_contacts_index.rb +5 -0
- data/db/schema.rb +236 -228
- data/db/seeds.rb +1 -2
- data/db/seeds/fields.rb +36 -37
- data/{fig.yml → docker-compose.yml} +0 -0
- data/fat_free_crm.gemspec +31 -18
- data/lib/development_tasks/license.rake +29 -29
- data/lib/fat_free_crm.rb +1 -5
- data/lib/fat_free_crm/callback.rb +28 -20
- data/lib/fat_free_crm/comment_extensions.rb +1 -1
- data/lib/fat_free_crm/core_ext.rb +1 -1
- data/lib/fat_free_crm/core_ext/nil.rb +0 -3
- data/lib/fat_free_crm/core_ext/string.rb +7 -21
- data/lib/fat_free_crm/custom_fields.rb +2 -2
- data/lib/fat_free_crm/engine.rb +14 -0
- data/lib/fat_free_crm/errors.rb +0 -2
- data/lib/fat_free_crm/exceptions.rb +3 -4
- data/lib/fat_free_crm/export_csv.rb +0 -2
- data/lib/fat_free_crm/exportable.rb +5 -7
- data/lib/fat_free_crm/fields.rb +7 -8
- data/lib/fat_free_crm/gem_dependencies.rb +4 -1
- data/lib/fat_free_crm/gem_ext/active_record/schema_dumper.rb +2 -2
- data/lib/fat_free_crm/gem_ext/active_support/buffered_logger.rb +0 -3
- data/lib/fat_free_crm/gem_ext/rails/engine.rb +5 -12
- data/lib/fat_free_crm/gem_ext/rake/task.rb +1 -1
- data/lib/fat_free_crm/gem_ext/simple_form/action_view_extensions/form_helper.rb +1 -2
- data/lib/fat_free_crm/i18n.rb +2 -3
- data/lib/fat_free_crm/load_settings.rb +0 -2
- data/lib/fat_free_crm/mail_processor/base.rb +15 -16
- data/lib/fat_free_crm/mail_processor/comment_replies.rb +5 -10
- data/lib/fat_free_crm/mail_processor/dropbox.rb +56 -59
- data/lib/fat_free_crm/permissions.rb +18 -15
- data/lib/fat_free_crm/renderers.rb +2 -2
- data/lib/fat_free_crm/secret_token_generator.rb +3 -9
- data/lib/fat_free_crm/sortable.rb +4 -8
- data/lib/fat_free_crm/version.rb +2 -2
- data/lib/fat_free_crm/view_factory.rb +3 -8
- data/lib/gravatar_image_tag.rb +19 -24
- data/lib/missing_translation_detector.rb +10 -10
- data/lib/tasks/ffcrm/comment_replies.rake +3 -5
- data/lib/tasks/ffcrm/config.rake +3 -5
- data/lib/tasks/ffcrm/demo.rake +14 -16
- data/lib/tasks/ffcrm/dropbox.rake +3 -5
- data/lib/tasks/ffcrm/missing_translations.rake +1 -1
- data/lib/tasks/ffcrm/secret.rake +1 -3
- data/lib/tasks/ffcrm/settings.rake +2 -4
- data/lib/tasks/ffcrm/setup.rake +3 -6
- data/lib/tasks/ffcrm/update_data.rake +110 -116
- data/spec/controllers/admin/groups_controller_spec.rb +0 -1
- data/spec/controllers/admin/users_controller_spec.rb +98 -102
- data/spec/controllers/applications_controller_spec.rb +17 -21
- data/spec/controllers/authentications_controller_spec.rb +57 -61
- data/spec/controllers/comments_controller_spec.rb +32 -39
- data/spec/controllers/emails_controller_spec.rb +6 -7
- data/spec/controllers/entities/accounts_controller_spec.rb +204 -214
- data/spec/controllers/entities/campaigns_controller_spec.rb +210 -224
- data/spec/controllers/entities/contacts_controller_spec.rb +250 -270
- data/spec/controllers/entities/leads_controller_spec.rb +415 -438
- data/spec/controllers/entities/opportunities_controller_spec.rb +344 -359
- data/spec/controllers/entities_controller_spec.rb +10 -14
- data/spec/controllers/home_controller_spec.rb +85 -92
- data/spec/controllers/lists_controller_spec.rb +0 -1
- data/spec/controllers/passwords_controller_spec.rb +5 -9
- data/spec/controllers/tasks_controller_spec.rb +193 -210
- data/spec/controllers/users_controller_spec.rb +137 -146
- data/spec/factories/account_factories.rb +11 -13
- data/spec/factories/campaign_factories.rb +6 -6
- data/spec/factories/contact_factories.rb +21 -22
- data/spec/factories/field_factories.rb +8 -10
- data/spec/factories/lead_factories.rb +16 -16
- data/spec/factories/list_factories.rb +2 -2
- data/spec/factories/opportunity_factories.rb +8 -10
- data/spec/factories/sequences.rb +8 -9
- data/spec/factories/setting_factories.rb +2 -2
- data/spec/factories/shared_factories.rb +26 -30
- data/spec/factories/tag_factories.rb +1 -1
- data/spec/factories/task_factories.rb +11 -11
- data/spec/factories/user_factories.rb +22 -27
- data/spec/features/acceptance_helper.rb +1 -1
- data/spec/features/accounts_spec.rb +65 -61
- data/spec/features/admin/groups_spec.rb +11 -12
- data/spec/features/admin/users_spec.rb +17 -19
- data/spec/features/campaigns_spec.rb +61 -57
- data/spec/features/contacts_spec.rb +90 -59
- data/spec/features/dashboard_spec.rb +20 -21
- data/spec/features/leads_spec.rb +88 -67
- data/spec/features/opportunities_overview_spec.rb +31 -31
- data/spec/features/opportunities_spec.rb +64 -60
- data/spec/features/support/browser.rb +2 -2
- data/spec/features/support/headless.rb +1 -1
- data/spec/features/support/helpers.rb +5 -6
- data/spec/features/support/paths.rb +1 -2
- data/spec/features/support/selector_helpers.rb +2 -2
- data/spec/features/tasks_spec.rb +60 -54
- data/spec/helpers/accounts_helper_spec.rb +2 -5
- data/spec/helpers/admin/field_groups_helper_spec.rb +4 -4
- data/spec/helpers/admin/plugins_helper_spec.rb +0 -1
- data/spec/helpers/admin/settings_helper_spec.rb +0 -1
- data/spec/helpers/admin/users_helper_spec.rb +0 -1
- data/spec/helpers/application_helper_spec.rb +30 -33
- data/spec/helpers/authentications_helper_spec.rb +2 -5
- data/spec/helpers/campaigns_helper_spec.rb +2 -5
- data/spec/helpers/comments_helper_spec.rb +2 -5
- data/spec/helpers/contacts_helper_spec.rb +2 -5
- data/spec/helpers/emails_helper_spec.rb +0 -1
- data/spec/helpers/fields_helper_spec.rb +0 -1
- data/spec/helpers/groups_helper_spec.rb +0 -1
- data/spec/helpers/home_helper_spec.rb +2 -5
- data/spec/helpers/leads_helper_spec.rb +2 -5
- data/spec/helpers/lists_helper_spec.rb +0 -1
- data/spec/helpers/opportunities_helper_spec.rb +2 -5
- data/spec/helpers/passwords_helper_spec.rb +2 -5
- data/spec/helpers/tasks_helper_spec.rb +1 -5
- data/spec/helpers/users_helper_spec.rb +9 -11
- data/spec/lib/comment_extensions_spec.rb +3 -3
- data/spec/lib/core_ext/string_spec.rb +1 -1
- data/spec/lib/errors_spec.rb +10 -10
- data/spec/lib/fields_spec.rb +23 -33
- data/spec/lib/mail_processor/base_spec.rb +41 -43
- data/spec/lib/mail_processor/comment_replies_spec.rb +17 -17
- data/spec/lib/mail_processor/dropbox_spec.rb +91 -95
- data/spec/lib/mail_processor/sample_emails/dropbox.rb +13 -14
- data/spec/lib/permissions_spec.rb +44 -47
- data/spec/lib/secret_token_generator_spec.rb +16 -28
- data/spec/lib/view_factory_spec.rb +18 -24
- data/spec/mailers/subscription_mailer_spec.rb +14 -16
- data/spec/mailers/user_mailer_spec.rb +33 -34
- data/spec/models/entities/account_contact_spec.rb +2 -3
- data/spec/models/entities/account_opportunity_spec.rb +2 -3
- data/spec/models/entities/account_spec.rb +52 -59
- data/spec/models/entities/campaign_spec.rb +32 -39
- data/spec/models/entities/contact_opportunity_spec.rb +2 -3
- data/spec/models/entities/contact_spec.rb +71 -72
- data/spec/models/entities/lead_spec.rb +15 -22
- data/spec/models/entities/opportunity_spec.rb +104 -103
- data/spec/models/fields/custom_field_date_pair_spec.rb +38 -44
- data/spec/models/fields/custom_field_pair_spec.rb +28 -36
- data/spec/models/fields/custom_field_spec.rb +50 -56
- data/spec/models/fields/field_group_spec.rb +1 -2
- data/spec/models/fields/field_spec.rb +13 -15
- data/spec/models/list_spec.rb +4 -4
- data/spec/models/observers/entity_observer_spec.rb +18 -21
- data/spec/models/polymorphic/address_spec.rb +1 -3
- data/spec/models/polymorphic/avatar_spec.rb +6 -8
- data/spec/models/polymorphic/comment_spec.rb +7 -9
- data/spec/models/polymorphic/email_spec.rb +1 -2
- data/spec/models/polymorphic/task_spec.rb +130 -142
- data/spec/models/polymorphic/version_spec.rb +84 -91
- data/spec/models/setting_spec.rb +17 -19
- data/spec/models/users/abilities/user_ability_spec.rb +25 -20
- data/spec/models/users/authentication_spec.rb +0 -1
- data/spec/models/users/group_spec.rb +0 -1
- data/spec/models/users/permission_spec.rb +12 -13
- data/spec/models/users/preference_spec.rb +15 -15
- data/spec/models/users/user_spec.rb +53 -55
- data/spec/routing/accounts_routing_spec.rb +12 -14
- data/spec/routing/admin/users_routing_spec.rb +7 -9
- data/spec/routing/campaigns_routing_spec.rb +13 -14
- data/spec/routing/comments_routing_spec.rb +5 -6
- data/spec/routing/contacts_routing_spec.rb +12 -14
- data/spec/routing/emails_routing_spec.rb +7 -8
- data/spec/routing/leads_routing_spec.rb +19 -21
- data/spec/routing/opportunities_routing_spec.rb +13 -15
- data/spec/routing/tasks_routing_spec.rb +14 -15
- data/spec/routing/users_routing_spec.rb +18 -19
- data/spec/shared/controllers.rb +35 -35
- data/spec/shared/models.rb +52 -55
- data/spec/spec_helper.rb +21 -42
- data/spec/support/assert_select.rb +19 -18
- data/spec/support/auth_macros.rb +3 -3
- data/spec/support/macros.rb +5 -6
- data/spec/support/mail_processor_mocks.rb +11 -11
- data/spec/views/accounts/_edit.haml_spec.rb +9 -9
- data/spec/views/accounts/_new.haml_spec.rb +8 -9
- data/spec/views/accounts/create.js.haml_spec.rb +11 -12
- data/spec/views/accounts/destroy.js.haml_spec.rb +6 -7
- data/spec/views/accounts/edit.js.haml_spec.rb +12 -13
- data/spec/views/accounts/index.haml_spec.rb +8 -8
- data/spec/views/accounts/index.js.haml_spec.rb +7 -8
- data/spec/views/accounts/new.js.haml_spec.rb +7 -8
- data/spec/views/accounts/show.haml_spec.rb +11 -12
- data/spec/views/accounts/update.js.haml_spec.rb +18 -18
- data/spec/views/admin/field_groups/create.js.haml_spec.rb +8 -10
- data/spec/views/admin/field_groups/destroy.js.haml_spec.rb +7 -9
- data/spec/views/admin/field_groups/edit.js.haml_spec.rb +5 -7
- data/spec/views/admin/field_groups/new.js.haml_spec.rb +6 -8
- data/spec/views/admin/field_groups/update.js.haml_spec.rb +7 -9
- data/spec/views/admin/users/_create.haml_spec.rb +4 -4
- data/spec/views/admin/users/create.js.haml_spec.rb +8 -9
- data/spec/views/admin/users/destroy.js.haml_spec.rb +6 -6
- data/spec/views/admin/users/edit.js.haml_spec.rb +7 -9
- data/spec/views/admin/users/index.haml_spec.rb +4 -5
- data/spec/views/admin/users/index.js.haml_spec.rb +6 -8
- data/spec/views/admin/users/new.js.haml_spec.rb +4 -6
- data/spec/views/admin/users/reactivate.js.haml_spec.rb +4 -4
- data/spec/views/admin/users/show.haml_spec.rb +0 -1
- data/spec/views/admin/users/suspend.js.haml_spec.rb +4 -4
- data/spec/views/admin/users/update.js.haml_spec.rb +6 -7
- data/spec/views/application/auto_complete.haml_spec.rb +12 -14
- data/spec/views/authentications/new.haml_spec.rb +6 -7
- data/spec/views/campaigns/_edit.haml_spec.rb +9 -9
- data/spec/views/campaigns/_new.haml_spec.rb +8 -8
- data/spec/views/campaigns/create.js.haml_spec.rb +11 -12
- data/spec/views/campaigns/destroy.js.haml_spec.rb +7 -8
- data/spec/views/campaigns/edit.js.haml_spec.rb +12 -20
- data/spec/views/campaigns/index.haml_spec.rb +6 -7
- data/spec/views/campaigns/index.js.haml_spec.rb +9 -10
- data/spec/views/campaigns/new.js.haml_spec.rb +7 -8
- data/spec/views/campaigns/show.haml_spec.rb +12 -13
- data/spec/views/campaigns/update.js.haml_spec.rb +16 -16
- data/spec/views/comments/edit.js.haml_spec.rb +7 -7
- data/spec/views/contacts/_edit.haml_spec.rb +21 -21
- data/spec/views/contacts/_new.haml_spec.rb +12 -13
- data/spec/views/contacts/create.js.haml_spec.rb +12 -13
- data/spec/views/contacts/destroy.js.haml_spec.rb +6 -7
- data/spec/views/contacts/edit.js.haml_spec.rb +15 -17
- data/spec/views/contacts/index.haml_spec.rb +6 -7
- data/spec/views/contacts/index.js.html_spec.rb +7 -8
- data/spec/views/contacts/new.js.haml_spec.rb +8 -9
- data/spec/views/contacts/show.haml_spec.rb +9 -10
- data/spec/views/contacts/update.js.haml_spec.rb +26 -26
- data/spec/views/home/index.haml_spec.rb +4 -5
- data/spec/views/home/index.js.haml_spec.rb +6 -7
- data/spec/views/home/options.js.haml_spec.rb +10 -10
- data/spec/views/leads/_convert.haml_spec.rb +5 -6
- data/spec/views/leads/_edit.haml_spec.rb +13 -13
- data/spec/views/leads/_new.haml_spec.rb +11 -11
- data/spec/views/leads/_sidebar_show.haml_spec.rb +9 -9
- data/spec/views/leads/convert.js.haml_spec.rb +16 -17
- data/spec/views/leads/create.js.haml_spec.rb +16 -17
- data/spec/views/leads/destroy.js.haml_spec.rb +10 -11
- data/spec/views/leads/edit.js.haml_spec.rb +16 -17
- data/spec/views/leads/index.haml_spec.rb +7 -8
- data/spec/views/leads/index.js.haml_spec.rb +10 -11
- data/spec/views/leads/new.js.haml_spec.rb +8 -9
- data/spec/views/leads/promote.js.haml_spec.rb +30 -31
- data/spec/views/leads/reject.js.haml_spec.rb +10 -11
- data/spec/views/leads/show.haml_spec.rb +7 -8
- data/spec/views/leads/update.js.haml_spec.rb +28 -29
- data/spec/views/opportunities/_edit.haml_spec.rb +19 -19
- data/spec/views/opportunities/_new.haml_spec.rb +10 -10
- data/spec/views/opportunities/create.js.haml_spec.rb +19 -20
- data/spec/views/opportunities/destroy.js.haml_spec.rb +14 -15
- data/spec/views/opportunities/edit.js.haml_spec.rb +14 -16
- data/spec/views/opportunities/index.haml_spec.rb +6 -7
- data/spec/views/opportunities/index.js.haml_spec.rb +7 -8
- data/spec/views/opportunities/new.js.haml_spec.rb +8 -9
- data/spec/views/opportunities/show.haml_spec.rb +9 -10
- data/spec/views/opportunities/update.js.haml_spec.rb +35 -35
- data/spec/views/tasks/_edit.haml_spec.rb +9 -9
- data/spec/views/tasks/complete.js.haml_spec.rb +11 -12
- data/spec/views/tasks/create.js.haml_spec.rb +29 -31
- data/spec/views/tasks/destroy.js.haml_spec.rb +8 -8
- data/spec/views/tasks/edit.js.haml_spec.rb +12 -15
- data/spec/views/tasks/index.haml_spec.rb +7 -7
- data/spec/views/tasks/new.js.haml_spec.rb +7 -8
- data/spec/views/tasks/uncomplete.js.haml_spec.rb +6 -6
- data/spec/views/tasks/update.js.haml_spec.rb +41 -44
- data/spec/views/users/avatar.js.haml_spec.rb +7 -8
- data/spec/views/users/change_password.js.haml_spec.rb +9 -10
- data/spec/views/users/edit.js.haml_spec.rb +7 -8
- data/spec/views/users/password.js.haml_spec.rb +8 -9
- data/spec/views/users/update.js.haml_spec.rb +6 -7
- data/spec/views/users/upload_avatar.js.haml_spec.rb +9 -9
- data/vendor/assets/javascripts/jquery_timeago/index.js +2 -0
- data/vendor/assets/javascripts/jquery_timeago/jquery.timeago.es-CL.js +18 -0
- data/vendor/assets/javascripts/jquery_timeago/jquery.timeago.nl.js +20 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery-ui-timepicker-es-CL.js +20 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery.ui.datepicker-es-CL.js +23 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery.ui.datepicker-nl.js +21 -0
- data/vendor/assets/stylesheets/{jquery-ui.custom.css → jquery-ui.custom.scss} +52 -51
- data/vendor/gems/globby-0.1.2/LICENSE.txt +20 -0
- data/vendor/gems/globby-0.1.2/README.md +65 -0
- data/vendor/gems/globby-0.1.2/Rakefile +9 -0
- data/vendor/gems/globby-0.1.2/lib/globby.rb +47 -0
- data/vendor/gems/globby-0.1.2/lib/globby/glob.rb +90 -0
- data/vendor/gems/globby-0.1.2/lib/globby/globject.rb +18 -0
- data/vendor/gems/globby-0.1.2/lib/globby/result.rb +20 -0
- data/vendor/gems/globby-0.1.2/spec/gitignore_spec.rb +109 -0
- data/vendor/gems/globby-0.1.2/spec/globby_spec.rb +93 -0
- metadata +177 -55
- data/Gemfile.ci +0 -13
- data/config/initializers/sass.rb +0 -18
- data/lib/country_select.rb +0 -570
- data/lib/fat_free_crm/plugin.rb +0 -94
@@ -17,18 +17,17 @@ describe "/users/avatar" do
|
|
17
17
|
params[:cancel] = "true"
|
18
18
|
|
19
19
|
render
|
20
|
-
rendered.
|
21
|
-
rendered.
|
20
|
+
expect(rendered).to include("crm.flip_form('upload_avatar')")
|
21
|
+
expect(rendered).to include("crm.set_title('upload_avatar', 'My Profile')")
|
22
22
|
end
|
23
23
|
|
24
24
|
it "edit profile: should hide [Edit Profile] and [Change Password] forms and show [Upload Avatar]" do
|
25
25
|
render
|
26
26
|
|
27
|
-
rendered.
|
28
|
-
rendered.
|
29
|
-
rendered.
|
30
|
-
rendered.
|
31
|
-
rendered.
|
27
|
+
expect(rendered).to include("$('#upload_avatar').html")
|
28
|
+
expect(rendered).to include("crm.hide_form('edit_profile');")
|
29
|
+
expect(rendered).to include("crm.hide_form('change_password');")
|
30
|
+
expect(rendered).to include("crm.flip_form('upload_avatar');")
|
31
|
+
expect(rendered).to include("crm.set_title('upload_avatar', 'Upload Picture');")
|
32
32
|
end
|
33
|
-
|
34
33
|
end
|
@@ -17,16 +17,16 @@ describe "/users/change_password" do
|
|
17
17
|
it "should flip [Change Password] form" do
|
18
18
|
render
|
19
19
|
|
20
|
-
rendered.
|
21
|
-
rendered.
|
22
|
-
rendered.
|
20
|
+
expect(rendered).not_to include("user_#{@user.id}")
|
21
|
+
expect(rendered).to include("crm.flip_form('change_password');")
|
22
|
+
expect(rendered).to include("crm.set_title('change_password', 'My Profile');")
|
23
23
|
end
|
24
24
|
|
25
25
|
it "should show flash message" do
|
26
26
|
render
|
27
27
|
|
28
|
-
rendered.
|
29
|
-
rendered.
|
28
|
+
expect(rendered).to include("#flash")
|
29
|
+
expect(rendered).to include("crm.flash('notice')")
|
30
30
|
end
|
31
31
|
end # no errors
|
32
32
|
|
@@ -35,17 +35,16 @@ describe "/users/change_password" do
|
|
35
35
|
@user.errors.add(:current_password, "error")
|
36
36
|
render
|
37
37
|
|
38
|
-
rendered.
|
39
|
-
rendered.
|
40
|
-
rendered.
|
38
|
+
expect(rendered).to include("$('#change_password').html")
|
39
|
+
expect(rendered).to include(%/$('#change_password').effect("shake"/)
|
40
|
+
expect(rendered).to include("$('#current_password').focus();")
|
41
41
|
end
|
42
42
|
|
43
43
|
it "should redraw the [Change Password] form and correctly set focus" do
|
44
44
|
@user.errors.add(:user_password, "error")
|
45
45
|
render
|
46
46
|
|
47
|
-
rendered.
|
47
|
+
expect(rendered).to include("$('#user_password').focus();")
|
48
48
|
end
|
49
|
-
|
50
49
|
end # errors
|
51
50
|
end
|
@@ -17,18 +17,17 @@ describe "/users/edit" do
|
|
17
17
|
params[:cancel] = "true"
|
18
18
|
|
19
19
|
render
|
20
|
-
rendered.
|
21
|
-
rendered.
|
20
|
+
expect(rendered).to include("crm.flip_form('edit_profile')")
|
21
|
+
expect(rendered).to include("crm.set_title('edit_profile', 'My Profile');")
|
22
22
|
end
|
23
23
|
|
24
24
|
it "edit profile: should hide [Upload Avatar] and [Change Password] forms and show [Edit Profile]" do
|
25
25
|
render
|
26
26
|
|
27
|
-
rendered.
|
28
|
-
rendered.
|
29
|
-
rendered.
|
30
|
-
rendered.
|
31
|
-
rendered.
|
27
|
+
expect(rendered).to include("$('#edit_profile').html")
|
28
|
+
expect(rendered).to include("crm.hide_form('upload_avatar');")
|
29
|
+
expect(rendered).to include("crm.hide_form('change_password');")
|
30
|
+
expect(rendered).to include("crm.flip_form('edit_profile');")
|
31
|
+
expect(rendered).to include("crm.set_title('edit_profile', 'Edit Profile');")
|
32
32
|
end
|
33
|
-
|
34
33
|
end
|
@@ -17,19 +17,18 @@ describe "/users/password" do
|
|
17
17
|
params[:cancel] = "true"
|
18
18
|
|
19
19
|
render
|
20
|
-
rendered.
|
21
|
-
rendered.
|
20
|
+
expect(rendered).to include("crm.flip_form('change_password')")
|
21
|
+
expect(rendered).to include("crm.set_title('change_password', 'My Profile')")
|
22
22
|
end
|
23
23
|
|
24
24
|
it "edit profile: should hide [Edit Profile] and [Upload Avatar] forms and show [Change Password]" do
|
25
25
|
render
|
26
26
|
|
27
|
-
rendered.
|
28
|
-
rendered.
|
29
|
-
rendered.
|
30
|
-
rendered.
|
31
|
-
rendered.
|
32
|
-
rendered.
|
27
|
+
expect(rendered).to include("$('#change_password').html")
|
28
|
+
expect(rendered).to include("crm.hide_form('edit_profile');")
|
29
|
+
expect(rendered).to include("crm.hide_form('upload_avatar');")
|
30
|
+
expect(rendered).to include("crm.flip_form('change_password');")
|
31
|
+
expect(rendered).to include("crm.set_title('change_password', 'Change Password');")
|
32
|
+
expect(rendered).to include("$('#current_password').focus();")
|
33
33
|
end
|
34
|
-
|
35
34
|
end
|
@@ -16,17 +16,17 @@ describe "/users/update" do
|
|
16
16
|
describe "no errors:" do
|
17
17
|
it "should flip [Edit Profile] form" do
|
18
18
|
render
|
19
|
-
rendered.
|
19
|
+
expect(rendered).to include("crm.flip_form('edit_profile')")
|
20
20
|
end
|
21
21
|
|
22
22
|
it "should update Welcome, user!" do
|
23
23
|
render
|
24
|
-
rendered.
|
24
|
+
expect(rendered).to include("$('#welcome_username').html('#{@user.first_name}')")
|
25
25
|
end
|
26
26
|
|
27
27
|
it "should update actual user profile information" do
|
28
28
|
render
|
29
|
-
rendered.
|
29
|
+
expect(rendered).to include("$('#profile').html")
|
30
30
|
end
|
31
31
|
end # no errors
|
32
32
|
|
@@ -37,10 +37,9 @@ describe "/users/update" do
|
|
37
37
|
|
38
38
|
it "should redraw the [Edit Profile] form and shake it" do
|
39
39
|
render
|
40
|
-
rendered.
|
41
|
-
rendered.
|
42
|
-
rendered.
|
40
|
+
expect(rendered).to include("$('#edit_profile').html")
|
41
|
+
expect(rendered).to include(%/$('#edit_profile').effect("shake"/)
|
42
|
+
expect(rendered).to include("$('#user_email').focus();")
|
43
43
|
end
|
44
|
-
|
45
44
|
end # errors
|
46
45
|
end
|
@@ -14,31 +14,31 @@ describe "/users/upload_avatar" do
|
|
14
14
|
|
15
15
|
describe "no errors:" do
|
16
16
|
before do
|
17
|
-
@avatar = FactoryGirl.create(:avatar, :
|
18
|
-
current_user.
|
17
|
+
@avatar = FactoryGirl.create(:avatar, entity: current_user)
|
18
|
+
allow(current_user).to receive(:avatar).and_return(@avatar)
|
19
19
|
assign(:user, @user = current_user)
|
20
20
|
end
|
21
21
|
|
22
22
|
it "should flip [Upload Avatar] form" do
|
23
23
|
render
|
24
|
-
rendered.
|
25
|
-
rendered.
|
26
|
-
rendered.
|
24
|
+
expect(rendered).not_to include("user_#{@user.id}")
|
25
|
+
expect(rendered).to include("crm.flip_form('upload_avatar'")
|
26
|
+
expect(rendered).to include("crm.set_title('upload_avatar', 'My Profile')")
|
27
27
|
end
|
28
28
|
end # no errors
|
29
29
|
|
30
30
|
describe "validation errors:" do
|
31
31
|
before do
|
32
|
-
@avatar = FactoryGirl.create(:avatar, :
|
32
|
+
@avatar = FactoryGirl.create(:avatar, entity: current_user)
|
33
33
|
@avatar.errors.add(:image, "error")
|
34
|
-
current_user.
|
34
|
+
allow(current_user).to receive(:avatar).and_return(@avatar)
|
35
35
|
assign(:user, @user = current_user)
|
36
36
|
end
|
37
37
|
|
38
38
|
it "should redraw the [Upload Avatar] form and shake it" do
|
39
39
|
render
|
40
|
-
rendered.
|
41
|
-
rendered.
|
40
|
+
expect(rendered).to include("$('#upload_avatar').html")
|
41
|
+
expect(rendered).to include(%/$('#upload_avatar').effect("shake"/)
|
42
42
|
end
|
43
43
|
end # errors
|
44
44
|
end
|
@@ -4,11 +4,13 @@
|
|
4
4
|
//= require jquery_timeago/jquery.timeago.en-GB
|
5
5
|
//= require jquery_timeago/jquery.timeago.en-US
|
6
6
|
//= require jquery_timeago/jquery.timeago.es
|
7
|
+
//= require jquery_timeago/jquery.timeago.es-CL
|
7
8
|
//= require jquery_timeago/jquery.timeago.fr-CA
|
8
9
|
//= require jquery_timeago/jquery.timeago.fr
|
9
10
|
//= require jquery_timeago/jquery.timeago.it
|
10
11
|
//= require jquery_timeago/jquery.timeago.ja
|
11
12
|
//= require jquery_timeago/jquery.timeago.js
|
13
|
+
//= require jquery_timeago/jquery.timeago.nl.js
|
12
14
|
//= require jquery_timeago/jquery.timeago.pl.js
|
13
15
|
//= require jquery_timeago/jquery.timeago.pt-BR
|
14
16
|
//= require jquery_timeago/jquery.timeago.ru.js
|
@@ -0,0 +1,18 @@
|
|
1
|
+
// Spanish
|
2
|
+
jQuery.timeago.settings.locales['es-CL'] = {
|
3
|
+
prefixAgo: "hace",
|
4
|
+
prefixFromNow: "dentro de",
|
5
|
+
suffixAgo: "",
|
6
|
+
suffixFromNow: "",
|
7
|
+
seconds: "menos de un minuto",
|
8
|
+
minute: "un minuto",
|
9
|
+
minutes: "unos %d minutos",
|
10
|
+
hour: "una hora",
|
11
|
+
hours: "%d horas",
|
12
|
+
day: "un día",
|
13
|
+
days: "%d días",
|
14
|
+
month: "un mes",
|
15
|
+
months: "%d meses",
|
16
|
+
year: "un año",
|
17
|
+
years: "%d años"
|
18
|
+
};
|
@@ -0,0 +1,20 @@
|
|
1
|
+
// Dutch
|
2
|
+
jQuery.timeago.settings.locales['nl'] = {
|
3
|
+
prefixAgo: null,
|
4
|
+
prefixFromNow: "over",
|
5
|
+
suffixAgo: "geleden",
|
6
|
+
suffixFromNow: null,
|
7
|
+
seconds: "minder dan een minuut",
|
8
|
+
minute: "ongeveer een minuut",
|
9
|
+
minutes: "%d minuten",
|
10
|
+
hour: "ongeveer een uur",
|
11
|
+
hours: "ongeveer %d uur",
|
12
|
+
day: "een dag",
|
13
|
+
days: "%d dagen",
|
14
|
+
month: "ongeveer een maand",
|
15
|
+
months: "%d maanden",
|
16
|
+
year: "ongeveer een jaar",
|
17
|
+
years: "%d jaar",
|
18
|
+
wordSeparator: " ",
|
19
|
+
numbers: []
|
20
|
+
};
|
@@ -0,0 +1,20 @@
|
|
1
|
+
/* Spanish translation for the jQuery Timepicker Addon */
|
2
|
+
/* Written by Ianaré Sévi */
|
3
|
+
(function($) {
|
4
|
+
$.timepicker.regional['es-CL'] = {
|
5
|
+
timeOnlyTitle: 'Elegir una hora',
|
6
|
+
timeText: 'Hora',
|
7
|
+
hourText: 'Horas',
|
8
|
+
minuteText: 'Minutos',
|
9
|
+
secondText: 'Segundos',
|
10
|
+
millisecText: 'Milisegundos',
|
11
|
+
timezoneText: 'Huso horario',
|
12
|
+
currentText: 'Ahora',
|
13
|
+
closeText: 'Cerrar',
|
14
|
+
timeFormat: 'hh:mm',
|
15
|
+
amNames: ['a.m.', 'AM', 'A'],
|
16
|
+
pmNames: ['p.m.', 'PM', 'P'],
|
17
|
+
ampm: false
|
18
|
+
};
|
19
|
+
$.timepicker.setDefaults($.timepicker.regional['es-CL']);
|
20
|
+
})(jQuery);
|
@@ -0,0 +1,23 @@
|
|
1
|
+
/* Inicialización en español para la extensión 'UI date picker' para jQuery. */
|
2
|
+
/* Traducido por Vester (xvester@gmail.com). */
|
3
|
+
jQuery(function($){
|
4
|
+
$.datepicker.regional['es-CL'] = {
|
5
|
+
closeText: 'Cerrar',
|
6
|
+
prevText: '<Ant',
|
7
|
+
nextText: 'Sig>',
|
8
|
+
currentText: 'Hoy',
|
9
|
+
monthNames: ['Enero','Febrero','Marzo','Abril','Mayo','Junio',
|
10
|
+
'Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre'],
|
11
|
+
monthNamesShort: ['Ene','Feb','Mar','Abr','May','Jun',
|
12
|
+
'Jul','Ago','Sep','Oct','Nov','Dic'],
|
13
|
+
dayNames: ['Domingo','Lunes','Martes','Miércoles','Jueves','Viernes','Sábado'],
|
14
|
+
dayNamesShort: ['Dom','Lun','Mar','Mié','Juv','Vie','Sáb'],
|
15
|
+
dayNamesMin: ['Do','Lu','Ma','Mi','Ju','Vi','Sá'],
|
16
|
+
weekHeader: 'Sm',
|
17
|
+
dateFormat: 'dd/mm/yy',
|
18
|
+
firstDay: 1,
|
19
|
+
isRTL: false,
|
20
|
+
showMonthAfterYear: false,
|
21
|
+
yearSuffix: ''};
|
22
|
+
$.datepicker.setDefaults($.datepicker.regional['es-CL']);
|
23
|
+
});
|
@@ -0,0 +1,21 @@
|
|
1
|
+
jQuery(function($){
|
2
|
+
$.datepicker.regional['nl'] = {
|
3
|
+
closeText: 'Sluiten',
|
4
|
+
prevText: '←',
|
5
|
+
nextText: '→',
|
6
|
+
currentText: 'Vandaag',
|
7
|
+
monthNames: ['januari', 'februari', 'maart', 'april', 'mei', 'juni',
|
8
|
+
'juli', 'augustus', 'september', 'oktober', 'november', 'december'],
|
9
|
+
monthNamesShort: ['jan', 'feb', 'mrt', 'apr', 'mei', 'jun',
|
10
|
+
'jul', 'aug', 'sep', 'okt', 'nov', 'dec'],
|
11
|
+
dayNames: ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'],
|
12
|
+
dayNamesShort: ['zon', 'maa', 'din', 'woe', 'don', 'vri', 'zat'],
|
13
|
+
dayNamesMin: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'],
|
14
|
+
weekHeader: 'Wk',
|
15
|
+
dateFormat: 'dd-mm-yy',
|
16
|
+
firstDay: 1,
|
17
|
+
isRTL: false,
|
18
|
+
showMonthAfterYear: false,
|
19
|
+
yearSuffix: ''};
|
20
|
+
$.datepicker.setDefaults($.datepicker.regional['nl']);
|
21
|
+
});
|
@@ -56,26 +56,26 @@
|
|
56
56
|
.ui-widget { font-family: Helvetica, Arial, sans-serif; font-size: 1.1em; }
|
57
57
|
.ui-widget .ui-widget { font-size: 1em; }
|
58
58
|
.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Helvetica, Arial, sans-serif; font-size: 1em; }
|
59
|
-
.ui-widget-content { border: 1px solid #dddddd; background: #ffffff url(jquery-ui/ui-bg_flat_75_ffffff_40x100.png) 50% 50% repeat-x; color: #444444; }
|
59
|
+
.ui-widget-content { border: 1px solid #dddddd; background: #ffffff image-url("jquery-ui/ui-bg_flat_75_ffffff_40x100.png") 50% 50% repeat-x; color: #444444; }
|
60
60
|
.ui-widget-content a { color: #444444; }
|
61
|
-
.ui-widget-header { border: 1px solid #dddddd; background: #dddddd url(jquery-ui/ui-bg_highlight-soft_50_dddddd_1x100.png) 50% 50% repeat-x; color: #444444; font-weight: bold; }
|
61
|
+
.ui-widget-header { border: 1px solid #dddddd; background: #dddddd image-url("jquery-ui/ui-bg_highlight-soft_50_dddddd_1x100.png") 50% 50% repeat-x; color: #444444; font-weight: bold; }
|
62
62
|
.ui-widget-header a { color: #444444; }
|
63
63
|
|
64
64
|
/* Interaction states
|
65
65
|
----------------------------------*/
|
66
|
-
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #dddddd; background: #ffffff url(jquery-ui/ui-bg_flat_100_ffffff_40x100.png) 50% 50% repeat-x; font-weight: bold; color: #466bb1; }
|
66
|
+
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #dddddd; background: #ffffff image-url("jquery-ui/ui-bg_flat_100_ffffff_40x100.png") 50% 50% repeat-x; font-weight: bold; color: #466bb1; }
|
67
67
|
.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #466bb1; text-decoration: none; }
|
68
|
-
.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #3875d7; background: #3875d7 url(jquery-ui/ui-bg_flat_25_3875d7_40x100.png) 50% 50% repeat-x; font-weight: bold; color: #ffffff; }
|
68
|
+
.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #3875d7; background: #3875d7 image-url("jquery-ui/ui-bg_flat_25_3875d7_40x100.png") 50% 50% repeat-x; font-weight: bold; color: #ffffff; }
|
69
69
|
.ui-state-hover a, .ui-state-hover a:hover { color: #ffffff; text-decoration: none; }
|
70
|
-
.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #dddddd; background: #3875d7 url(jquery-ui/ui-bg_flat_65_3875d7_40x100.png) 50% 50% repeat-x; font-weight: bold; color: #ffffff; }
|
70
|
+
.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #dddddd; background: #3875d7 image-url("jquery-ui/ui-bg_flat_65_3875d7_40x100.png") 50% 50% repeat-x; font-weight: bold; color: #ffffff; }
|
71
71
|
.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #ffffff; text-decoration: none; }
|
72
72
|
.ui-widget :active { outline: none; }
|
73
73
|
|
74
74
|
/* Interaction Cues
|
75
75
|
----------------------------------*/
|
76
|
-
.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {border: 1px solid #cccccc; background: #ffffff url(jquery-ui/ui-bg_flat_55_ffffff_40x100.png) 50% 50% repeat-x; color: #444444; }
|
76
|
+
.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {border: 1px solid #cccccc; background: #ffffff image-url("jquery-ui/ui-bg_flat_55_ffffff_40x100.png") 50% 50% repeat-x; color: #444444; }
|
77
77
|
.ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #444444; }
|
78
|
-
.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #ff0084; background: #ffffff url(jquery-ui/ui-bg_flat_55_ffffff_40x100.png) 50% 50% repeat-x; color: #222222; }
|
78
|
+
.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #ff0084; background: #ffffff image-url("jquery-ui/ui-bg_flat_55_ffffff_40x100.png") 50% 50% repeat-x; color: #222222; }
|
79
79
|
.ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #222222; }
|
80
80
|
.ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #222222; }
|
81
81
|
.ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; }
|
@@ -86,14 +86,14 @@
|
|
86
86
|
----------------------------------*/
|
87
87
|
|
88
88
|
/* states and images */
|
89
|
-
.ui-icon { width: 16px; height: 16px; background-image: url(jquery-ui/ui-icons_ff0084_256x240.png); }
|
90
|
-
.ui-widget-content .ui-icon {background-image: url(jquery-ui/ui-icons_ff0084_256x240.png); }
|
91
|
-
.ui-widget-header .ui-icon {background-image: url(jquery-ui/ui-icons_0073ea_256x240.png); }
|
92
|
-
.ui-state-default .ui-icon { background-image: url(jquery-ui/ui-icons_466bb1_256x240.png); }
|
93
|
-
.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(jquery-ui/ui-icons_ffffff_256x240.png); }
|
94
|
-
.ui-state-active .ui-icon {background-image: url(jquery-ui/ui-icons_ffffff_256x240.png); }
|
95
|
-
.ui-state-highlight .ui-icon {background-image: url(jquery-ui/ui-icons_0073ea_256x240.png); }
|
96
|
-
.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(jquery-ui/ui-icons_ff0084_256x240.png); }
|
89
|
+
.ui-icon { width: 16px; height: 16px; background-image: image-url("jquery-ui/ui-icons_ff0084_256x240.png"); }
|
90
|
+
.ui-widget-content .ui-icon {background-image: image-url("jquery-ui/ui-icons_ff0084_256x240.png"); }
|
91
|
+
.ui-widget-header .ui-icon {background-image: image-url("jquery-ui/ui-icons_0073ea_256x240.png"); }
|
92
|
+
.ui-state-default .ui-icon { background-image: image-url("jquery-ui/ui-icons_466bb1_256x240.png"); }
|
93
|
+
.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: image-url("jquery-ui/ui-icons_ffffff_256x240.png"); }
|
94
|
+
.ui-state-active .ui-icon {background-image: image-url("jquery-ui/ui-icons_ffffff_256x240.png"); }
|
95
|
+
.ui-state-highlight .ui-icon {background-image: image-url("jquery-ui/ui-icons_0073ea_256x240.png"); }
|
96
|
+
.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: image-url("jquery-ui/ui-icons_ff0084_256x240.png"); }
|
97
97
|
|
98
98
|
/* positioning */
|
99
99
|
.ui-icon-carat-1-n { background-position: 0 0; }
|
@@ -283,8 +283,8 @@
|
|
283
283
|
.ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br { -moz-border-radius-bottomright: 2px; -webkit-border-bottom-right-radius: 2px; -khtml-border-bottom-right-radius: 2px; border-bottom-right-radius: 2px; }
|
284
284
|
|
285
285
|
/* Overlays */
|
286
|
-
.ui-widget-overlay { background: #eeeeee url(jquery-ui/ui-bg_flat_0_eeeeee_40x100.png) 50% 50% repeat-x; opacity: .80;filter:Alpha(Opacity=80); }
|
287
|
-
.ui-widget-shadow { margin: -4px 0 0 -4px; padding: 4px; background: #aaaaaa url(jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .60;filter:Alpha(Opacity=60); -moz-border-radius: 0px; -khtml-border-radius: 0px; -webkit-border-radius: 0px; border-radius: 0px; }/*!
|
286
|
+
.ui-widget-overlay { background: #eeeeee image-url("jquery-ui/ui-bg_flat_0_eeeeee_40x100.png") 50% 50% repeat-x; opacity: .80;filter:Alpha(Opacity=80); }
|
287
|
+
.ui-widget-shadow { margin: -4px 0 0 -4px; padding: 4px; background: #aaaaaa image-url("jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png") 50% 50% repeat-x; opacity: .60;filter:Alpha(Opacity=60); -moz-border-radius: 0px; -khtml-border-radius: 0px; -webkit-border-radius: 0px; border-radius: 0px; }/*!
|
288
288
|
* jQuery UI Resizable 1.8.20
|
289
289
|
*
|
290
290
|
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
@@ -341,7 +341,7 @@
|
|
341
341
|
*
|
342
342
|
* http://docs.jquery.com/UI/Autocomplete#theming
|
343
343
|
*/
|
344
|
-
.ui-autocomplete { position: absolute; cursor: default; }
|
344
|
+
.ui-autocomplete { position: absolute; cursor: default; }
|
345
345
|
|
346
346
|
/* workarounds */
|
347
347
|
* html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */
|
@@ -356,34 +356,35 @@
|
|
356
356
|
* http://docs.jquery.com/UI/Menu#theming
|
357
357
|
*/
|
358
358
|
.ui-menu {
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
359
|
+
z-index: 101;
|
360
|
+
list-style:none;
|
361
|
+
padding: 2px;
|
362
|
+
margin: 0;
|
363
|
+
display:block;
|
364
|
+
float: left;
|
364
365
|
}
|
365
366
|
.ui-menu .ui-menu {
|
366
|
-
|
367
|
+
margin-top: -3px;
|
367
368
|
}
|
368
369
|
.ui-menu .ui-menu-item {
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
370
|
+
margin:0;
|
371
|
+
padding: 0;
|
372
|
+
zoom: 1;
|
373
|
+
float: left;
|
374
|
+
clear: left;
|
375
|
+
width: 100%;
|
375
376
|
}
|
376
377
|
.ui-menu .ui-menu-item a {
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
378
|
+
text-decoration:none;
|
379
|
+
display:block;
|
380
|
+
padding:.2em .4em;
|
381
|
+
line-height:1.5;
|
382
|
+
zoom:1;
|
382
383
|
}
|
383
384
|
.ui-menu .ui-menu-item a.ui-state-hover,
|
384
385
|
.ui-menu .ui-menu-item a.ui-state-active {
|
385
|
-
|
386
|
-
|
386
|
+
font-weight: normal;
|
387
|
+
margin: -1px;
|
387
388
|
}
|
388
389
|
/*!
|
389
390
|
* jQuery UI Button 1.8.20
|
@@ -397,8 +398,8 @@
|
|
397
398
|
.ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; text-decoration: none !important; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */
|
398
399
|
.ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */
|
399
400
|
button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */
|
400
|
-
.ui-button-icons-only { width: 3.4em; }
|
401
|
-
button.ui-button-icons-only { width: 3.7em; }
|
401
|
+
.ui-button-icons-only { width: 3.4em; }
|
402
|
+
button.ui-button-icons-only { width: 3.7em; }
|
402
403
|
|
403
404
|
/*button text element */
|
404
405
|
.ui-button .ui-button-text { display: block; line-height: 1.4; }
|
@@ -434,7 +435,7 @@ button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra pad
|
|
434
435
|
*/
|
435
436
|
.ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden; }
|
436
437
|
.ui-dialog .ui-dialog-titlebar { padding: .4em 1em; position: relative; }
|
437
|
-
.ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; }
|
438
|
+
.ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; }
|
438
439
|
.ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }
|
439
440
|
.ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; }
|
440
441
|
.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; }
|
@@ -506,7 +507,7 @@ button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra pad
|
|
506
507
|
.ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; }
|
507
508
|
.ui-datepicker .ui-datepicker-title select { font-size:1em; margin:1px 0; }
|
508
509
|
.ui-datepicker select.ui-datepicker-month-year {width: 100%;}
|
509
|
-
.ui-datepicker select.ui-datepicker-month,
|
510
|
+
.ui-datepicker select.ui-datepicker-month,
|
510
511
|
.ui-datepicker select.ui-datepicker-year { width: 49%;}
|
511
512
|
.ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; }
|
512
513
|
.ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0; }
|
@@ -543,15 +544,15 @@ button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra pad
|
|
543
544
|
|
544
545
|
/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */
|
545
546
|
.ui-datepicker-cover {
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
547
|
+
display: none; /*sorry for IE5*/
|
548
|
+
display/**/: block; /*sorry for IE5*/
|
549
|
+
position: absolute; /*must have*/
|
550
|
+
z-index: -1; /*must have*/
|
551
|
+
filter: mask(); /*must have*/
|
552
|
+
top: -4px; /*must have*/
|
553
|
+
left: -4px; /*must have*/
|
554
|
+
width: 200px; /*must have*/
|
555
|
+
height: 200px; /*must have*/
|
555
556
|
}/*!
|
556
557
|
* jQuery UI Progressbar 1.8.20
|
557
558
|
*
|
@@ -562,4 +563,4 @@ button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra pad
|
|
562
563
|
* http://docs.jquery.com/UI/Progressbar#theming
|
563
564
|
*/
|
564
565
|
.ui-progressbar { height:2em; text-align: left; overflow: hidden; }
|
565
|
-
.ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; }
|
566
|
+
.ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; }
|