fat_free_crm 0.11.4 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of fat_free_crm might be problematic. Click here for more details.
- checksums.yaml +15 -0
- data/.gitignore +2 -1
- data/.travis.yml +10 -17
- data/CHANGELOG +57 -4
- data/CONTRIBUTORS +6 -4
- data/Gemfile +24 -21
- data/Gemfile.lock +142 -111
- data/Guardfile +11 -31
- data/MIT-LICENSE +21 -0
- data/README.md +30 -39
- data/app/assets/javascripts/admin/fields.js.coffee +5 -18
- data/app/assets/javascripts/application.js.erb +3 -14
- data/app/assets/javascripts/crm.js +3 -15
- data/app/assets/javascripts/crm_chosen.js.coffee +21 -4
- data/app/assets/javascripts/crm_classes.js +3 -15
- data/app/assets/javascripts/crm_fields.js +3 -15
- data/app/assets/javascripts/crm_loginout.js +3 -15
- data/app/assets/javascripts/crm_textarea_autocomplete.js +3 -15
- data/app/assets/javascripts/datepicker.js.coffee +5 -0
- data/app/assets/javascripts/format_buttons.js.coffee +5 -0
- data/app/assets/javascripts/groups.js.coffee +5 -0
- data/app/assets/javascripts/jquery-noconflict.js +3 -15
- data/app/assets/javascripts/lists.js.coffee +6 -0
- data/app/assets/javascripts/search.js.coffee +5 -0
- data/app/assets/stylesheets/admin/fields.css.scss +10 -0
- data/app/assets/stylesheets/advanced_search.css.scss +5 -0
- data/app/assets/stylesheets/application.css.erb +3 -14
- data/app/assets/stylesheets/base.scss +3 -15
- data/app/assets/stylesheets/common.scss +3 -15
- data/app/assets/stylesheets/ffcrm_chosen.scss +5 -0
- data/app/assets/stylesheets/fields.scss +5 -0
- data/app/assets/stylesheets/format_buttons.css.scss +5 -0
- data/app/assets/stylesheets/groups.css.scss +5 -0
- data/app/assets/stylesheets/header.scss +3 -15
- data/app/assets/stylesheets/index_headers.css.scss +5 -0
- data/app/assets/stylesheets/lists.css.scss +5 -0
- data/app/assets/stylesheets/print.css.scss +3 -15
- data/app/assets/stylesheets/rails.scss +4 -16
- data/app/assets/stylesheets/safari.scss +3 -15
- data/app/assets/stylesheets/textarea_autocomplete.scss +5 -0
- data/app/controllers/admin/application_controller.rb +3 -15
- data/app/controllers/admin/field_groups_controller.rb +3 -15
- data/app/controllers/admin/fields_controller.rb +3 -15
- data/app/controllers/admin/groups_controller.rb +3 -15
- data/app/controllers/admin/plugins_controller.rb +3 -15
- data/app/controllers/admin/settings_controller.rb +3 -15
- data/app/controllers/admin/tags_controller.rb +3 -15
- data/app/controllers/admin/users_controller.rb +3 -15
- data/app/controllers/application_controller.rb +3 -15
- data/app/controllers/authentications_controller.rb +3 -15
- data/app/controllers/comments_controller.rb +6 -16
- data/app/controllers/emails_controller.rb +3 -15
- data/app/controllers/entities/accounts_controller.rb +4 -15
- data/app/controllers/entities/campaigns_controller.rb +4 -15
- data/app/controllers/entities/contacts_controller.rb +4 -15
- data/app/controllers/entities/leads_controller.rb +4 -15
- data/app/controllers/entities/opportunities_controller.rb +6 -16
- data/app/controllers/entities_controller.rb +3 -15
- data/app/controllers/home_controller.rb +3 -15
- data/app/controllers/lists_controller.rb +3 -15
- data/app/controllers/passwords_controller.rb +3 -15
- data/app/controllers/tasks_controller.rb +5 -16
- data/app/controllers/users_controller.rb +3 -15
- data/app/helpers/accounts_helper.rb +7 -17
- data/app/helpers/addresses_helper.rb +3 -15
- data/app/helpers/admin/application_helper.rb +3 -15
- data/app/helpers/admin/field_groups_helper.rb +3 -15
- data/app/helpers/admin/fields_helper.rb +3 -15
- data/app/helpers/admin/plugins_helper.rb +3 -15
- data/app/helpers/admin/settings_helper.rb +3 -15
- data/app/helpers/admin/tags_helper.rb +3 -15
- data/app/helpers/admin/users_helper.rb +3 -15
- data/app/helpers/application_helper.rb +12 -18
- data/app/helpers/authentications_helper.rb +3 -15
- data/app/helpers/campaigns_helper.rb +3 -15
- data/app/helpers/comments_helper.rb +3 -15
- data/app/helpers/contacts_helper.rb +3 -15
- data/app/helpers/emails_helper.rb +3 -15
- data/app/helpers/fields_helper.rb +3 -15
- data/app/helpers/groups_helper.rb +5 -0
- data/app/helpers/home_helper.rb +3 -15
- data/app/helpers/leads_helper.rb +3 -15
- data/app/helpers/lists_helper.rb +3 -15
- data/app/helpers/opportunities_helper.rb +3 -15
- data/app/helpers/passwords_helper.rb +3 -15
- data/app/helpers/tags_helper.rb +3 -15
- data/app/helpers/tasks_helper.rb +3 -15
- data/app/helpers/users_helper.rb +3 -15
- data/app/helpers/versions_helper.rb +3 -15
- data/app/inputs/{datepair_input.rb → date_pair_input.rb} +10 -21
- data/app/inputs/date_time_input.rb +13 -15
- data/app/inputs/datetime_pair_input.rb +26 -0
- data/app/inputs/text_input.rb +5 -15
- data/app/mailers/dropbox_mailer.rb +3 -15
- data/app/mailers/subscription_mailer.rb +9 -16
- data/app/mailers/user_mailer.rb +3 -15
- data/app/models/entities/account.rb +7 -17
- data/app/models/entities/account_contact.rb +6 -17
- data/app/models/entities/account_opportunity.rb +5 -15
- data/app/models/entities/campaign.rb +5 -15
- data/app/models/entities/contact.rb +15 -25
- data/app/models/entities/contact_opportunity.rb +5 -15
- data/app/models/entities/lead.rb +6 -16
- data/app/models/entities/opportunity.rb +6 -16
- data/app/models/fields/core_field.rb +5 -16
- data/app/models/fields/custom_field.rb +6 -16
- data/app/models/fields/custom_field_date_pair.rb +6 -21
- data/app/models/fields/custom_field_datetime_pair.rb +5 -19
- data/app/models/fields/custom_field_pair.rb +6 -16
- data/app/models/fields/field.rb +6 -17
- data/app/models/fields/field_group.rb +7 -17
- data/app/models/list.rb +4 -15
- data/app/models/observers/entity_observer.rb +5 -0
- data/app/models/observers/lead_observer.rb +3 -15
- data/app/models/observers/opportunity_observer.rb +3 -15
- data/app/models/observers/task_observer.rb +3 -15
- data/app/models/polymorphic/address.rb +5 -16
- data/app/models/polymorphic/avatar.rb +5 -16
- data/app/models/polymorphic/comment.rb +5 -15
- data/app/models/polymorphic/email.rb +5 -15
- data/app/models/polymorphic/tag.rb +6 -16
- data/app/models/polymorphic/tagging.rb +4 -15
- data/app/models/polymorphic/task.rb +6 -16
- data/app/models/setting.rb +5 -23
- data/app/models/users/ability.rb +9 -2
- data/app/models/users/authentication.rb +5 -16
- data/app/models/users/group.rb +7 -0
- data/app/models/users/permission.rb +5 -16
- data/app/models/users/preference.rb +4 -15
- data/app/models/users/user.rb +10 -19
- data/app/views/admin/fields/index.html.haml +2 -0
- data/app/views/comments/_edit.html.haml +0 -1
- data/app/views/comments/_new.html.haml +0 -1
- data/app/views/contacts/_contacts.html.haml +1 -1
- data/app/views/contacts/_sidebar_show.html.haml +19 -0
- data/app/views/contacts/_top_section.html.haml +3 -2
- data/app/views/entities/_search.html.haml +4 -3
- data/app/views/entities/contacts.js.rjs +1 -1
- data/app/views/entities/leads.js.rjs +1 -1
- data/app/views/entities/opportunities.js.rjs +1 -1
- data/app/views/fields/_edit_custom_field_group.html.haml +1 -1
- data/app/views/home/_task.html.haml +3 -1
- data/app/views/layouts/_footer.html.haml +1 -1
- data/app/views/leads/_leads.html.haml +1 -1
- data/app/views/leads/_sidebar_show.html.haml +7 -0
- data/app/views/leads/_top_section.html.haml +3 -2
- data/app/views/lists/_sidebar.html.haml +5 -5
- data/app/views/opportunities/_opportunities.html.haml +1 -1
- data/app/views/versions/_versions.html.haml +1 -1
- data/config/application.rb +11 -3
- data/config/boot.rb +5 -1
- data/config/deploy.example.rb +5 -0
- data/config/environment.rb +5 -0
- data/config/environments/development.rb +5 -0
- data/config/environments/production.rb +5 -0
- data/config/environments/staging.rb +5 -0
- data/config/environments/test.rb +6 -1
- data/config/initializers/action_mailer.rb +5 -0
- data/config/initializers/authlogic.rb +5 -0
- data/config/initializers/constants.rb +5 -0
- data/config/initializers/gravatar.rb +5 -0
- data/config/initializers/locale.rb +3 -15
- data/config/initializers/mime_types.rb +5 -0
- data/config/initializers/paginate_arrays.rb +5 -0
- data/config/initializers/paper_trail.rb +5 -0
- data/config/initializers/ransack.rb +6 -1
- data/config/initializers/relative_url_root.rb +3 -15
- data/config/initializers/sass.rb +5 -0
- data/config/initializers/secret_token.rb +6 -1
- data/config/initializers/simple_form.rb +5 -0
- data/config/initializers/views.rb +5 -0
- data/config/locales/de_fat_free_crm.yml +125 -7
- data/config/locales/en-US_fat_free_crm.yml +7 -2
- data/config/locales/th.rb +5 -0
- data/config/routes.rb +5 -0
- data/config/settings.default.yml +10 -18
- data/config/unicorn.rb +5 -0
- data/fat_free_crm.gemspec +6 -4
- data/lib/development_tasks/gem.rake +3 -15
- data/lib/development_tasks/license.rake +12 -32
- data/lib/development_tasks/rdoc.rake +3 -15
- data/lib/development_tasks/rspec.rake +3 -15
- data/lib/fat_free_crm.rb +6 -16
- data/lib/fat_free_crm/callback.rb +3 -15
- data/lib/fat_free_crm/comment_extensions.rb +5 -0
- data/lib/fat_free_crm/core_ext.rb +3 -15
- data/lib/fat_free_crm/core_ext/nil.rb +3 -15
- data/lib/fat_free_crm/core_ext/string.rb +3 -15
- data/lib/fat_free_crm/custom_fields.rb +12 -0
- data/lib/fat_free_crm/engine.rb +3 -15
- data/lib/fat_free_crm/errors.rb +3 -15
- data/lib/fat_free_crm/exceptions.rb +3 -15
- data/lib/fat_free_crm/export_csv.rb +35 -0
- data/lib/fat_free_crm/exportable.rb +3 -15
- data/lib/fat_free_crm/fields.rb +5 -17
- data/lib/fat_free_crm/gem_dependencies.rb +3 -15
- data/lib/fat_free_crm/gem_ext.rb +3 -15
- data/lib/fat_free_crm/gem_ext/action_controller/base.rb +3 -15
- data/lib/fat_free_crm/gem_ext/active_model/serializers/xml/serializer/attribute.rb +3 -15
- data/lib/fat_free_crm/gem_ext/active_record/schema_dumper.rb +3 -15
- data/lib/fat_free_crm/gem_ext/active_support/buffered_logger.rb +3 -15
- data/lib/fat_free_crm/gem_ext/authlogic/session/cookies.rb +3 -15
- data/lib/fat_free_crm/gem_ext/rails/engine.rb +3 -15
- data/lib/fat_free_crm/gem_ext/rails/text_helper.rb +3 -15
- data/lib/fat_free_crm/gem_ext/rake/task.rb +3 -15
- data/lib/fat_free_crm/gem_ext/simple_form/action_view_extensions/form_helper.rb +3 -15
- data/lib/fat_free_crm/i18n.rb +3 -15
- data/lib/fat_free_crm/load_settings.rb +20 -0
- data/lib/fat_free_crm/mail_processor/base.rb +20 -18
- data/lib/fat_free_crm/mail_processor/comment_replies.rb +3 -15
- data/lib/fat_free_crm/mail_processor/dropbox.rb +4 -16
- data/lib/fat_free_crm/permissions.rb +3 -15
- data/lib/fat_free_crm/plugin.rb +3 -15
- data/lib/fat_free_crm/plugin_dependencies.rb +3 -15
- data/lib/fat_free_crm/renderers.rb +6 -25
- data/lib/fat_free_crm/sortable.rb +3 -15
- data/lib/fat_free_crm/tabs.rb +3 -15
- data/lib/fat_free_crm/version.rb +5 -17
- data/lib/fat_free_crm/view_factory.rb +3 -15
- data/lib/missing_translation_detector.rb +50 -0
- data/lib/tasks/db/migrate.rake +3 -15
- data/lib/tasks/db/schema.rake +3 -15
- data/lib/tasks/ffcrm/comment_replies.rake +3 -15
- data/lib/tasks/ffcrm/config.rake +28 -16
- data/lib/tasks/ffcrm/demo.rake +3 -15
- data/lib/tasks/ffcrm/dropbox.rake +3 -15
- data/lib/tasks/ffcrm/missing_translations.rake +33 -0
- data/lib/tasks/ffcrm/settings.rake +3 -15
- data/lib/tasks/ffcrm/setup.rake +15 -24
- data/lib/tasks/ffcrm/update_data.rake +3 -15
- data/spec/controllers/admin/groups_controller_spec.rb +5 -0
- data/spec/controllers/admin/users_controller_spec.rb +5 -0
- data/spec/controllers/applications_controller_spec.rb +5 -0
- data/spec/controllers/authentications_controller_spec.rb +5 -0
- data/spec/controllers/comments_controller_spec.rb +5 -0
- data/spec/controllers/emails_controller_spec.rb +5 -0
- data/spec/controllers/entities/accounts_controller_spec.rb +5 -0
- data/spec/controllers/entities/campaigns_controller_spec.rb +5 -0
- data/spec/controllers/entities/contacts_controller_spec.rb +5 -0
- data/spec/controllers/entities/leads_controller_spec.rb +5 -0
- data/spec/controllers/entities/opportunities_controller_spec.rb +5 -0
- data/spec/controllers/entities_controller_spec.rb +5 -0
- data/spec/controllers/home_controller_spec.rb +5 -0
- data/spec/controllers/lists_controller_spec.rb +5 -0
- data/spec/controllers/passwords_controller_spec.rb +5 -0
- data/spec/controllers/tasks_controller_spec.rb +7 -6
- data/spec/controllers/users_controller_spec.rb +5 -0
- data/spec/factories/account_factories.rb +5 -0
- data/spec/factories/campaign_factories.rb +6 -1
- data/spec/factories/contact_factories.rb +6 -1
- data/spec/factories/field_factories.rb +6 -1
- data/spec/factories/lead_factories.rb +6 -1
- data/spec/factories/list_factories.rb +6 -1
- data/spec/factories/opportunity_factories.rb +16 -5
- data/spec/factories/sequences.rb +7 -1
- data/spec/factories/setting_factories.rb +6 -1
- data/spec/factories/shared_factories.rb +5 -0
- data/spec/factories/subscription_factories.rb +5 -0
- data/spec/factories/tag_factories.rb +6 -1
- data/spec/factories/task_factories.rb +6 -1
- data/spec/factories/user_factories.rb +5 -0
- data/spec/features/acceptance_helper.rb +9 -0
- data/spec/{acceptance → features}/accounts_spec.rb +14 -9
- data/spec/{acceptance → features}/admin/groups_spec.rb +5 -0
- data/spec/{acceptance → features}/admin/users_spec.rb +9 -4
- data/spec/{acceptance → features}/campaigns_spec.rb +14 -16
- data/spec/{acceptance → features}/contacts_spec.rb +13 -16
- data/spec/{acceptance → features}/dashboard_spec.rb +5 -0
- data/spec/{acceptance → features}/leads_spec.rb +11 -12
- data/spec/{acceptance → features}/opportunities_overview_spec.rb +5 -0
- data/spec/{acceptance → features}/opportunities_spec.rb +14 -16
- data/spec/features/support/browser.rb +18 -0
- data/spec/{acceptance → features}/support/headless.rb +5 -3
- data/spec/{acceptance → features}/support/helpers.rb +6 -1
- data/spec/features/support/maintain_sessions.rb +10 -0
- data/spec/{acceptance → features}/support/paths.rb +9 -4
- data/spec/{acceptance → features}/support/selector_helpers.rb +6 -1
- data/spec/{acceptance → features}/tasks_spec.rb +7 -5
- data/spec/helpers/accounts_helper_spec.rb +5 -0
- data/spec/helpers/admin/field_groups_helper_spec.rb +5 -0
- data/spec/helpers/admin/plugins_helper_spec.rb +5 -0
- data/spec/helpers/admin/settings_helper_spec.rb +5 -0
- data/spec/helpers/admin/users_helper_spec.rb +5 -0
- data/spec/helpers/application_helper_spec.rb +5 -0
- data/spec/helpers/authentications_helper_spec.rb +5 -0
- data/spec/helpers/campaigns_helper_spec.rb +5 -0
- data/spec/helpers/comments_helper_spec.rb +5 -0
- data/spec/helpers/contacts_helper_spec.rb +5 -0
- data/spec/helpers/emails_helper_spec.rb +5 -0
- data/spec/helpers/fields_helper_spec.rb +5 -0
- data/spec/helpers/groups_helper_spec.rb +6 -1
- data/spec/helpers/home_helper_spec.rb +5 -0
- data/spec/helpers/leads_helper_spec.rb +5 -0
- data/spec/helpers/lists_helper_spec.rb +6 -1
- data/spec/helpers/opportunities_helper_spec.rb +5 -0
- data/spec/helpers/passwords_helper_spec.rb +5 -0
- data/spec/helpers/tasks_helper_spec.rb +5 -0
- data/spec/helpers/users_helper_spec.rb +5 -0
- data/spec/lib/comment_extensions_spec.rb +5 -0
- data/spec/lib/core_ext/string_spec.rb +5 -0
- data/spec/lib/errors_spec.rb +5 -0
- data/spec/lib/fields_spec.rb +5 -0
- data/spec/lib/mail_processor/base_spec.rb +5 -0
- data/spec/lib/mail_processor/comment_replies_spec.rb +5 -0
- data/spec/lib/mail_processor/dropbox_spec.rb +5 -0
- data/spec/lib/mail_processor/sample_emails/dropbox.rb +5 -0
- data/spec/lib/permissions_spec.rb +5 -0
- data/spec/lib/view_factory_spec.rb +5 -0
- data/spec/mailers/subscription_mailer_spec.rb +19 -1
- data/spec/mailers/user_mailer_spec.rb +6 -1
- data/spec/models/entities/account_contact_spec.rb +5 -0
- data/spec/models/entities/account_opportunity_spec.rb +5 -0
- data/spec/models/entities/account_spec.rb +6 -1
- data/spec/models/entities/campaign_spec.rb +5 -0
- data/spec/models/entities/contact_opportunity_spec.rb +5 -0
- data/spec/models/entities/contact_spec.rb +5 -0
- data/spec/models/entities/lead_spec.rb +5 -0
- data/spec/models/entities/opportunity_spec.rb +15 -2
- data/spec/models/fields/custom_field_date_pair_spec.rb +3 -15
- data/spec/models/fields/custom_field_pair_spec.rb +3 -15
- data/spec/models/fields/custom_field_spec.rb +5 -0
- data/spec/models/fields/field_group_spec.rb +5 -0
- data/spec/models/fields/field_spec.rb +5 -0
- data/spec/models/list_spec.rb +5 -0
- data/spec/models/observers/entity_observer_spec.rb +5 -0
- data/spec/models/polymorphic/address_spec.rb +5 -0
- data/spec/models/polymorphic/avatar_spec.rb +5 -0
- data/spec/models/polymorphic/comment_spec.rb +5 -0
- data/spec/models/polymorphic/email_spec.rb +5 -0
- data/spec/models/polymorphic/task_spec.rb +5 -0
- data/spec/models/polymorphic/version_spec.rb +26 -22
- data/spec/models/setting_spec.rb +5 -0
- data/spec/models/users/authentication_spec.rb +5 -0
- data/spec/models/users/group_spec.rb +6 -1
- data/spec/models/users/permission_spec.rb +5 -0
- data/spec/models/users/preference_spec.rb +5 -0
- data/spec/models/users/user_spec.rb +6 -1
- data/spec/routing/accounts_routing_spec.rb +5 -0
- data/spec/routing/admin/users_routing_spec.rb +5 -0
- data/spec/routing/campaigns_routing_spec.rb +5 -0
- data/spec/routing/comments_routing_spec.rb +5 -0
- data/spec/routing/contacts_routing_spec.rb +5 -0
- data/spec/routing/emails_routing_spec.rb +5 -0
- data/spec/routing/leads_routing_spec.rb +5 -0
- data/spec/routing/opportunities_routing_spec.rb +5 -0
- data/spec/routing/tasks_routing_spec.rb +5 -0
- data/spec/routing/users_routing_spec.rb +5 -0
- data/spec/shared/controllers.rb +8 -3
- data/spec/shared/models.rb +110 -105
- data/spec/spec_helper.rb +40 -22
- data/spec/support/assert_select.rb +5 -0
- data/spec/support/auth_macros.rb +5 -0
- data/spec/support/macros.rb +5 -0
- data/spec/support/mail_processor_mocks.rb +5 -0
- data/spec/support/rjs_support.rb +6 -1
- data/spec/support/uploaded_file.rb +5 -0
- data/spec/views/accounts/_edit.haml_spec.rb +5 -0
- data/spec/views/accounts/_new.haml_spec.rb +5 -0
- data/spec/views/accounts/create.rjs_spec.rb +5 -0
- data/spec/views/accounts/destroy.rjs_spec.rb +5 -0
- data/spec/views/accounts/edit.rjs_spec.rb +5 -0
- data/spec/views/accounts/index.haml_spec.rb +5 -0
- data/spec/views/accounts/index.rjs_spec.rb +5 -0
- data/spec/views/accounts/new.rjs_spec.rb +5 -0
- data/spec/views/accounts/show.haml_spec.rb +5 -0
- data/spec/views/accounts/update.rjs_spec.rb +5 -0
- data/spec/views/admin/users/_create.haml_spec.rb +5 -0
- data/spec/views/admin/users/create.rjs_spec.rb +5 -0
- data/spec/views/admin/users/destroy.rjs_spec.rb +5 -0
- data/spec/views/admin/users/edit.rjs_spec.rb +5 -0
- data/spec/views/admin/users/index.haml_spec.rb +5 -0
- data/spec/views/admin/users/index.rjs_spec.rb +5 -0
- data/spec/views/admin/users/new.rjs_spec.rb +5 -0
- data/spec/views/admin/users/reactivate.rjs_spec.rb +5 -0
- data/spec/views/admin/users/show.haml_spec.rb +5 -0
- data/spec/views/admin/users/suspend.rjs_spec.rb +5 -0
- data/spec/views/admin/users/update.rjs_spec.rb +5 -0
- data/spec/views/application/auto_complete.haml_spec.rb +5 -0
- data/spec/views/authentications/new.haml_spec.rb +5 -0
- data/spec/views/campaigns/_edit.haml_spec.rb +8 -2
- data/spec/views/campaigns/_new.haml_spec.rb +5 -0
- data/spec/views/campaigns/create.rjs_spec.rb +5 -0
- data/spec/views/campaigns/destroy.rjs_spec.rb +5 -0
- data/spec/views/campaigns/edit.rjs_spec.rb +5 -0
- data/spec/views/campaigns/index.haml_spec.rb +5 -0
- data/spec/views/campaigns/index.rjs_spec.rb +5 -0
- data/spec/views/campaigns/new.rjs_spec.rb +5 -0
- data/spec/views/campaigns/show.haml_spec.rb +5 -0
- data/spec/views/campaigns/update.rjs_spec.rb +5 -0
- data/spec/views/comments/new.rjs_spec.rb +5 -0
- data/spec/views/contacts/_edit.haml_spec.rb +5 -0
- data/spec/views/contacts/_new.haml_spec.rb +5 -0
- data/spec/views/contacts/create.rjs_spec.rb +5 -0
- data/spec/views/contacts/destroy.rjs_spec.rb +5 -0
- data/spec/views/contacts/edit.rjs_spec.rb +5 -0
- data/spec/views/contacts/index.haml_spec.rb +5 -0
- data/spec/views/contacts/index.rjs_spec.rb +5 -0
- data/spec/views/contacts/new.rjs_spec.rb +5 -0
- data/spec/views/contacts/show.haml_spec.rb +5 -0
- data/spec/views/contacts/update.rjs_spec.rb +5 -0
- data/spec/views/home/index.haml_spec.rb +5 -0
- data/spec/views/home/index.rjs_spec.rb +5 -0
- data/spec/views/home/options.rjs_spec.rb +5 -0
- data/spec/views/leads/_convert.haml_spec.rb +5 -0
- data/spec/views/leads/_edit.haml_spec.rb +5 -0
- data/spec/views/leads/_new.haml_spec.rb +5 -0
- data/spec/views/leads/_sidebar_show.haml_spec.rb +5 -0
- data/spec/views/leads/convert.rjs_spec.rb +5 -0
- data/spec/views/leads/create.rjs_spec.rb +5 -0
- data/spec/views/leads/destroy.rjs_spec.rb +5 -0
- data/spec/views/leads/edit.rjs_spec.rb +5 -0
- data/spec/views/leads/index.haml_spec.rb +5 -0
- data/spec/views/leads/index.rjs_spec.rb +5 -0
- data/spec/views/leads/new.rjs_spec.rb +5 -0
- data/spec/views/leads/promote.rjs_spec.rb +5 -0
- data/spec/views/leads/reject.rjs_spec.rb +5 -0
- data/spec/views/leads/show.haml_spec.rb +5 -0
- data/spec/views/leads/update.rjs_spec.rb +5 -0
- data/spec/views/opportunities/_edit.haml_spec.rb +5 -0
- data/spec/views/opportunities/_new.haml_spec.rb +5 -0
- data/spec/views/opportunities/create.rjs_spec.rb +5 -0
- data/spec/views/opportunities/destroy.rjs_spec.rb +5 -0
- data/spec/views/opportunities/edit.rjs_spec.rb +5 -0
- data/spec/views/opportunities/index.haml_spec.rb +5 -0
- data/spec/views/opportunities/index.rjs_spec.rb +5 -0
- data/spec/views/opportunities/new.rjs_spec.rb +5 -0
- data/spec/views/opportunities/show.haml_spec.rb +5 -0
- data/spec/views/opportunities/update.rjs_spec.rb +5 -0
- data/spec/views/tasks/_edit.haml_spec.rb +5 -0
- data/spec/views/tasks/complete.rjs_spec.rb +5 -0
- data/spec/views/tasks/create.rjs_spec.rb +5 -0
- data/spec/views/tasks/destroy.rjs_spec.rb +5 -0
- data/spec/views/tasks/edit.rjs_spec.rb +5 -0
- data/spec/views/tasks/index.haml_spec.rb +5 -0
- data/spec/views/tasks/new.rjs_spec.rb +5 -0
- data/spec/views/tasks/update.rjs_spec.rb +5 -0
- data/spec/views/users/avatar.rjs_spec.rb +5 -0
- data/spec/views/users/change_password.rjs_spec.rb +5 -0
- data/spec/views/users/edit.rjs_spec.rb +5 -0
- data/spec/views/users/password.rjs_spec.rb +5 -0
- data/spec/views/users/update.rjs_spec.rb +5 -0
- data/spec/views/users/upload_avatar.rjs_spec.rb +5 -0
- metadata +45 -101
- data/LICENSE +0 -620
- data/app/inputs/datetimepair_input.rb +0 -37
- data/config/initializers/custom_fields.rb +0 -21
- data/lib/fat_free_crm/core_ext/array.rb +0 -75
- data/lib/fat_free_crm/syck_yaml.rb +0 -21
- data/spec/acceptance/acceptance_helper.rb +0 -8
- data/spec/acceptance/support/browser.rb +0 -13
- data/spec/acceptance/support/maintain_sessions.rb +0 -5
data/Guardfile
CHANGED
@@ -1,34 +1,7 @@
|
|
1
1
|
# A sample Guardfile
|
2
2
|
# More info at https://github.com/guard/guard#readme
|
3
3
|
|
4
|
-
guard '
|
5
|
-
watch('Gemfile.lock')
|
6
|
-
watch(%r{^(config|lib)/.*})
|
7
|
-
end
|
8
|
-
|
9
|
-
# Necessary so that livereload can reload changed css
|
10
|
-
guard 'sass', :input => 'app/assets/stylesheets', :output => 'public/assets'
|
11
|
-
|
12
|
-
guard 'livereload' do
|
13
|
-
watch(%r{app/.+\.(erb|haml)})
|
14
|
-
watch(%r{app/helpers/.+\.rb})
|
15
|
-
watch(%r{(public/|app/assets).+\.(css|js|html)})
|
16
|
-
watch(%r{(app/assets/.+\.css)\.s[ac]ss}) { |m| m[1] }
|
17
|
-
watch(%r{(app/assets/.+\.js)\.coffee}) { |m| m[1] }
|
18
|
-
watch(%r{config/locales/.+\.yml})
|
19
|
-
end
|
20
|
-
|
21
|
-
guard 'spork', :wait => 60, :rspec_env => { 'RAILS_ENV' => 'test' } do
|
22
|
-
watch('config/application.rb')
|
23
|
-
watch('config/environment.rb')
|
24
|
-
watch(%r{^config/environments/.+\.rb$})
|
25
|
-
watch(%r{^config/initializers/.+\.rb$})
|
26
|
-
watch('Gemfile')
|
27
|
-
watch('Gemfile.lock')
|
28
|
-
watch('spec/spec_helper.rb') { :rspec }
|
29
|
-
end
|
30
|
-
|
31
|
-
guard 'rspec', :all_on_start => false, :all_after_pass => false, :cli => "--color --format nested --fail-fast --drb" do
|
4
|
+
guard 'rspec', zeus: true, bundler: false, all_on_start: false, all_after_pass: false, cli: "--color --format nested --fail-fast" do
|
32
5
|
watch(%r{^spec/.+_spec\.rb$})
|
33
6
|
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
|
34
7
|
watch('spec/spec_helper.rb') { "spec" }
|
@@ -36,10 +9,17 @@ guard 'rspec', :all_on_start => false, :all_after_pass => false, :cli => "--colo
|
|
36
9
|
# Rails example
|
37
10
|
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
38
11
|
watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
|
39
|
-
watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb"
|
12
|
+
watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb"] }
|
40
13
|
watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
|
41
14
|
watch('config/routes.rb') { "spec/routing" }
|
42
15
|
watch('app/controllers/application_controller.rb') { "spec/controllers" }
|
43
|
-
|
44
|
-
|
16
|
+
|
17
|
+
# Capybara features specs
|
18
|
+
# watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/features/#{m[1]}_spec.rb" }
|
19
|
+
|
20
|
+
end
|
21
|
+
|
22
|
+
guard 'rails', server: 'thin', debugger: true, zeus: true do
|
23
|
+
watch('Gemfile.lock')
|
24
|
+
watch(%r{^(config|lib)/.*})
|
45
25
|
end
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
Fat Free CRM
|
2
|
+
Copyright (c) 2008-2013 Michael Dvorkin and contributors.
|
3
|
+
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
5
|
+
a copy of this software and associated documentation files (the
|
6
|
+
"Software"), to deal in the Software without restriction, including
|
7
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
8
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
9
|
+
permit persons to whom the Software is furnished to do so, subject to
|
10
|
+
the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be
|
13
|
+
included in all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
16
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
17
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
18
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
19
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
20
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
21
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
@@ -49,22 +49,19 @@ New features, enhancements, and updates appear on regular basis.
|
|
49
49
|
|
50
50
|
Pull requests and bug reports are always welcome!
|
51
51
|
|
52
|
+
Visit our website at http://www.fatfreecrm.com/
|
53
|
+
|
52
54
|
|
53
55
|
## System Requirements
|
54
56
|
|
55
|
-
* Ruby v1.
|
57
|
+
* Ruby v1.9.3 recommended (1.9.2 also works, ruby 2.0.0 does NOT)
|
58
|
+
* Note that Ruby v1.8.7 was supported until v0.11.4 (see https://github.com/fatfreecrm/fat_free_crm/tree/ruby1.8)
|
56
59
|
* MySQL v4.1.1 or later (v5+ is recommended), SQLite v3.4 or later, or Postgres 8.4.8 or later.
|
57
60
|
* ImageMagick (optional, only needed if you would like to use avatars)
|
58
61
|
|
59
62
|
(Ruby on Rails and other gem dependencies will be installed automatically by Bundler.)
|
60
63
|
|
61
64
|
|
62
|
-
### Downloads
|
63
|
-
|
64
|
-
* Git source code repository: `git clone git://github.com/fatfreecrm/fat_free_crm.git`
|
65
|
-
* **.zip** or **.tgz** archives: http://github.com/fatfreecrm/fat_free_crm/downloads
|
66
|
-
|
67
|
-
|
68
65
|
## Installation
|
69
66
|
|
70
67
|
Please view one of the following installation guides:
|
@@ -81,10 +78,6 @@ Setting up a Heroku instance for Fat Free CRM
|
|
81
78
|
|
82
79
|
Installing Fat Free CRM on Microsoft Windows
|
83
80
|
|
84
|
-
### [Ubuntu Server Setup Script](http://guides.fatfreecrm.com/Ubuntu-Server-Setup-Script.html)
|
85
|
-
|
86
|
-
Run this bash script to quickly setup a Ubuntu server
|
87
|
-
|
88
81
|
### [Running Fat Free CRM as a Rails Engine](http://guides.fatfreecrm.com/Running-as-a-Rails-Engine.html)
|
89
82
|
|
90
83
|
Run the Fat Free CRM gem within a separate Rails application.
|
@@ -93,18 +86,7 @@ This is the best way to deploy Fat Free CRM if you need to add plugins or make a
|
|
93
86
|
|
94
87
|
## Upgrading from previous versions of Fat Free CRM
|
95
88
|
|
96
|
-
|
97
|
-
|
98
|
-
If you are upgrading from version 0.10.1 or below to the latest Rails 3.x version, your database schema
|
99
|
-
needs to be updated.
|
100
|
-
|
101
|
-
Please run the following commands in this order:
|
102
|
-
|
103
|
-
```bash
|
104
|
-
bundle install --without heroku # Installs gem dependencies
|
105
|
-
rake ffcrm:upgrade:schema # Updates your schema to use the new timestamped migrations
|
106
|
-
rake db:migrate # Runs any new database migrations.
|
107
|
-
```
|
89
|
+
Please read the [Release Notes](http://guides.fatfreecrm.com/Release-Notes.html) document for more detailed information on upgrading from previous versions.
|
108
90
|
|
109
91
|
|
110
92
|
## Resources
|
@@ -117,6 +99,7 @@ rake db:migrate # Runs any new database migrations.
|
|
117
99
|
| **Github Project Page**: | http://github.com/fatfreecrm/fat_free_crm |
|
118
100
|
| **Feature Requests and Bugs**: | http://support.fatfreecrm.com/ |
|
119
101
|
| **RDoc API**: | http://api.fatfreecrm.com |
|
102
|
+
| **Ruby gem**: | https://rubygems.org/gems/fat_free_crm |
|
120
103
|
| **Twitter Commit Updates**: | http://twitter.com/fatfreecrm |
|
121
104
|
| **User's Google Group**: | http://groups.google.com/group/fat-free-crm-users |
|
122
105
|
| **Developer's Google Group**: | http://groups.google.com/group/fat-free-crm-dev |
|
@@ -134,26 +117,34 @@ the concepts:
|
|
134
117
|
* http://github.com/michaeldv/crm_web_to_lead/tree/master
|
135
118
|
* http://github.com/michaeldv/crm_tags/tree/master
|
136
119
|
|
137
|
-
##
|
120
|
+
## Main contributors
|
138
121
|
|
122
|
+
* [Michael Dvorkin (@michaeldv)](https://github.com/michaeldv) - Founding creator
|
139
123
|
* [Nathan Broadbent (@ndbroadbent)](https://github.com/ndbroadbent)
|
140
|
-
* [Ben Tillman (@warp)](https://github.com/warp)
|
141
124
|
* [Steve Kenworthy (@steveyken)](https://github.com/steveyken)
|
142
125
|
|
143
|
-
See the [contributors graph](https://github.com/fatfreecrm/fat_free_crm/graphs/contributors) for further details.
|
126
|
+
See the [contributors graph](https://github.com/fatfreecrm/fat_free_crm/graphs/contributors) and the [contributors file](https://github.com/fatfreecrm/fat_free_crm/blob/master/CONTRIBUTORS) for further details.
|
144
127
|
|
145
128
|
## License
|
146
129
|
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
130
|
+
Fat Free CRM
|
131
|
+
Copyright (c) 2008-2013 Michael Dvorkin and contributors.
|
132
|
+
|
133
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
134
|
+
a copy of this software and associated documentation files (the
|
135
|
+
"Software"), to deal in the Software without restriction, including
|
136
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
137
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
138
|
+
permit persons to whom the Software is furnished to do so, subject to
|
139
|
+
the following conditions:
|
140
|
+
|
141
|
+
The above copyright notice and this permission notice shall be
|
142
|
+
included in all copies or substantial portions of the Software.
|
143
|
+
|
144
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
145
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
146
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
147
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
148
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
149
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
150
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -1,21 +1,8 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
it under the terms of the GNU Affero General Public License as published by
|
7
|
-
the Free Software Foundation, either version 3 of the License, or
|
8
|
-
(at your option) any later version.
|
9
|
-
|
10
|
-
This program is distributed in the hope that it will be useful,
|
11
|
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
-
GNU Affero General Public License for more details.
|
14
|
-
|
15
|
-
You should have received a copy of the GNU Affero General Public License
|
16
|
-
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
17
|
-
------------------------------------------------------------------------------
|
18
|
-
###
|
1
|
+
# Copyright (c) 2008-2013 Michael Dvorkin and contributors.
|
2
|
+
#
|
3
|
+
# Fat Free CRM is freely distributable under the terms of MIT license.
|
4
|
+
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
|
5
|
+
#------------------------------------------------------------------------------
|
19
6
|
|
20
7
|
(($) ->
|
21
8
|
|
@@ -1,18 +1,7 @@
|
|
1
|
-
//
|
2
|
-
// Copyright (C) 2008-2011 by Michael Dvorkin
|
1
|
+
// Copyright (c) 2008-2013 Michael Dvorkin and contributors.
|
3
2
|
//
|
4
|
-
//
|
5
|
-
//
|
6
|
-
// the Free Software Foundation, either version 3 of the License, or
|
7
|
-
// (at your option) any later version.
|
8
|
-
//
|
9
|
-
// This program is distributed in the hope that it will be useful,
|
10
|
-
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
-
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
-
// GNU Affero General Public License for more details.
|
13
|
-
//
|
14
|
-
// You should have received a copy of the GNU Affero General Public License
|
15
|
-
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
3
|
+
// Fat Free CRM is freely distributable under the terms of MIT license.
|
4
|
+
// See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
|
16
5
|
//------------------------------------------------------------------------------
|
17
6
|
|
18
7
|
//= require jquery
|
@@ -1,20 +1,8 @@
|
|
1
|
-
//
|
2
|
-
// Copyright (C) 2008-2011 by Michael Dvorkin
|
1
|
+
// Copyright (c) 2008-2013 Michael Dvorkin and contributors.
|
3
2
|
//
|
4
|
-
//
|
5
|
-
//
|
6
|
-
// the Free Software Foundation, either version 3 of the License, or
|
7
|
-
// (at your option) any later version.
|
8
|
-
//
|
9
|
-
// This program is distributed in the hope that it will be useful,
|
10
|
-
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
-
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
-
// GNU Affero General Public License for more details.
|
13
|
-
//
|
14
|
-
// You should have received a copy of the GNU Affero General Public License
|
15
|
-
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
3
|
+
// Fat Free CRM is freely distributable under the terms of MIT license.
|
4
|
+
// See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
|
16
5
|
//------------------------------------------------------------------------------
|
17
|
-
|
18
6
|
var crm = {
|
19
7
|
|
20
8
|
EXPANDED : "▼",
|
@@ -1,3 +1,8 @@
|
|
1
|
+
# Copyright (c) 2008-2013 Michael Dvorkin and contributors.
|
2
|
+
#
|
3
|
+
# Fat Free CRM is freely distributable under the terms of MIT license.
|
4
|
+
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
|
5
|
+
#------------------------------------------------------------------------------
|
1
6
|
# Initialize chosen for multiselect tag list
|
2
7
|
crm.chosen_taglist = (asset, controller, id)->
|
3
8
|
new Chosen $(asset + '_tag_list'), {
|
@@ -19,13 +24,25 @@ crm.ensure_chosen_account = ->
|
|
19
24
|
}
|
20
25
|
|
21
26
|
(($j) ->
|
27
|
+
|
28
|
+
# Prefer standard select2 dropdown for non-Ajaxy selectboxes
|
29
|
+
add_select2_boxes = ->
|
30
|
+
$j("select[name*='assigned_to'], select[name*='[country]'], .chzn-select" ).each ->
|
31
|
+
$j(this).select2()
|
22
32
|
|
23
|
-
#
|
33
|
+
# Apply pop up to merge links when document is loaded
|
34
|
+
$j(document).ready ->
|
35
|
+
add_select2_boxes()
|
36
|
+
|
37
|
+
# Apply pop up to merge links when jquery event (e.g. search) occurs
|
38
|
+
$j(document).ajaxComplete ->
|
39
|
+
add_select2_boxes()
|
40
|
+
|
41
|
+
# Apply pop up to merge links when protoype event (e.g. cancel edit) occurs
|
24
42
|
Ajax.Responders.register({
|
25
43
|
onComplete: ->
|
26
|
-
|
27
|
-
|
28
|
-
new Chosen this, { allow_single_deselect: true }
|
44
|
+
add_select2_boxes()
|
45
|
+
|
29
46
|
})
|
30
47
|
|
31
48
|
) (jQuery)
|
@@ -1,20 +1,8 @@
|
|
1
|
-
//
|
2
|
-
// Copyright (C) 2008-2011 by Michael Dvorkin
|
1
|
+
// Copyright (c) 2008-2013 Michael Dvorkin and contributors.
|
3
2
|
//
|
4
|
-
//
|
5
|
-
//
|
6
|
-
// the Free Software Foundation, either version 3 of the License, or
|
7
|
-
// (at your option) any later version.
|
8
|
-
//
|
9
|
-
// This program is distributed in the hope that it will be useful,
|
10
|
-
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
-
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
-
// GNU Affero General Public License for more details.
|
13
|
-
//
|
14
|
-
// You should have received a copy of the GNU Affero General Public License
|
15
|
-
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
3
|
+
// Fat Free CRM is freely distributable under the terms of MIT license.
|
4
|
+
// See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
|
16
5
|
//------------------------------------------------------------------------------
|
17
|
-
|
18
6
|
if (Object.isUndefined(crm)) {
|
19
7
|
var crm = {};
|
20
8
|
};
|
@@ -1,20 +1,8 @@
|
|
1
|
-
//
|
2
|
-
// Copyright (C) 2008-2011 by Michael Dvorkin
|
1
|
+
// Copyright (c) 2008-2013 Michael Dvorkin and contributors.
|
3
2
|
//
|
4
|
-
//
|
5
|
-
//
|
6
|
-
// the Free Software Foundation, either version 3 of the License, or
|
7
|
-
// (at your option) any later version.
|
8
|
-
//
|
9
|
-
// This program is distributed in the hope that it will be useful,
|
10
|
-
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
-
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
-
// GNU Affero General Public License for more details.
|
13
|
-
//
|
14
|
-
// You should have received a copy of the GNU Affero General Public License
|
15
|
-
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
3
|
+
// Fat Free CRM is freely distributable under the terms of MIT license.
|
4
|
+
// See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
|
16
5
|
//------------------------------------------------------------------------------
|
17
|
-
|
18
6
|
//----------------------------------------------------------------------------
|
19
7
|
// AJAX loads the form fields for each field group
|
20
8
|
crm.load_field_group = function(controller, tag, asset_id) {
|
@@ -1,20 +1,8 @@
|
|
1
|
-
//
|
2
|
-
// Copyright (C) 2008-2011 by Michael Dvorkin
|
1
|
+
// Copyright (c) 2008-2013 Michael Dvorkin and contributors.
|
3
2
|
//
|
4
|
-
//
|
5
|
-
//
|
6
|
-
// the Free Software Foundation, either version 3 of the License, or
|
7
|
-
// (at your option) any later version.
|
8
|
-
//
|
9
|
-
// This program is distributed in the hope that it will be useful,
|
10
|
-
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
-
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
-
// GNU Affero General Public License for more details.
|
13
|
-
//
|
14
|
-
// You should have received a copy of the GNU Affero General Public License
|
15
|
-
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
3
|
+
// Fat Free CRM is freely distributable under the terms of MIT license.
|
4
|
+
// See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
|
16
5
|
//------------------------------------------------------------------------------
|
17
|
-
|
18
6
|
if (Object.isUndefined(crm)) {
|
19
7
|
var crm = {};
|
20
8
|
};
|
@@ -1,20 +1,8 @@
|
|
1
|
-
//
|
2
|
-
// Copyright (C) 2008-2011 by Michael Dvorkin
|
1
|
+
// Copyright (c) 2008-2013 Michael Dvorkin and contributors.
|
3
2
|
//
|
4
|
-
//
|
5
|
-
//
|
6
|
-
// the Free Software Foundation, either version 3 of the License, or
|
7
|
-
// (at your option) any later version.
|
8
|
-
//
|
9
|
-
// This program is distributed in the hope that it will be useful,
|
10
|
-
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
-
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
-
// GNU Affero General Public License for more details.
|
13
|
-
//
|
14
|
-
// You should have received a copy of the GNU Affero General Public License
|
15
|
-
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
3
|
+
// Fat Free CRM is freely distributable under the terms of MIT license.
|
4
|
+
// See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
|
16
5
|
//------------------------------------------------------------------------------
|
17
|
-
|
18
6
|
crm.textarea_user_autocomplete = function(el_id) {
|
19
7
|
if (! jQuery('#areacomplete_' + el_id)[0]) {
|
20
8
|
jQuery('#' + el_id).areacomplete({
|
@@ -1,3 +1,8 @@
|
|
1
|
+
# Copyright (c) 2008-2013 Michael Dvorkin and contributors.
|
2
|
+
#
|
3
|
+
# Fat Free CRM is freely distributable under the terms of MIT license.
|
4
|
+
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
|
5
|
+
#------------------------------------------------------------------------------
|
1
6
|
(($) ->
|
2
7
|
|
3
8
|
$('input.date').live 'click focus', ->
|
@@ -1,3 +1,8 @@
|
|
1
|
+
# Copyright (c) 2008-2013 Michael Dvorkin and contributors.
|
2
|
+
#
|
3
|
+
# Fat Free CRM is freely distributable under the terms of MIT license.
|
4
|
+
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
|
5
|
+
#------------------------------------------------------------------------------
|
1
6
|
(($j) ->
|
2
7
|
|
3
8
|
$j('a[data-view]').live 'click', ->
|
@@ -1,3 +1,8 @@
|
|
1
|
+
# Copyright (c) 2008-2013 Michael Dvorkin and contributors.
|
2
|
+
#
|
3
|
+
# Fat Free CRM is freely distributable under the terms of MIT license.
|
4
|
+
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
|
5
|
+
#------------------------------------------------------------------------------
|
1
6
|
# Place all the behaviors and hooks related to the matching controller here.
|
2
7
|
# All this logic will automatically be available in application.js.
|
3
8
|
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
|
@@ -1,18 +1,6 @@
|
|
1
|
-
//
|
2
|
-
// Copyright (C) 2008-2011 by Michael Dvorkin
|
1
|
+
// Copyright (c) 2008-2013 Michael Dvorkin and contributors.
|
3
2
|
//
|
4
|
-
//
|
5
|
-
//
|
6
|
-
// the Free Software Foundation, either version 3 of the License, or
|
7
|
-
// (at your option) any later version.
|
8
|
-
//
|
9
|
-
// This program is distributed in the hope that it will be useful,
|
10
|
-
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
-
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
-
// GNU Affero General Public License for more details.
|
13
|
-
//
|
14
|
-
// You should have received a copy of the GNU Affero General Public License
|
15
|
-
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
3
|
+
// Fat Free CRM is freely distributable under the terms of MIT license.
|
4
|
+
// See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
|
16
5
|
//------------------------------------------------------------------------------
|
17
|
-
|
18
6
|
jQuery.noConflict();
|