fat_free_crm 0.13.2 → 0.13.3
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 +5 -13
- data/.travis.yml +3 -3
- data/Gemfile +5 -2
- data/Gemfile.lock +137 -119
- data/MIT-LICENSE +1 -1
- data/README.md +5 -3
- data/app/assets/javascripts/admin/fields.js.coffee +31 -8
- data/app/assets/javascripts/application.js.erb +6 -10
- data/app/assets/javascripts/crm.js.coffee +426 -0
- data/app/assets/javascripts/crm_chosen.js.coffee +19 -38
- data/app/assets/javascripts/crm_classes.js.coffee +215 -0
- data/app/assets/javascripts/crm_comments.js.coffee +20 -58
- data/app/assets/javascripts/crm_loginout.js.coffee +27 -0
- data/app/assets/javascripts/crm_select2.js.coffee +29 -0
- data/app/assets/javascripts/crm_sortable.js.coffee +32 -0
- data/app/assets/javascripts/crm_tags.js.coffee +22 -0
- data/app/assets/javascripts/crm_textarea_autocomplete.js.coffee +33 -0
- data/app/assets/javascripts/datepicker.js.coffee +2 -2
- data/app/assets/javascripts/format_buttons.js.coffee +23 -24
- data/app/assets/javascripts/lists.js.coffee +45 -76
- data/app/assets/javascripts/pagination.js.coffee +16 -0
- data/app/assets/javascripts/search.js.coffee +6 -22
- data/app/assets/javascripts/timeago.js.coffee +21 -0
- data/app/assets/stylesheets/application.css.erb +0 -1
- data/app/assets/stylesheets/common.scss +36 -29
- data/app/assets/stylesheets/lists.css.scss +17 -3
- data/app/controllers/admin/groups_controller.rb +2 -1
- data/app/controllers/application_controller.rb +5 -5
- data/app/controllers/entities/accounts_controller.rb +1 -1
- data/app/controllers/entities/campaigns_controller.rb +1 -1
- data/app/controllers/entities/contacts_controller.rb +1 -1
- data/app/controllers/entities/leads_controller.rb +1 -1
- data/app/controllers/entities/opportunities_controller.rb +1 -1
- data/app/controllers/home_controller.rb +10 -7
- data/app/controllers/tasks_controller.rb +15 -0
- data/app/controllers/users_controller.rb +6 -4
- data/app/helpers/accounts_helper.rb +8 -5
- data/app/helpers/application_helper.rb +53 -39
- data/app/helpers/campaigns_helper.rb +1 -0
- data/app/helpers/leads_helper.rb +3 -3
- data/app/helpers/opportunities_helper.rb +15 -0
- data/app/helpers/remote_link_pagination_helper.rb +8 -0
- data/app/helpers/tags_helper.rb +2 -2
- data/app/helpers/tasks_helper.rb +22 -15
- data/app/helpers/users_helper.rb +3 -2
- data/app/mailers/user_mailer.rb +9 -3
- data/app/models/entities/account_contact.rb +1 -1
- data/app/models/fields/custom_field.rb +1 -1
- data/app/models/list.rb +1 -0
- data/app/models/observers/entity_observer.rb +10 -1
- data/app/models/observers/lead_observer.rb +2 -0
- data/app/models/observers/opportunity_observer.rb +2 -0
- data/app/models/observers/task_observer.rb +2 -0
- data/app/models/polymorphic/avatar.rb +2 -0
- data/app/models/polymorphic/comment.rb +0 -1
- data/app/models/polymorphic/task.rb +41 -9
- data/app/models/users/ability.rb +1 -0
- data/app/models/users/group.rb +0 -5
- data/app/models/users/user.rb +0 -7
- data/app/views/accounts/_edit.html.haml +1 -0
- data/app/views/accounts/_index_brief.html.haml +2 -2
- data/app/views/accounts/_index_long.html.haml +2 -2
- data/app/views/accounts/_new.html.haml +1 -0
- data/app/views/accounts/_sidebar_index.html.haml +1 -1
- data/app/views/accounts/_sidebar_show.html.haml +1 -1
- data/app/views/accounts/_top_section.html.haml +1 -1
- data/app/views/accounts/create.js.haml +9 -9
- data/app/views/accounts/destroy.js.haml +2 -2
- data/app/views/accounts/edit.js.haml +5 -5
- data/app/views/accounts/index.js.haml +5 -5
- data/app/views/accounts/new.js.haml +1 -1
- data/app/views/accounts/show.html.haml +1 -1
- data/app/views/accounts/show.js.haml +1 -1
- data/app/views/accounts/update.js.haml +7 -5
- data/app/views/admin/field_groups/_field_group.html.haml +4 -5
- data/app/views/admin/field_groups/confirm.js.haml +2 -2
- data/app/views/admin/field_groups/create.js.haml +6 -12
- data/app/views/admin/field_groups/destroy.js.haml +3 -3
- data/app/views/admin/field_groups/edit.js.haml +1 -1
- data/app/views/admin/field_groups/new.js.haml +1 -1
- data/app/views/admin/field_groups/update.js.haml +2 -2
- data/app/views/admin/fields/_field.html.haml +1 -1
- data/app/views/admin/fields/_sort_by.html.haml +3 -3
- data/app/views/admin/fields/create.js.haml +9 -9
- data/app/views/admin/fields/destroy.js.haml +4 -4
- data/app/views/admin/fields/edit.js.haml +2 -2
- data/app/views/admin/fields/index.html.haml +1 -8
- data/app/views/admin/fields/show.html.haml +1 -1
- data/app/views/admin/fields/update.js.haml +8 -8
- data/app/views/admin/groups/_form.html.haml +1 -3
- data/app/views/admin/groups/create.js.haml +8 -8
- data/app/views/admin/groups/destroy.js.haml +3 -3
- data/app/views/admin/groups/edit.js.haml +3 -3
- data/app/views/admin/groups/index.js.haml +2 -2
- data/app/views/admin/groups/new.js.haml +2 -2
- data/app/views/admin/groups/update.js.haml +5 -5
- data/app/views/admin/tags/confirm.js.haml +2 -2
- data/app/views/admin/tags/create.js.haml +8 -8
- data/app/views/admin/tags/destroy.js.haml +3 -3
- data/app/views/admin/tags/edit.js.haml +4 -4
- data/app/views/admin/tags/new.js.haml +1 -1
- data/app/views/admin/tags/update.js.haml +5 -5
- data/app/views/admin/users/_profile.html.haml +3 -4
- data/app/views/admin/users/confirm.js.haml +2 -2
- data/app/views/admin/users/create.js.haml +8 -8
- data/app/views/admin/users/destroy.js.haml +3 -3
- data/app/views/admin/users/edit.js.haml +4 -4
- data/app/views/admin/users/index.js.haml +2 -2
- data/app/views/admin/users/new.js.haml +2 -2
- data/app/views/admin/users/reactivate.js.haml +2 -2
- data/app/views/admin/users/suspend.js.haml +2 -2
- data/app/views/admin/users/update.js.haml +5 -5
- data/app/views/campaigns/_edit.html.haml +1 -0
- data/app/views/campaigns/_index_brief.html.haml +1 -1
- data/app/views/campaigns/_index_long.html.haml +1 -1
- data/app/views/campaigns/_new.html.haml +1 -0
- data/app/views/campaigns/_sidebar_index.html.haml +1 -1
- data/app/views/campaigns/_sidebar_show.html.haml +1 -1
- data/app/views/campaigns/_status.html.haml +1 -1
- data/app/views/campaigns/_top_section.html.haml +1 -1
- data/app/views/campaigns/create.js.haml +10 -10
- data/app/views/campaigns/destroy.js.haml +2 -2
- data/app/views/campaigns/edit.js.haml +6 -6
- data/app/views/campaigns/index.js.haml +5 -5
- data/app/views/campaigns/new.js.haml +1 -1
- data/app/views/campaigns/show.html.haml +1 -1
- data/app/views/campaigns/show.js.haml +1 -1
- data/app/views/campaigns/update.js.haml +8 -6
- data/app/views/comments/_edit.html.haml +1 -1
- data/app/views/comments/_new.html.haml +1 -1
- data/app/views/comments/create.js.haml +9 -9
- data/app/views/comments/destroy.js.haml +2 -2
- data/app/views/comments/edit.js.haml +3 -3
- data/app/views/comments/update.js.haml +5 -5
- data/app/views/contacts/_contacts.html.haml +1 -1
- data/app/views/contacts/_edit.html.haml +1 -0
- data/app/views/contacts/_index_brief.html.haml +2 -2
- data/app/views/contacts/_index_full.html.haml +2 -2
- data/app/views/contacts/_index_long.html.haml +2 -2
- data/app/views/contacts/_new.html.haml +1 -0
- data/app/views/contacts/_section_general.html.haml +4 -3
- data/app/views/contacts/_sidebar_show.html.haml +1 -1
- data/app/views/contacts/_top_section.html.haml +1 -1
- data/app/views/contacts/create.js.haml +10 -10
- data/app/views/contacts/destroy.js.haml +3 -3
- data/app/views/contacts/edit.js.haml +5 -5
- data/app/views/contacts/index.js.haml +5 -5
- data/app/views/contacts/new.js.haml +1 -1
- data/app/views/contacts/show.html.haml +1 -1
- data/app/views/contacts/show.js.haml +1 -1
- data/app/views/contacts/update.js.haml +8 -6
- data/app/views/emails/destroy.js.haml +2 -2
- data/app/views/entities/_basic_search.html.haml +15 -12
- data/app/views/entities/_permissions.html.haml +6 -11
- data/app/views/entities/attach.js.haml +3 -3
- data/app/views/entities/contacts.js.haml +2 -2
- data/app/views/entities/discard.js.haml +1 -1
- data/app/views/entities/leads.js.haml +2 -2
- data/app/views/entities/opportunities.js.haml +2 -2
- data/app/views/entities/subscription_update.js.haml +1 -1
- data/app/views/entities/versions.js.haml +2 -2
- data/app/views/fields/group.js.erb +1 -1
- data/app/views/home/_account.html.haml +2 -2
- data/app/views/home/_assets_menu.html.haml +3 -3
- data/app/views/home/_duration_menu.html.haml +3 -3
- data/app/views/home/_events_menu.html.haml +3 -3
- data/app/views/home/_opportunity.html.haml +2 -2
- data/app/views/home/_options.html.haml +0 -1
- data/app/views/home/_users_menu.html.haml +3 -3
- data/app/views/home/index.js.haml +4 -4
- data/app/views/home/options.js.haml +1 -1
- data/app/views/layouts/_about.html.haml +3 -3
- data/app/views/layouts/_footer.html.haml +1 -1
- data/app/views/layouts/_header.html.haml +1 -1
- data/app/views/layouts/_jumpbox.html.haml +23 -21
- data/app/views/layouts/_sidebar.html.haml +1 -2
- data/app/views/layouts/admin/application.html.haml +1 -1
- data/app/views/layouts/application.html.haml +3 -3
- data/app/views/leads/_convert.html.haml +1 -11
- data/app/views/leads/_convert_permissions.html.haml +4 -9
- data/app/views/leads/_edit.html.haml +1 -0
- data/app/views/leads/_index_brief.html.haml +1 -1
- data/app/views/leads/_index_long.html.haml +1 -1
- data/app/views/leads/_leads.html.haml +1 -1
- data/app/views/leads/_new.html.haml +1 -0
- data/app/views/leads/_sidebar_index.html.haml +1 -1
- data/app/views/leads/_sidebar_show.html.haml +1 -1
- data/app/views/leads/_top_section.html.haml +1 -1
- data/app/views/leads/convert.js.haml +5 -5
- data/app/views/leads/create.js.haml +9 -9
- data/app/views/leads/destroy.js.haml +2 -2
- data/app/views/leads/edit.js.haml +5 -5
- data/app/views/leads/index.js.haml +5 -5
- data/app/views/leads/new.js.haml +1 -1
- data/app/views/leads/promote.js.haml +7 -7
- data/app/views/leads/reject.js.haml +2 -2
- data/app/views/leads/show.html.haml +1 -1
- data/app/views/leads/show.js.haml +1 -1
- data/app/views/leads/update.js.haml +9 -7
- data/app/views/lists/_lists.html.haml +6 -0
- data/app/views/lists/_sidebar.html.haml +18 -17
- data/app/views/lists/create.js.haml +6 -7
- data/app/views/lists/destroy.js.haml +1 -1
- data/app/views/opportunities/_edit.html.haml +2 -1
- data/app/views/opportunities/_index_brief.html.haml +1 -1
- data/app/views/opportunities/_index_long.html.haml +1 -1
- data/app/views/opportunities/_new.html.haml +2 -1
- data/app/views/opportunities/_opportunities.html.haml +1 -1
- data/app/views/opportunities/_sidebar_index.html.haml +1 -1
- data/app/views/opportunities/_sidebar_show.html.haml +1 -1
- data/app/views/opportunities/_top_section.html.haml +2 -2
- data/app/views/opportunities/contacts.js.haml +2 -2
- data/app/views/opportunities/create.js.haml +10 -10
- data/app/views/opportunities/destroy.js.haml +3 -3
- data/app/views/opportunities/edit.js.haml +5 -5
- data/app/views/opportunities/index.html.haml +1 -1
- data/app/views/opportunities/index.js.haml +5 -5
- data/app/views/opportunities/new.js.haml +1 -1
- data/app/views/opportunities/show.html.haml +1 -1
- data/app/views/opportunities/show.js.haml +1 -1
- data/app/views/opportunities/update.js.haml +8 -6
- data/app/views/shared/_address.html.haml +1 -1
- data/app/views/shared/_inline_styles.html.haml +1 -1
- data/app/views/shared/_naming.html.haml +3 -3
- data/app/views/shared/_paginate.haml +2 -1
- data/app/views/shared/_paginate_with_per_page.html.haml +10 -12
- data/app/views/shared/_search.html.haml +7 -3
- data/app/views/shared/_select_popup.html.haml +9 -11
- data/app/views/shared/_tags.html.haml +5 -4
- data/app/views/tasks/_completed.html.haml +3 -1
- data/app/views/tasks/_selector.html.haml +1 -1
- data/app/views/tasks/_top_section.html.haml +1 -1
- data/app/views/tasks/complete.js.haml +7 -7
- data/app/views/tasks/create.js.haml +17 -17
- data/app/views/tasks/destroy.js.haml +2 -2
- data/app/views/tasks/discard.js.haml +1 -1
- data/app/views/tasks/edit.js.haml +4 -4
- data/app/views/tasks/filter.js.haml +2 -2
- data/app/views/tasks/new.js.haml +1 -1
- data/app/views/tasks/uncomplete.js.haml +12 -0
- data/app/views/tasks/update.js.haml +4 -4
- data/app/views/users/_avatar.html.haml +1 -1
- data/app/views/users/_languages.html.haml +3 -3
- data/app/views/users/_profile.html.haml +1 -1
- data/app/views/users/avatar.js.haml +1 -1
- data/app/views/users/change_password.js.haml +5 -5
- data/app/views/users/edit.js.haml +1 -1
- data/app/views/users/password.js.haml +2 -2
- data/app/views/users/show.html.haml +1 -1
- data/app/views/users/update.js.haml +5 -5
- data/app/views/users/upload_avatar.js.haml +3 -3
- data/app/views/versions/_versions.html.haml +1 -1
- data/config/application.rb +3 -0
- data/config/environments/production.rb +1 -1
- data/config/environments/staging.rb +58 -13
- data/config/initializers/locale.rb +2 -0
- data/config/locales/cz_fat_free_crm.yml +1 -0
- data/config/locales/de_fat_free_crm.yml +1 -0
- data/config/locales/en-GB_fat_free_crm.yml +1 -0
- data/config/locales/en-US_fat_free_crm.yml +2 -0
- data/config/locales/es_fat_free_crm.yml +1 -0
- data/config/locales/fr-CA_fat_free_crm.yml +1 -0
- data/config/locales/fr_fat_free_crm.yml +1 -0
- data/config/locales/it_fat_free_crm.yml +1 -0
- data/config/locales/ja_fat_free_crm.yml +1 -0
- data/config/locales/pl_fat_free_crm.yml +1 -0
- data/config/locales/pt-BR_fat_free_crm.yml +1 -0
- data/config/locales/ru_fat_free_crm.yml +444 -61
- data/config/locales/sv-SE_fat_free_crm.yml +1 -0
- data/config/locales/th_fat_free_crm.yml +1 -0
- data/config/locales/zh-CN_fat_free_crm.yml +1 -0
- data/config/routes.rb +20 -19
- data/config/settings.default.yml +11 -10
- data/fat_free_crm.gemspec +5 -4
- data/lib/{plugins/country_select/lib/country_select.rb → country_select.rb} +0 -0
- data/lib/fat_free_crm.rb +3 -1
- data/lib/fat_free_crm/engine.rb +2 -4
- data/lib/fat_free_crm/gem_dependencies.rb +1 -1
- data/lib/fat_free_crm/gem_ext.rb +0 -2
- data/lib/fat_free_crm/permissions.rb +2 -3
- data/lib/fat_free_crm/version.rb +1 -1
- data/lib/{plugins/gravatar_image_tag/lib/gravatar_image_tag.rb → gravatar_image_tag.rb} +0 -0
- data/lib/tasks/ffcrm/settings.rake +4 -16
- data/public/favicon.ico +0 -0
- data/spec/controllers/entities/accounts_controller_spec.rb +5 -5
- data/spec/controllers/entities/campaigns_controller_spec.rb +5 -5
- data/spec/controllers/entities/contacts_controller_spec.rb +42 -5
- data/spec/controllers/entities/leads_controller_spec.rb +7 -7
- data/spec/controllers/entities/opportunities_controller_spec.rb +5 -5
- data/spec/controllers/home_controller_spec.rb +3 -3
- data/spec/controllers/tasks_controller_spec.rb +29 -0
- data/spec/factories/shared_factories.rb +1 -3
- data/spec/features/support/selector_helpers.rb +4 -4
- data/spec/helpers/tasks_helper_spec.rb +10 -5
- data/spec/lib/permissions_spec.rb +10 -22
- data/spec/mailers/user_mailer_spec.rb +5 -4
- data/spec/models/observers/entity_observer_spec.rb +13 -8
- data/spec/models/polymorphic/task_spec.rb +111 -32
- data/spec/routing/accounts_routing_spec.rb +1 -1
- data/spec/routing/campaigns_routing_spec.rb +1 -1
- data/spec/routing/contacts_routing_spec.rb +1 -1
- data/spec/routing/leads_routing_spec.rb +1 -1
- data/spec/routing/opportunities_routing_spec.rb +1 -1
- data/spec/shared/controllers.rb +2 -2
- data/spec/spec_helper.rb +1 -0
- data/spec/views/accounts/create.js.haml_spec.rb +3 -3
- data/spec/views/accounts/index.js.haml_spec.rb +4 -4
- data/spec/views/accounts/update.js.haml_spec.rb +5 -5
- data/spec/views/admin/field_groups/create.js.haml_spec.rb +2 -2
- data/spec/views/admin/field_groups/edit.js.haml_spec.rb +1 -1
- data/spec/views/admin/field_groups/new.js.haml_spec.rb +1 -1
- data/spec/views/admin/field_groups/update.js.haml_spec.rb +1 -1
- data/spec/views/admin/users/create.js.haml_spec.rb +2 -2
- data/spec/views/admin/users/destroy.js.haml_spec.rb +1 -1
- data/spec/views/admin/users/edit.js.haml_spec.rb +1 -1
- data/spec/views/admin/users/index.js.haml_spec.rb +1 -1
- data/spec/views/admin/users/new.js.haml_spec.rb +1 -1
- data/spec/views/admin/users/reactivate.js.haml_spec.rb +1 -1
- data/spec/views/admin/users/suspend.js.haml_spec.rb +1 -1
- data/spec/views/admin/users/update.js.haml_spec.rb +3 -3
- data/spec/views/campaigns/create.js.haml_spec.rb +4 -4
- data/spec/views/campaigns/destroy.js.haml_spec.rb +1 -1
- data/spec/views/campaigns/edit.js.haml_spec.rb +4 -4
- data/spec/views/campaigns/index.js.haml_spec.rb +2 -2
- data/spec/views/campaigns/new.js.haml_spec.rb +1 -1
- data/spec/views/campaigns/update.js.haml_spec.rb +7 -7
- data/spec/views/contacts/create.js.haml_spec.rb +4 -4
- data/spec/views/contacts/edit.js.haml_spec.rb +4 -4
- data/spec/views/contacts/index.js.html_spec.rb +2 -2
- data/spec/views/contacts/new.js.haml_spec.rb +2 -2
- data/spec/views/contacts/update.js.haml_spec.rb +11 -11
- data/spec/views/home/index.js.haml_spec.rb +1 -1
- data/spec/views/home/options.js.haml_spec.rb +3 -3
- data/spec/views/leads/convert.js.haml_spec.rb +3 -3
- data/spec/views/leads/create.js.haml_spec.rb +5 -5
- data/spec/views/leads/destroy.js.haml_spec.rb +1 -1
- data/spec/views/leads/edit.js.haml_spec.rb +4 -4
- data/spec/views/leads/index.js.haml_spec.rb +2 -2
- data/spec/views/leads/new.js.haml_spec.rb +1 -1
- data/spec/views/leads/promote.js.haml_spec.rb +13 -13
- data/spec/views/leads/reject.js.haml_spec.rb +6 -6
- data/spec/views/leads/update.js.haml_spec.rb +11 -11
- data/spec/views/opportunities/create.js.haml_spec.rb +4 -4
- data/spec/views/opportunities/destroy.js.haml_spec.rb +1 -1
- data/spec/views/opportunities/edit.js.haml_spec.rb +4 -4
- data/spec/views/opportunities/index.js.haml_spec.rb +2 -2
- data/spec/views/opportunities/update.js.haml_spec.rb +11 -11
- data/spec/views/tasks/complete.js.haml_spec.rb +5 -5
- data/spec/views/tasks/create.js.haml_spec.rb +13 -13
- data/spec/views/tasks/destroy.js.haml_spec.rb +3 -3
- data/spec/views/tasks/edit.js.haml_spec.rb +4 -4
- data/spec/views/tasks/new.js.haml_spec.rb +2 -2
- data/spec/views/tasks/uncomplete.js.haml_spec.rb +44 -0
- data/spec/views/tasks/update.js.haml_spec.rb +17 -17
- data/spec/views/users/avatar.js.haml_spec.rb +1 -1
- data/spec/views/users/change_password.js.haml_spec.rb +4 -4
- data/spec/views/users/edit.js.haml_spec.rb +1 -1
- data/spec/views/users/password.js.haml_spec.rb +2 -2
- data/spec/views/users/update.js.haml_spec.rb +5 -5
- data/spec/views/users/upload_avatar.js.haml_spec.rb +2 -2
- data/vendor/assets/javascripts/ajax-chosen.jquery.coffee +166 -76
- data/vendor/assets/javascripts/chosen.jquery.coffee +2 -2
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery-ui-timepicker-pt-BR.js +22 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/{jquery-ui-timepicker-sv.js → jquery-ui-timepicker-sv-SE.js} +0 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery-ui-timepicker-th.js +19 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery.ui.datepicker-fr-CA.js +21 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery.ui.datepicker-pt.js +21 -0
- data/vendor/assets/javascripts/rating.js +2 -2
- metadata +101 -122
- data/app/assets/images/facebook-close.gif +0 -0
- data/app/assets/javascripts/crm.js +0 -495
- data/app/assets/javascripts/crm_classes.js +0 -218
- data/app/assets/javascripts/crm_fields.js +0 -34
- data/app/assets/javascripts/crm_loginout.js +0 -29
- data/app/assets/javascripts/crm_textarea_autocomplete.js +0 -32
- data/app/assets/javascripts/groups.js.coffee +0 -8
- data/app/assets/javascripts/jquery-noconflict.js +0 -6
- data/app/assets/javascripts/timeago.js +0 -17
- data/app/views/lists/_personal_sidebar.html.haml +0 -28
- data/lib/fat_free_crm/gem_ext/active_model/serializers/xml/serializer/attribute.rb +0 -17
- data/lib/fat_free_crm/gem_ext/authlogic/session/cookies.rb +0 -16
- data/lib/fat_free_crm/plugin_dependencies.rb +0 -12
- data/lib/plugins/country_select/MIT-LICENSE +0 -20
- data/lib/plugins/country_select/README +0 -14
- data/lib/plugins/country_select/init.rb +0 -1
- data/lib/plugins/country_select/install.rb +0 -2
- data/lib/plugins/country_select/uninstall.rb +0 -2
- data/lib/plugins/gravatar_image_tag/Gemfile +0 -8
- data/lib/plugins/gravatar_image_tag/README.textile +0 -108
- data/lib/plugins/gravatar_image_tag/ROADMAP.textile +0 -33
- data/lib/plugins/gravatar_image_tag/Rakefile +0 -50
- data/lib/plugins/gravatar_image_tag/VERSION +0 -1
- data/lib/plugins/gravatar_image_tag/gravatar_image_tag.gemspec +0 -45
- data/lib/plugins/gravatar_image_tag/init.rb +0 -2
- data/lib/plugins/gravatar_image_tag/spec/gravatar_image_tag_spec.rb +0 -83
- data/lib/plugins/gravatar_image_tag/spec/test_helper.rb +0 -12
- data/lib/tasks/db/migrate.rake +0 -66
- data/lib/tasks/db/schema.rake +0 -20
- data/vendor/assets/javascripts/ajax-chosen-prototype.js +0 -2
- data/vendor/assets/javascripts/ajax-chosen.proto.coffee +0 -98
- data/vendor/assets/javascripts/chosen-prototype.js +0 -3
- data/vendor/assets/javascripts/chosen.proto.coffee +0 -580
- data/vendor/assets/javascripts/event.simulate.js +0 -64
- data/vendor/assets/javascripts/facebooklist.js +0 -548
- data/vendor/assets/javascripts/facebooklist.simulate.js +0 -28
- data/vendor/assets/javascripts/modalbox.js +0 -506
- data/vendor/assets/stylesheets/facebooklist.css +0 -47
@@ -1,6 +1,6 @@
|
|
1
1
|
- entity_name = controller.controller_name.singularize.underscore
|
2
2
|
- @entity = instance_variable_get("@#{entity_name}")
|
3
3
|
|
4
|
-
|
4
|
+
$('##{dom_id(@entity)}').css('background-color', '#ffe4e1').slideUp(250);
|
5
5
|
= refresh_sidebar(:index, :filters)
|
6
|
-
|
6
|
+
$('#paginate').replaceWith('#{ j render(:partial => "shared/paginate_with_per_page") }');
|
@@ -8,14 +8,14 @@
|
|
8
8
|
crm.flip_form('edit_#{entity_name}');
|
9
9
|
crm.set_title('edit_#{entity_name}', '#{h @entity.name}');
|
10
10
|
- else # Called from index page...
|
11
|
-
|
11
|
+
$('##{id}').replaceWith('#{ j render(:partial => entity_name, :collection => [ @entity ]) }');
|
12
12
|
|
13
13
|
- else # <---------------------------------------- Show [Edit] form.
|
14
14
|
|
15
15
|
- if params[:cancel].blank? # Called from index page...
|
16
16
|
- if @previous # Hide open [Edit] form if any.
|
17
17
|
- if @previous.is_a?(@entity.class)
|
18
|
-
|
18
|
+
$('##{dom_id(@previous)}').replaceWith('#{ j render(:partial => entity_name, :collection => [ @previous ]) }');
|
19
19
|
- else
|
20
20
|
crm.flick('#{entity_name}_#{@previous}', 'remove');
|
21
21
|
-# Disable onMouseOver for the list item.
|
@@ -23,10 +23,10 @@
|
|
23
23
|
-# Hide [Create] form if any.
|
24
24
|
crm.hide_form('create_#{entity_name}');
|
25
25
|
-# Show [Edit] form.
|
26
|
-
|
26
|
+
$('##{id}').html('#{ j render(:partial => "edit") }');
|
27
27
|
|
28
28
|
- elsif params[:cancel].false? # Called from title of the landing page...
|
29
|
-
|
29
|
+
$('#edit_#{entity_name}').html('#{ j render(:partial => "edit") }');
|
30
30
|
crm.flip_form('edit_#{entity_name}');
|
31
31
|
crm.set_title('edit_#{entity_name}', "#{t :edit} #{h @entity.name}");
|
32
|
-
|
32
|
+
$('#new_#{entity_name} input[type!=hidden]').first().focus();
|
@@ -2,10 +2,10 @@
|
|
2
2
|
- @entities = instance_variable_get("@#{entities}")
|
3
3
|
|
4
4
|
- if @entities.any?
|
5
|
-
|
5
|
+
$('##{entities}').html('#{ j render(@entities) }');
|
6
6
|
- else
|
7
|
-
|
7
|
+
$('##{entities}').html('#{ j render(:partial => "shared/empty") }');
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
$('#paginate').html('#{ j render(:partial => "shared/paginate_with_per_page") }');
|
10
|
+
$('#export').html('#{ j render(:partial => "shared/export") }');
|
11
|
+
$('#search_results_count').html('#{ j render(:text => t('search_results_count', :count => @search_results_count)) }');
|
@@ -5,7 +5,7 @@ crm.flick('empty', 'toggle');
|
|
5
5
|
crm.flip_form('#{create_id}');
|
6
6
|
|
7
7
|
- unless params[:cancel].true?
|
8
|
-
|
8
|
+
$('##{create_id}').html('#{ j render(:partial => "new") }');
|
9
9
|
crm.set_title('#{create_id}', '#{ j t(create_id) }');
|
10
10
|
- else
|
11
11
|
crm.set_title('#{create_id}', '#{ j t(entity_name.pluralize) }');
|
@@ -13,7 +13,7 @@
|
|
13
13
|
= render "comments/new", :commentable => @account
|
14
14
|
= render :partial => "shared/timeline", :collection => @timeline
|
15
15
|
|
16
|
-
= hook(:show_account_bottom, self) do
|
16
|
+
= hook(:show_account_bottom, self, {entity: @account}) do
|
17
17
|
|
18
18
|
= render :partial => "tasks/tasks", :locals => {:object => @account}
|
19
19
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
- entity_name = controller.controller_name.singularize.underscore #account
|
2
2
|
- @entity = instance_variable_get("@#{entity_name}")
|
3
3
|
|
4
|
-
|
4
|
+
$('#main').html('#{ j (render :template => "#{entity_name.pluralize}/show.html", entity_name => @entity) }');
|
5
5
|
= raw generate_js_for_popups(@entity, :tasks, :contacts, :opportunities)
|
@@ -8,10 +8,12 @@
|
|
8
8
|
crm.set_title('edit_#{entity_name}', '#{h @entity.name}');
|
9
9
|
= refresh_sidebar(:show, :summary)
|
10
10
|
- else
|
11
|
-
|
12
|
-
|
11
|
+
$('##{id}').replaceWith('#{ j render(:partial => entity_name, :collection => [ @entity ]) }');
|
12
|
+
$('##{id}').effect("highlight", { duration:1500 });
|
13
13
|
= refresh_sidebar(:index, :filters)
|
14
14
|
- else
|
15
|
-
|
16
|
-
|
17
|
-
|
15
|
+
$('##{id}').html('#{ j render(:partial => "edit") }');
|
16
|
+
$('##{id}').effect("shake", { duration:250, distance: 6 });
|
17
|
+
$('##{dom_id(@entity, :edit)} input[type!=hidden]').first().focus();
|
18
|
+
|
19
|
+
= hook(:entity_update, self, {entity: @entity}) {}
|
@@ -17,11 +17,10 @@
|
|
17
17
|
|
18
18
|
.remote{ hidden.merge(:id => edit_form_id) }
|
19
19
|
|
20
|
-
.list
|
21
|
-
|
22
|
-
= render :partial => "admin/fields/field", :collection => fields
|
23
|
-
|
24
|
-
.empty{:id => "empty_#{asset}_field_group_#{field_group.id}"}
|
20
|
+
.list
|
21
|
+
%ul{ :id => dom_id(field_group, :fields), 'data-sortable' => sort_admin_fields_path(:field_group_id => field_group.id), 'data-sortable-connect-with' => '.fields', 'data-sortable-handle' => '.handle' }
|
22
|
+
= render :partial => "admin/fields/field", :collection => field_group.fields.without_pairs
|
23
|
+
%li.empty
|
25
24
|
= t(:field_group_empty)
|
26
25
|
= link_to t(:create_field), '#', :class => 'create', 'data-for' => create_form_id
|
27
26
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
- id = dom_id(@field_group, :confirm)
|
2
2
|
|
3
|
-
if (
|
3
|
+
if ($('##{id}').size() > 0) {
|
4
4
|
crm.flick('#{id}', 'remove');
|
5
5
|
} else {
|
6
|
-
|
6
|
+
$('##{dom_id(@field_group)}').prepend('#{ j (render :partial => "confirm") }');
|
7
7
|
}
|
@@ -4,17 +4,11 @@
|
|
4
4
|
- container_id = "#{asset}_field_groups"
|
5
5
|
|
6
6
|
- if @field_group.valid?
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
- group_list_ids = klass.field_groups.map {|field_group| dom_id(field_group, :fields)}
|
12
|
-
- klass.field_groups.each do |field_group|
|
13
|
-
jQuery('##{container_id}').after('#{ j(sortable_element(dom_id(field_group, :fields), :url => sort_admin_fields_path(:field_group_id => field_group.id), :containment => group_list_ids, :dropOnEmpty => true)) }');
|
14
|
-
|
15
|
-
jQuery('##{container_id}').after('#{ j(sortable_element(container_id, :url => sort_admin_field_groups_path(:asset => asset), :tag => :div)) }');
|
16
|
-
jQuery('##{dom_id(@field_group)}').effect('highlight', { duration:1500 });
|
7
|
+
$('##{id}_arrow').html(crm.COLLAPSED);
|
8
|
+
$('##{id}').slideUp( { duration:250, complete: function() {$(this).html('')} } );
|
9
|
+
$('##{container_id}').after('#{ j(render :partial => "field_group", :collection => [ @field_group ]) }');
|
10
|
+
$('##{dom_id(@field_group)}').effect('highlight', { duration:1500 });
|
17
11
|
|
18
12
|
- else
|
19
|
-
|
20
|
-
|
13
|
+
$('##{id}').html('#{ j render(:partial => "new") }');
|
14
|
+
$('##{id}').effect("shake", { duration:250, distance: 6 });
|
@@ -1,9 +1,9 @@
|
|
1
1
|
- id = dom_id(@field_group)
|
2
2
|
|
3
3
|
- if @field_group.destroyed?
|
4
|
-
|
4
|
+
$('##{id}').css('background-color', '#ffe4e1').slideUp(250);
|
5
5
|
- else
|
6
|
-
|
7
|
-
|
6
|
+
$('##{id}').effect("shake", { distance:5 }, 250);
|
7
|
+
$('#flash').html('#{ j t(:msg_cant_delete_field_group) }');
|
8
8
|
crm.flash('warning');
|
9
9
|
- flash[:warning] = nil
|
@@ -4,5 +4,5 @@
|
|
4
4
|
crm.flip_form('#{id}');
|
5
5
|
crm.set_title('#{dom_id(@field_group)}', '#{field_group_subtitle(@field_group)}');
|
6
6
|
- else
|
7
|
-
|
8
|
-
|
7
|
+
$('##{id}').html('#{ j render(:partial => 'edit') }');
|
8
|
+
$('##{id}').effect('shake', { distance:5 }, 250);
|
@@ -5,13 +5,13 @@
|
|
5
5
|
- empty_field_id = "empty_opportunity_field_group_#{@field.field_group_id}"
|
6
6
|
|
7
7
|
- if @field.valid?
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
8
|
+
$("##{id}_arrow").html(crm.COLLAPSED)
|
9
|
+
$('##{container_id}').append('#{ j (render :partial => "field", :collection => [@field]) }')
|
10
|
+
$('##{custom_field_id}').effect("highlight", { duration:1500 });
|
11
|
+
$("##{create_field_id}").hide();
|
12
|
+
$("##{empty_field_id}").hide();
|
13
|
+
$('##{container_id}').sortable('reset');
|
14
14
|
- else
|
15
|
-
|
16
|
-
|
17
|
-
|
15
|
+
$('##{id}').html('#{ j render(:partial => "admin/fields/form", :locals => {:field_group_id => @field.field_group_id}) }')
|
16
|
+
$('##{id}').effect("shake", { duration:250, distance: 6 });
|
17
|
+
$('##{id}').find('input[type="text"]').first().focus()
|
@@ -1,8 +1,8 @@
|
|
1
1
|
- id = dom_id(@field)
|
2
2
|
- if @field.destroyed?
|
3
|
-
|
3
|
+
$('li##{id}').css('background-color', '#ffe4e1').slideUp(250);
|
4
4
|
- else
|
5
|
-
|
6
|
-
|
7
|
-
|
5
|
+
$('li##{id}').effect("shake", { duration:250, distance: 6});
|
6
|
+
$('#flash').html('#{ j flash[:warning] }')
|
7
|
+
$(crm.flash('warning'))
|
8
8
|
- flash[:warning] = nil
|
@@ -1,3 +1,3 @@
|
|
1
1
|
- id = dom_id(@field)
|
2
|
-
html =
|
3
|
-
|
2
|
+
html = $.parseHTML('#{j render(:partial => "admin/fields/form")}')
|
3
|
+
$('##{id}').find('.edit_field').replaceWith( html )
|
@@ -28,14 +28,7 @@
|
|
28
28
|
.title
|
29
29
|
= t(asset)
|
30
30
|
|
31
|
-
|
32
|
-
.list{ :id => container_id }
|
31
|
+
.list{ :id => "#{asset}_field_groups", 'data-sortable' => sort_admin_field_groups_path(:asset => asset) }
|
33
32
|
= render :partial => "admin/field_groups/field_group", :collection => klass.field_groups, :locals => {:asset => asset, :klass => klass}
|
34
33
|
|
35
|
-
- group_list_ids = klass.field_groups.map {|field_group| dom_id(field_group, :fields)}
|
36
|
-
- klass.field_groups.each do |field_group|
|
37
|
-
= sortable_element(dom_id(field_group, :fields), :url => sort_admin_fields_path(:field_group_id => field_group.id), :containment => group_list_ids, :dropOnEmpty => true)
|
38
|
-
|
39
|
-
= sortable_element(container_id, :url => sort_admin_field_groups_path(:asset => asset), :tag => :div)
|
40
|
-
|
41
34
|
.remote{ hidden.merge(:id => create_form_id) }
|
@@ -2,12 +2,12 @@
|
|
2
2
|
- container_id = "#{@field.klass_name.downcase}_field_groups"
|
3
3
|
|
4
4
|
- if @field.errors.empty?
|
5
|
-
html =
|
6
|
-
|
7
|
-
|
8
|
-
|
5
|
+
html = $.parseHTML('#{ j (render :partial => "field", :collection => [@field]) }');
|
6
|
+
$('##{id}').replaceWith(html);
|
7
|
+
$('##{id}').effect("highlight", { duration:1000 });
|
8
|
+
$('##{container_id}').sortable('reset');
|
9
9
|
- else
|
10
|
-
html =
|
11
|
-
|
12
|
-
|
13
|
-
|
10
|
+
html = $.parseHTML('#{ j(render :partial => "form") }');
|
11
|
+
$('##{id}').find('.edit_field').replaceWith( html );
|
12
|
+
$('##{id}').effect("shake", { duration:250, distance: 6 });
|
13
|
+
$('##{id}').find('input[type="text"]').first().focus();
|
@@ -8,6 +8,4 @@
|
|
8
8
|
%td
|
9
9
|
.label.top.req #{t :users}:
|
10
10
|
%br
|
11
|
-
= f.select :user_ids, User.all.map {|u| [u.full_name, u.id]}, {}, :multiple => true
|
12
|
-
:javascript
|
13
|
-
new Chosen($('group_user_ids'));
|
11
|
+
= f.select :user_ids, User.all.map {|u| [u.full_name, u.id]}, {}, :multiple => true, :class => 'select2'
|
@@ -1,10 +1,10 @@
|
|
1
1
|
- if @group.valid?
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
$('#create_group_arrow').html(crm.COLLAPSED);
|
3
|
+
$('#create_group_title').html('#{ j t(:groups) }');
|
4
|
+
$('#create_group').slideUp(250);
|
5
|
+
$('#groups').prepend('#{ j (render :partial => "group", :collection => [ @group ]) }');
|
6
|
+
$('##{dom_id(@group)}').effect("highlight", { duration:1500 });
|
7
7
|
- else
|
8
|
-
|
9
|
-
|
10
|
-
|
8
|
+
$('#create_group').html('#{ j render(:partial => "new") }');
|
9
|
+
$('#create_group').effect("shake", { duration:250, distance: 6 });
|
10
|
+
$('#group_name').focus();
|
@@ -1,9 +1,9 @@
|
|
1
1
|
- id = dom_id(@group)
|
2
2
|
- if @group.destroyed?
|
3
|
-
|
3
|
+
$('##{id}').css('background-color', '#ffe4e1').slideUp(250);
|
4
4
|
- else
|
5
5
|
crm.flick("#{dom_id(@group, :confirm)}, 'remove')");
|
6
|
-
|
7
|
-
|
6
|
+
$('##{id}').effect("shake", { duration:250, distance: 6 });
|
7
|
+
$('#flash').html('#{ j flash[:warning] }');
|
8
8
|
crm.flash('warning');
|
9
9
|
- flash[:warning] = nil
|
@@ -1,7 +1,7 @@
|
|
1
1
|
- id = dom_id(@group)
|
2
2
|
|
3
3
|
- if params[:cancel].true? # <----------------- Hide [Edit Group]
|
4
|
-
|
4
|
+
$('##{id}').replaceWith('#{ j (render(:partial => "group", :collection => [ @group ])) }');
|
5
5
|
|
6
6
|
- else # <---------------------------------------- Show [Edit Group] form.
|
7
7
|
|
@@ -10,5 +10,5 @@
|
|
10
10
|
-# Hide [Create Group] form if any.
|
11
11
|
crm.hide_form('create_group');
|
12
12
|
-# Show [Edit Group] form.
|
13
|
-
|
14
|
-
|
13
|
+
$('##{id}').html('#{ j render(:partial => "edit") }');
|
14
|
+
$('#group_name').focus();
|
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
$('#groups').html('#{ j render(:partial => "admin/groups/group", :collection => @groups) }');
|
2
|
+
$('#paginate').html('#{ j render(:partial => "shared/paginate") }')
|
@@ -1,8 +1,8 @@
|
|
1
1
|
crm.flip_form('create_group');
|
2
2
|
|
3
3
|
- unless params[:cancel].true?
|
4
|
-
|
5
|
-
|
4
|
+
$('#create_group').html('#{ j render(:partial => "new") }');
|
5
|
+
$('#empty').html('');
|
6
6
|
crm.set_title('create_group', '#{t(:create_group)}');
|
7
7
|
|
8
8
|
- else
|
@@ -1,9 +1,9 @@
|
|
1
1
|
- id = dom_id(@group)
|
2
2
|
|
3
3
|
- if @group.errors.empty?
|
4
|
-
|
5
|
-
|
4
|
+
$('##{id}').replaceWith('#{ j render(:partial => "group", :collection => [ @group ]) }')
|
5
|
+
$('##{id}').effect("highlight", { duration:1000 });
|
6
6
|
- else
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
$('##{id}').html('#{j render(:partial => "edit") }')
|
8
|
+
$('##{id}').effect("shake", { duration:250, distance: 6 });
|
9
|
+
$('#group_name').focus()
|
@@ -1,7 +1,7 @@
|
|
1
1
|
- id = dom_id(@tag, :confirm)
|
2
2
|
|
3
|
-
if (
|
3
|
+
if ($('##{id}').size() > 0) {
|
4
4
|
crm.flick('#{id}', 'remove');
|
5
5
|
} else {
|
6
|
-
|
6
|
+
$('##{dom_id(@tag)}').prepend('#{ j (render :partial => "confirm") }');
|
7
7
|
}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
- if @tag.valid?
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
$('#create_tag_arrow').html(crm.COLLAPSED);
|
3
|
+
$('#create_tag_title').html('#{ j t(:tags) }');
|
4
|
+
$('#create_tag').slideUp(250);
|
5
|
+
$('#tags').prepend('#{ j (render :partial => "tag", :collection => [ @tag ]) }');
|
6
|
+
$('##{dom_id(@tag)}').effect("highlight", { duration:1500 });
|
7
7
|
crm.flick('empty', 'remove');
|
8
8
|
- else
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
$('#create_tag').html('#{ j render(:partial => 'new') }');
|
10
|
+
$('#create_tag').effect("shake", { duration:250, distance: 6 });
|
11
|
+
$('#tag_name').focus();
|
@@ -1,10 +1,10 @@
|
|
1
1
|
- id = dom_id(@tag)
|
2
2
|
|
3
3
|
- if @tag.destroyed?
|
4
|
-
|
4
|
+
$('##{id}').css('background-color', '#ffe4e1').slideUp(250);
|
5
5
|
- else
|
6
6
|
crm.flick("#{dom_id(@tag, :confirm)}, 'remove')");
|
7
|
-
|
8
|
-
|
7
|
+
$('##{id}').effect("shake", { duration:250, distance: 6 });
|
8
|
+
$('#flash').html('#{ j flash[:warning] }');
|
9
9
|
crm.flash('warning');
|
10
10
|
- flash[:warning] = nil
|
@@ -1,13 +1,13 @@
|
|
1
1
|
- id = dom_id(@tag)
|
2
2
|
|
3
3
|
- if params[:cancel].true? # <----------------- Hide [Edit Tag]
|
4
|
-
|
4
|
+
$('##{id}').replaceWith('#{ j render(:partial => "tag", :collection => [ @tag ]) }');
|
5
5
|
|
6
6
|
- else # <---------------------------------------- Show [Edit Tag] form.
|
7
7
|
|
8
8
|
- if @previous # Hide open [Edit Tag] form if any.
|
9
9
|
- if @previous.is_a?(Tag) # Previous tag still exists?
|
10
|
-
|
10
|
+
$('##{dom_id(@previous)}').replaceWith('#{ j render(:partial => "tag", :collection => [ @previous ]) }');
|
11
11
|
- else
|
12
12
|
crm.flick('tag_#{@previous}', 'remove');
|
13
13
|
|
@@ -16,5 +16,5 @@
|
|
16
16
|
-# Show [Edit Tag] form.
|
17
17
|
crm.highlight_off('#{id}');
|
18
18
|
crm.hide_form('create_tag');
|
19
|
-
|
20
|
-
|
19
|
+
$('##{id}').html('#{ j render(:partial => "edit") }');
|
20
|
+
$('#tag_name').focus();
|