reduced_fat_crm 0.14.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.
- checksums.yaml +7 -0
- data/.gitignore +36 -0
- data/.rubocop.yml +5 -0
- data/.teatro.yml +3 -0
- data/.travis.yml +41 -0
- data/CHANGELOG +1923 -0
- data/CONTRIBUTORS +91 -0
- data/Capfile +25 -0
- data/Dockerfile +18 -0
- data/Gemfile +88 -0
- data/Gemfile.lock +430 -0
- data/Guardfile +24 -0
- data/MIT-LICENSE +21 -0
- data/Procfile +1 -0
- data/README.md +153 -0
- data/Rakefile +9 -0
- data/app/assets/images/1x1.gif +0 -0
- data/app/assets/images/asterisk.gif +0 -0
- data/app/assets/images/avatar.jpg +0 -0
- data/app/assets/images/blog.gif +0 -0
- data/app/assets/images/facebook.gif +0 -0
- data/app/assets/images/info.png +0 -0
- data/app/assets/images/info_tiny.png +0 -0
- data/app/assets/images/linkedin.gif +0 -0
- data/app/assets/images/loading.gif +0 -0
- data/app/assets/images/notifications.png +0 -0
- data/app/assets/images/skype.gif +0 -0
- data/app/assets/images/sortable.gif +0 -0
- data/app/assets/images/stars.gif +0 -0
- data/app/assets/images/twitter.gif +0 -0
- data/app/assets/javascripts/admin/fields.js.coffee +72 -0
- data/app/assets/javascripts/application.js.erb +41 -0
- data/app/assets/javascripts/crm.js.coffee +428 -0
- data/app/assets/javascripts/crm_chosen.js.coffee +29 -0
- data/app/assets/javascripts/crm_classes.js.coffee +215 -0
- data/app/assets/javascripts/crm_comments.js.coffee +28 -0
- data/app/assets/javascripts/crm_loginout.js.coffee +27 -0
- data/app/assets/javascripts/crm_select2.js.coffee +31 -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 +20 -0
- data/app/assets/javascripts/format_buttons.js.coffee +52 -0
- data/app/assets/javascripts/lists.js.coffee +54 -0
- data/app/assets/javascripts/pagination.js.coffee +16 -0
- data/app/assets/javascripts/search.js.coffee +55 -0
- data/app/assets/javascripts/timeago.js.coffee +21 -0
- data/app/assets/stylesheets/about.css.scss +10 -0
- data/app/assets/stylesheets/admin/fields.css.scss +17 -0
- data/app/assets/stylesheets/advanced_search.css.scss +108 -0
- data/app/assets/stylesheets/application.css.erb +37 -0
- data/app/assets/stylesheets/base.scss +78 -0
- data/app/assets/stylesheets/common.scss +765 -0
- data/app/assets/stylesheets/ffcrm_chosen.scss +69 -0
- data/app/assets/stylesheets/fields.scss +27 -0
- data/app/assets/stylesheets/format_buttons.css.scss +40 -0
- data/app/assets/stylesheets/groups.css.scss +8 -0
- data/app/assets/stylesheets/header.scss +121 -0
- data/app/assets/stylesheets/index_headers.css.scss +5 -0
- data/app/assets/stylesheets/lists.css.scss +26 -0
- data/app/assets/stylesheets/print.css.scss +77 -0
- data/app/assets/stylesheets/rails.scss +133 -0
- data/app/assets/stylesheets/safari.scss +11 -0
- data/app/assets/stylesheets/textarea_autocomplete.scss +47 -0
- data/app/controllers/admin/application_controller.rb +30 -0
- data/app/controllers/admin/field_groups_controller.rb +83 -0
- data/app/controllers/admin/fields_controller.rb +118 -0
- data/app/controllers/admin/groups_controller.rb +65 -0
- data/app/controllers/admin/plugins_controller.rb +17 -0
- data/app/controllers/admin/settings_controller.rb +14 -0
- data/app/controllers/admin/tags_controller.rb +71 -0
- data/app/controllers/admin/users_controller.rb +144 -0
- data/app/controllers/application_controller.rb +276 -0
- data/app/controllers/authentications_controller.rb +51 -0
- data/app/controllers/comments_controller.rb +93 -0
- data/app/controllers/emails_controller.rb +18 -0
- data/app/controllers/entities/accounts_controller.rb +158 -0
- data/app/controllers/entities/campaigns_controller.rb +197 -0
- data/app/controllers/entities/contacts_controller.rb +178 -0
- data/app/controllers/entities/leads_controller.rb +256 -0
- data/app/controllers/entities/opportunities_controller.rb +222 -0
- data/app/controllers/entities_controller.rb +214 -0
- data/app/controllers/home_controller.rb +156 -0
- data/app/controllers/lists_controller.rb +40 -0
- data/app/controllers/passwords_controller.rb +65 -0
- data/app/controllers/tasks_controller.rb +219 -0
- data/app/controllers/users_controller.rb +159 -0
- data/app/helpers/accounts_helper.rb +110 -0
- data/app/helpers/addresses_helper.rb +17 -0
- data/app/helpers/admin/application_helper.rb +15 -0
- data/app/helpers/admin/field_groups_helper.rb +25 -0
- data/app/helpers/admin/fields_helper.rb +18 -0
- data/app/helpers/admin/plugins_helper.rb +7 -0
- data/app/helpers/admin/settings_helper.rb +7 -0
- data/app/helpers/admin/tags_helper.rb +10 -0
- data/app/helpers/admin/users_helper.rb +51 -0
- data/app/helpers/application_helper.rb +527 -0
- data/app/helpers/authentications_helper.rb +7 -0
- data/app/helpers/campaigns_helper.rb +34 -0
- data/app/helpers/comments_helper.rb +11 -0
- data/app/helpers/contacts_helper.rb +21 -0
- data/app/helpers/emails_helper.rb +7 -0
- data/app/helpers/fields_helper.rb +7 -0
- data/app/helpers/groups_helper.rb +7 -0
- data/app/helpers/home_helper.rb +66 -0
- data/app/helpers/javascript_helper.rb +30 -0
- data/app/helpers/leads_helper.rb +85 -0
- data/app/helpers/lists_helper.rb +7 -0
- data/app/helpers/opportunities_helper.rb +46 -0
- data/app/helpers/passwords_helper.rb +7 -0
- data/app/helpers/remote_link_pagination_helper.rb +8 -0
- data/app/helpers/tags_helper.rb +29 -0
- data/app/helpers/tasks_helper.rb +139 -0
- data/app/helpers/users_helper.rb +35 -0
- data/app/helpers/versions_helper.rb +32 -0
- data/app/inputs/date_pair_input.rb +65 -0
- data/app/inputs/date_time_input.rb +36 -0
- data/app/inputs/datetime_pair_input.rb +25 -0
- data/app/inputs/text_input.rb +12 -0
- data/app/mailers/dropbox_mailer.rb +18 -0
- data/app/mailers/subscription_mailer.rb +30 -0
- data/app/mailers/user_mailer.rb +32 -0
- data/app/models/entities/account.rb +142 -0
- data/app/models/entities/account_contact.rb +28 -0
- data/app/models/entities/account_opportunity.rb +26 -0
- data/app/models/entities/campaign.rb +116 -0
- data/app/models/entities/contact.rb +215 -0
- data/app/models/entities/contact_opportunity.rb +27 -0
- data/app/models/entities/lead.rb +197 -0
- data/app/models/entities/opportunity.rb +190 -0
- data/app/models/fields/core_field.rb +37 -0
- data/app/models/fields/custom_field.rb +148 -0
- data/app/models/fields/custom_field_date_pair.rb +42 -0
- data/app/models/fields/custom_field_datetime_pair.rb +12 -0
- data/app/models/fields/custom_field_pair.rb +42 -0
- data/app/models/fields/field.rb +129 -0
- data/app/models/fields/field_group.rb +63 -0
- data/app/models/list.rb +17 -0
- data/app/models/observers/entity_observer.rb +43 -0
- data/app/models/observers/lead_observer.rb +29 -0
- data/app/models/observers/opportunity_observer.rb +47 -0
- data/app/models/observers/task_observer.rb +31 -0
- data/app/models/polymorphic/address.rb +59 -0
- data/app/models/polymorphic/avatar.rb +55 -0
- data/app/models/polymorphic/comment.rb +73 -0
- data/app/models/polymorphic/email.rb +59 -0
- data/app/models/polymorphic/tag.rb +21 -0
- data/app/models/polymorphic/tagging.rb +8 -0
- data/app/models/polymorphic/task.rb +284 -0
- data/app/models/polymorphic/version.rb +81 -0
- data/app/models/setting.rb +103 -0
- data/app/models/users/ability.rb +59 -0
- data/app/models/users/authentication.rb +54 -0
- data/app/models/users/group.rb +13 -0
- data/app/models/users/permission.rb +27 -0
- data/app/models/users/preference.rb +50 -0
- data/app/models/users/user.rb +184 -0
- data/app/views/accounts/_account.html.haml +5 -0
- data/app/views/accounts/_contact_info.html.haml +37 -0
- data/app/views/accounts/_edit.html.haml +21 -0
- data/app/views/accounts/_index_brief.html.haml +32 -0
- data/app/views/accounts/_index_long.html.haml +42 -0
- data/app/views/accounts/_new.html.haml +21 -0
- data/app/views/accounts/_sidebar_index.html.haml +20 -0
- data/app/views/accounts/_sidebar_show.html.haml +57 -0
- data/app/views/accounts/_title_bar.html.haml +11 -0
- data/app/views/accounts/_top_section.html.haml +29 -0
- data/app/views/accounts/create.js.haml +17 -0
- data/app/views/accounts/destroy.js.haml +6 -0
- data/app/views/accounts/edit.js.haml +31 -0
- data/app/views/accounts/index.html.haml +18 -0
- data/app/views/accounts/index.js.haml +11 -0
- data/app/views/accounts/index.xls.builder +84 -0
- data/app/views/accounts/new.js.haml +11 -0
- data/app/views/accounts/show.html.haml +26 -0
- data/app/views/accounts/show.js.haml +5 -0
- data/app/views/accounts/update.js.haml +19 -0
- data/app/views/admin/custom_fields/_base_field.html.haml +21 -0
- data/app/views/admin/custom_fields/_check_boxes_field.html.haml +6 -0
- data/app/views/admin/custom_fields/_date_field.html.haml +14 -0
- data/app/views/admin/custom_fields/_date_pair_field.html.haml +21 -0
- data/app/views/admin/custom_fields/_datetime_field.html.haml +14 -0
- data/app/views/admin/custom_fields/_datetime_pair_field.html.haml +21 -0
- data/app/views/admin/custom_fields/_radio_field.html.haml +6 -0
- data/app/views/admin/custom_fields/_select_field.html.haml +25 -0
- data/app/views/admin/custom_fields/_string_field.html.haml +2 -0
- data/app/views/admin/field_groups/_confirm.html.haml +5 -0
- data/app/views/admin/field_groups/_edit.html.haml +8 -0
- data/app/views/admin/field_groups/_field_group.html.haml +28 -0
- data/app/views/admin/field_groups/_new.html.haml +10 -0
- data/app/views/admin/field_groups/_top_section.html.haml +14 -0
- data/app/views/admin/field_groups/confirm.js.haml +7 -0
- data/app/views/admin/field_groups/create.js.haml +14 -0
- data/app/views/admin/field_groups/destroy.js.haml +9 -0
- data/app/views/admin/field_groups/edit.js.haml +12 -0
- data/app/views/admin/field_groups/new.js.haml +8 -0
- data/app/views/admin/field_groups/update.js.haml +8 -0
- data/app/views/admin/fields/_field.html.haml +17 -0
- data/app/views/admin/fields/_form.html.haml +35 -0
- data/app/views/admin/fields/_sidebar_index.html.haml +1 -0
- data/app/views/admin/fields/_sidebar_show.html.haml +1 -0
- data/app/views/admin/fields/_sort_by.html.haml +10 -0
- data/app/views/admin/fields/_subform.html.haml +6 -0
- data/app/views/admin/fields/create.js.haml +17 -0
- data/app/views/admin/fields/destroy.js.haml +8 -0
- data/app/views/admin/fields/edit.js.haml +3 -0
- data/app/views/admin/fields/index.html.haml +34 -0
- data/app/views/admin/fields/show.html.haml +41 -0
- data/app/views/admin/fields/update.js.haml +13 -0
- data/app/views/admin/groups/_edit.html.haml +12 -0
- data/app/views/admin/groups/_form.html.haml +11 -0
- data/app/views/admin/groups/_group.html.haml +16 -0
- data/app/views/admin/groups/_new.html.haml +12 -0
- data/app/views/admin/groups/create.js.haml +10 -0
- data/app/views/admin/groups/destroy.js.haml +9 -0
- data/app/views/admin/groups/edit.js.haml +14 -0
- data/app/views/admin/groups/index.html.haml +18 -0
- data/app/views/admin/groups/index.js.haml +2 -0
- data/app/views/admin/groups/new.js.haml +9 -0
- data/app/views/admin/groups/show.html.haml +11 -0
- data/app/views/admin/groups/update.js.haml +9 -0
- data/app/views/admin/plugins/_plugin.html.haml +13 -0
- data/app/views/admin/plugins/index.html.haml +3 -0
- data/app/views/admin/settings/index.html.haml +3 -0
- data/app/views/admin/tags/_confirm.html.haml +5 -0
- data/app/views/admin/tags/_edit.html.haml +9 -0
- data/app/views/admin/tags/_new.html.haml +10 -0
- data/app/views/admin/tags/_tag.html.haml +29 -0
- data/app/views/admin/tags/_top_section.html.haml +6 -0
- data/app/views/admin/tags/confirm.js.haml +7 -0
- data/app/views/admin/tags/create.js.haml +11 -0
- data/app/views/admin/tags/destroy.js.haml +10 -0
- data/app/views/admin/tags/edit.js.haml +20 -0
- data/app/views/admin/tags/index.html.haml +17 -0
- data/app/views/admin/tags/new.js.haml +7 -0
- data/app/views/admin/tags/update.js.haml +9 -0
- data/app/views/admin/users/_confirm.html.haml +5 -0
- data/app/views/admin/users/_edit.html.haml +11 -0
- data/app/views/admin/users/_new.html.haml +11 -0
- data/app/views/admin/users/_profile.html.haml +54 -0
- data/app/views/admin/users/_sidebar_index.html.haml +2 -0
- data/app/views/admin/users/_user.html.haml +66 -0
- data/app/views/admin/users/confirm.js.haml +7 -0
- data/app/views/admin/users/create.js.haml +10 -0
- data/app/views/admin/users/destroy.js.haml +10 -0
- data/app/views/admin/users/edit.js.haml +20 -0
- data/app/views/admin/users/index.html.haml +13 -0
- data/app/views/admin/users/index.js.haml +2 -0
- data/app/views/admin/users/new.js.haml +9 -0
- data/app/views/admin/users/reactivate.js.haml +3 -0
- data/app/views/admin/users/show.html.haml +5 -0
- data/app/views/admin/users/suspend.js.haml +3 -0
- data/app/views/admin/users/update.js.haml +9 -0
- data/app/views/application/_auto_complete.html.haml +10 -0
- data/app/views/application/index.atom.builder +34 -0
- data/app/views/application/index.rss.builder +31 -0
- data/app/views/application/show.atom.builder +32 -0
- data/app/views/application/show.rss.builder +29 -0
- data/app/views/authentications/new.html.haml +19 -0
- data/app/views/campaigns/_campaign.html.haml +5 -0
- data/app/views/campaigns/_edit.html.haml +18 -0
- data/app/views/campaigns/_index_brief.html.haml +15 -0
- data/app/views/campaigns/_index_long.html.haml +20 -0
- data/app/views/campaigns/_metrics.html.haml +16 -0
- data/app/views/campaigns/_new.html.haml +18 -0
- data/app/views/campaigns/_objectives.html.haml +30 -0
- data/app/views/campaigns/_sidebar_index.html.haml +20 -0
- data/app/views/campaigns/_sidebar_show.html.haml +91 -0
- data/app/views/campaigns/_status.html.haml +24 -0
- data/app/views/campaigns/_title_bar.html.haml +11 -0
- data/app/views/campaigns/_top_section.html.haml +29 -0
- data/app/views/campaigns/create.js.haml +20 -0
- data/app/views/campaigns/destroy.js.haml +6 -0
- data/app/views/campaigns/edit.js.haml +31 -0
- data/app/views/campaigns/index.html.haml +18 -0
- data/app/views/campaigns/index.js.haml +11 -0
- data/app/views/campaigns/index.xls.builder +77 -0
- data/app/views/campaigns/new.js.haml +11 -0
- data/app/views/campaigns/show.html.haml +26 -0
- data/app/views/campaigns/show.js.haml +5 -0
- data/app/views/campaigns/update.js.haml +22 -0
- data/app/views/comments/_comment.html.haml +29 -0
- data/app/views/comments/_edit.html.haml +11 -0
- data/app/views/comments/_new.html.haml +35 -0
- data/app/views/comments/_subscription_links.html.haml +13 -0
- data/app/views/comments/create.js.haml +14 -0
- data/app/views/comments/destroy.js.haml +5 -0
- data/app/views/comments/edit.js.haml +11 -0
- data/app/views/comments/update.js.haml +9 -0
- data/app/views/contacts/_contact.html.haml +5 -0
- data/app/views/contacts/_contacts.html.haml +7 -0
- data/app/views/contacts/_edit.html.haml +19 -0
- data/app/views/contacts/_extra.html.haml +36 -0
- data/app/views/contacts/_index_brief.html.haml +25 -0
- data/app/views/contacts/_index_full.html.haml +57 -0
- data/app/views/contacts/_index_long.html.haml +44 -0
- data/app/views/contacts/_new.html.haml +20 -0
- data/app/views/contacts/_section_extra.html.haml +26 -0
- data/app/views/contacts/_section_general.html.haml +26 -0
- data/app/views/contacts/_sidebar_index.html.haml +0 -0
- data/app/views/contacts/_sidebar_show.html.haml +52 -0
- data/app/views/contacts/_title_bar.html.haml +11 -0
- data/app/views/contacts/_top_section.html.haml +45 -0
- data/app/views/contacts/_web.html.haml +31 -0
- data/app/views/contacts/create.js.haml +23 -0
- data/app/views/contacts/destroy.js.haml +9 -0
- data/app/views/contacts/edit.js.haml +34 -0
- data/app/views/contacts/index.html.haml +18 -0
- data/app/views/contacts/index.js.haml +11 -0
- data/app/views/contacts/index.xls.builder +104 -0
- data/app/views/contacts/new.js.haml +13 -0
- data/app/views/contacts/show.html.haml +22 -0
- data/app/views/contacts/show.js.haml +5 -0
- data/app/views/contacts/update.js.haml +24 -0
- data/app/views/dropbox_mailer/dropbox_notification.html.haml +9 -0
- data/app/views/emails/_email.html.haml +36 -0
- data/app/views/emails/destroy.js.haml +5 -0
- data/app/views/entities/_basic_search.html.haml +24 -0
- data/app/views/entities/_permissions.html.haml +36 -0
- data/app/views/entities/_search.html.haml +16 -0
- data/app/views/entities/_section_custom_fields.html.haml +11 -0
- data/app/views/entities/_sort_fields.html.haml +3 -0
- data/app/views/entities/_title_bar.html.haml +12 -0
- data/app/views/entities/attach.js.haml +21 -0
- data/app/views/entities/contacts.js.haml +3 -0
- data/app/views/entities/discard.js.haml +6 -0
- data/app/views/entities/leads.js.haml +3 -0
- data/app/views/entities/opportunities.js.haml +3 -0
- data/app/views/entities/subscription_update.js.haml +4 -0
- data/app/views/entities/versions.js.haml +3 -0
- data/app/views/fields/_edit_custom_field_group.html.haml +8 -0
- data/app/views/fields/_group.html.haml +11 -0
- data/app/views/fields/_group_table.html.haml +13 -0
- data/app/views/fields/_group_view.html.haml +10 -0
- data/app/views/fields/_groups.html.haml +8 -0
- data/app/views/fields/_sidebar_show.html.haml +9 -0
- data/app/views/fields/group.js.erb +3 -0
- data/app/views/home/_account.html.haml +29 -0
- data/app/views/home/_activity.html.haml +35 -0
- data/app/views/home/_assets_menu.html.haml +7 -0
- data/app/views/home/_duration_menu.html.haml +8 -0
- data/app/views/home/_events_menu.html.haml +8 -0
- data/app/views/home/_opportunity.html.haml +41 -0
- data/app/views/home/_options.html.haml +12 -0
- data/app/views/home/_task.html.haml +48 -0
- data/app/views/home/_users_menu.html.haml +8 -0
- data/app/views/home/index.atom.builder +24 -0
- data/app/views/home/index.html.haml +46 -0
- data/app/views/home/index.js.haml +7 -0
- data/app/views/home/index.rss.builder +20 -0
- data/app/views/home/options.js.haml +7 -0
- data/app/views/layouts/500.html.haml +17 -0
- data/app/views/layouts/_about.html.haml +17 -0
- data/app/views/layouts/_footer.html.haml +9 -0
- data/app/views/layouts/_header.html.haml +20 -0
- data/app/views/layouts/_jumpbox.html.haml +34 -0
- data/app/views/layouts/_sidebar.html.haml +12 -0
- data/app/views/layouts/_tabbed.html.haml +15 -0
- data/app/views/layouts/_tabless.html.haml +3 -0
- data/app/views/layouts/admin/_header.html.haml +14 -0
- data/app/views/layouts/admin/application.html.haml +24 -0
- data/app/views/layouts/application.html.haml +48 -0
- data/app/views/layouts/header.xls.builder +8 -0
- data/app/views/leads/_contact.html.haml +35 -0
- data/app/views/leads/_convert.html.haml +25 -0
- data/app/views/leads/_convert_permissions.html.haml +31 -0
- data/app/views/leads/_edit.html.haml +23 -0
- data/app/views/leads/_index_brief.html.haml +41 -0
- data/app/views/leads/_index_long.html.haml +62 -0
- data/app/views/leads/_lead.html.haml +5 -0
- data/app/views/leads/_leads.html.haml +6 -0
- data/app/views/leads/_new.html.haml +24 -0
- data/app/views/leads/_opportunity.html.haml +37 -0
- data/app/views/leads/_sidebar_index.html.haml +20 -0
- data/app/views/leads/_sidebar_show.html.haml +65 -0
- data/app/views/leads/_status.html.haml +36 -0
- data/app/views/leads/_title_bar.html.haml +16 -0
- data/app/views/leads/_top_section.html.haml +30 -0
- data/app/views/leads/_web.html.haml +31 -0
- data/app/views/leads/convert.js.haml +35 -0
- data/app/views/leads/create.js.haml +21 -0
- data/app/views/leads/destroy.js.haml +9 -0
- data/app/views/leads/edit.js.haml +33 -0
- data/app/views/leads/index.html.haml +18 -0
- data/app/views/leads/index.js.haml +11 -0
- data/app/views/leads/index.xls.builder +102 -0
- data/app/views/leads/new.js.haml +11 -0
- data/app/views/leads/promote.js.haml +26 -0
- data/app/views/leads/reject.js.haml +12 -0
- data/app/views/leads/show.html.haml +20 -0
- data/app/views/leads/show.js.haml +5 -0
- data/app/views/leads/update.js.haml +28 -0
- data/app/views/lists/_lists.html.haml +6 -0
- data/app/views/lists/_sidebar.html.haml +29 -0
- data/app/views/lists/create.js.haml +9 -0
- data/app/views/lists/destroy.js.haml +1 -0
- data/app/views/opportunities/_edit.html.haml +18 -0
- data/app/views/opportunities/_index_brief.html.haml +29 -0
- data/app/views/opportunities/_index_long.html.haml +59 -0
- data/app/views/opportunities/_new.html.haml +18 -0
- data/app/views/opportunities/_opportunities.html.haml +6 -0
- data/app/views/opportunities/_opportunity.html.haml +5 -0
- data/app/views/opportunities/_sidebar_index.html.haml +20 -0
- data/app/views/opportunities/_sidebar_show.html.haml +61 -0
- data/app/views/opportunities/_title_bar.html.haml +11 -0
- data/app/views/opportunities/_top_section.html.haml +59 -0
- data/app/views/opportunities/contacts.js.haml +3 -0
- data/app/views/opportunities/create.js.haml +29 -0
- data/app/views/opportunities/destroy.js.haml +13 -0
- data/app/views/opportunities/edit.js.haml +34 -0
- data/app/views/opportunities/index.html.haml +20 -0
- data/app/views/opportunities/index.js.haml +11 -0
- data/app/views/opportunities/index.xls.builder +71 -0
- data/app/views/opportunities/new.js.haml +13 -0
- data/app/views/opportunities/show.html.haml +22 -0
- data/app/views/opportunities/show.js.haml +5 -0
- data/app/views/opportunities/update.js.haml +27 -0
- data/app/views/passwords/edit.html.haml +15 -0
- data/app/views/passwords/new.html.haml +10 -0
- data/app/views/shared/_add_comment.html.haml +8 -0
- data/app/views/shared/_address.html.haml +44 -0
- data/app/views/shared/_address_show.html.haml +24 -0
- data/app/views/shared/_comment.html.haml +11 -0
- data/app/views/shared/_edit_comment.html.haml +13 -0
- data/app/views/shared/_empty.html.haml +8 -0
- data/app/views/shared/_export.html.haml +2 -0
- data/app/views/shared/_inline_styles.html.haml +31 -0
- data/app/views/shared/_naming.html.haml +9 -0
- data/app/views/shared/_paginate.haml +2 -0
- data/app/views/shared/_paginate_with_per_page.html.haml +12 -0
- data/app/views/shared/_recent.html.haml +4 -0
- data/app/views/shared/_recently.html.haml +7 -0
- data/app/views/shared/_search.html.haml +15 -0
- data/app/views/shared/_select_popup.html.haml +19 -0
- data/app/views/shared/_tags.html.haml +10 -0
- data/app/views/shared/_tasks.html.haml +10 -0
- data/app/views/shared/_timeline.html.haml +2 -0
- data/app/views/shared/_total.html.haml +4 -0
- data/app/views/subscription_mailer/comment_notification.text.erb +7 -0
- data/app/views/tasks/_assigned.html.haml +47 -0
- data/app/views/tasks/_completed.html.haml +25 -0
- data/app/views/tasks/_edit.html.haml +18 -0
- data/app/views/tasks/_empty.html.haml +4 -0
- data/app/views/tasks/_new.html.haml +14 -0
- data/app/views/tasks/_pending.html.haml +52 -0
- data/app/views/tasks/_related.html.haml +32 -0
- data/app/views/tasks/_selector.html.haml +8 -0
- data/app/views/tasks/_sidebar_index.html.haml +18 -0
- data/app/views/tasks/_tasks.html.haml +3 -0
- data/app/views/tasks/_title.html.haml +8 -0
- data/app/views/tasks/_top_section.html.haml +34 -0
- data/app/views/tasks/complete.js.haml +14 -0
- data/app/views/tasks/create.js.haml +39 -0
- data/app/views/tasks/destroy.js.haml +7 -0
- data/app/views/tasks/discard.js.haml +1 -0
- data/app/views/tasks/edit.js.haml +26 -0
- data/app/views/tasks/filter.js.haml +4 -0
- data/app/views/tasks/index.html.haml +20 -0
- data/app/views/tasks/index.xls.builder +49 -0
- data/app/views/tasks/new.js.haml +8 -0
- data/app/views/tasks/uncomplete.js.haml +12 -0
- data/app/views/tasks/update.js.haml +19 -0
- data/app/views/user_mailer/assigned_entity_notification.html.haml +3 -0
- data/app/views/user_mailer/password_reset_instructions.html.haml +6 -0
- data/app/views/users/_avatar.html.haml +20 -0
- data/app/views/users/_languages.html.haml +9 -0
- data/app/views/users/_password.html.haml +27 -0
- data/app/views/users/_profile.html.haml +67 -0
- data/app/views/users/_user.html.haml +33 -0
- data/app/views/users/_user_report.html.haml +6 -0
- data/app/views/users/avatar.js.haml +9 -0
- data/app/views/users/change_password.js.haml +13 -0
- data/app/views/users/edit.js.haml +9 -0
- data/app/views/users/index.html.haml +3 -0
- data/app/views/users/new.html.haml +19 -0
- data/app/views/users/opportunities_overview.html.haml +16 -0
- data/app/views/users/password.js.haml +10 -0
- data/app/views/users/show.html.haml +15 -0
- data/app/views/users/update.js.haml +9 -0
- data/app/views/users/upload_avatar.js.haml +7 -0
- data/app/views/versions/_version.html.haml +17 -0
- data/app/views/versions/_version_item.html.haml +8 -0
- data/app/views/versions/_versions.html.haml +11 -0
- data/bin/bundle +3 -0
- data/bin/rails +4 -0
- data/bin/rake +4 -0
- data/config.ru +4 -0
- data/config/application.rb +77 -0
- data/config/boot.rb +10 -0
- data/config/database.mysql.mac.yml +32 -0
- data/config/database.mysql.yml +33 -0
- data/config/database.postgres.docker.yml +25 -0
- data/config/database.postgres.yml +26 -0
- data/config/database.sqlite.yml +23 -0
- data/config/deploy.example.rb +77 -0
- data/config/environment.rb +10 -0
- data/config/environments/development.rb +46 -0
- data/config/environments/production.rb +66 -0
- data/config/environments/staging.rb +66 -0
- data/config/environments/test.rb +54 -0
- data/config/initializers/action_mailer.rb +22 -0
- data/config/initializers/assets.rb +14 -0
- data/config/initializers/authlogic.rb +6 -0
- data/config/initializers/backtrace_silencers.rb +7 -0
- data/config/initializers/constants.rb +6 -0
- data/config/initializers/cookies_serializer.rb +3 -0
- data/config/initializers/custom_field_ransack_translations.rb +17 -0
- data/config/initializers/filter_parameter_logging.rb +4 -0
- data/config/initializers/gravatar.rb +12 -0
- data/config/initializers/inflections.rb +16 -0
- data/config/initializers/locale.rb +18 -0
- data/config/initializers/mime_types.rb +12 -0
- data/config/initializers/paginate_arrays.rb +11 -0
- data/config/initializers/ransack.rb +20 -0
- data/config/initializers/relative_url_root.rb +10 -0
- data/config/initializers/secret_token.rb +25 -0
- data/config/initializers/session_store.rb +5 -0
- data/config/initializers/simple_form.rb +100 -0
- data/config/initializers/views.rb +47 -0
- data/config/initializers/wrap_parameters.rb +14 -0
- data/config/locales/cz.yml +247 -0
- data/config/locales/cz_fat_free_crm.yml +610 -0
- data/config/locales/de.yml +237 -0
- data/config/locales/de_fat_free_crm.yml +842 -0
- data/config/locales/de_ransack.yml +91 -0
- data/config/locales/en-GB.yml +219 -0
- data/config/locales/en-GB_fat_free_crm.yml +937 -0
- data/config/locales/en-GB_ransack.yml +91 -0
- data/config/locales/en-US.yml +219 -0
- data/config/locales/en-US_fat_free_crm.yml +937 -0
- data/config/locales/en-US_ransack.yml +91 -0
- 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 +219 -0
- data/config/locales/es_fat_free_crm.yml +917 -0
- data/config/locales/es_ransack.yml +91 -0
- data/config/locales/fr-CA.yml +224 -0
- data/config/locales/fr-CA_fat_free_crm.yml +570 -0
- data/config/locales/fr.yml +227 -0
- data/config/locales/fr_fat_free_crm.yml +934 -0
- data/config/locales/it.yml +219 -0
- data/config/locales/it_fat_free_crm.yml +592 -0
- data/config/locales/ja.yml +219 -0
- data/config/locales/ja_fat_free_crm.yml +557 -0
- data/config/locales/ja_ransack.yml +91 -0
- 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.yml +230 -0
- data/config/locales/pl_fat_free_crm.yml +570 -0
- data/config/locales/pt-BR.yml +232 -0
- data/config/locales/pt-BR_fat_free_crm.yml +650 -0
- data/config/locales/ru.yml +326 -0
- data/config/locales/ru_fat_free_crm.yml +977 -0
- data/config/locales/sv-SE.yml +215 -0
- data/config/locales/sv-SE_fat_free_crm.yml +565 -0
- data/config/locales/th.rb +204 -0
- data/config/locales/th_fat_free_crm.yml +558 -0
- data/config/locales/zh-CN.yml +241 -0
- data/config/locales/zh-CN_fat_free_crm.yml +937 -0
- data/config/locales/zh-CN_ransack.yml +91 -0
- data/config/routes.rb +199 -0
- data/config/settings.default.yml +400 -0
- data/config/unicorn.rb +32 -0
- data/custom_plan.rb +9 -0
- data/db/demo/account_contacts.yml +24 -0
- data/db/demo/account_opportunities.yml +24 -0
- data/db/demo/accounts.yml +47 -0
- data/db/demo/activities.yml +16 -0
- data/db/demo/addresses.yml +46 -0
- data/db/demo/avatars.yml +16 -0
- data/db/demo/campaigns.yml +144 -0
- data/db/demo/comments.yml +30 -0
- data/db/demo/contact_opportunities.yml +25 -0
- data/db/demo/contacts.yml +70 -0
- data/db/demo/emails.yml +53 -0
- data/db/demo/field_groups.yml +14 -0
- data/db/demo/leads.yml +71 -0
- data/db/demo/opportunities.yml +48 -0
- data/db/demo/permissions.yml +13 -0
- data/db/demo/preferences.yml +13 -0
- data/db/demo/settings.yml +12 -0
- data/db/demo/tasks.yml +64 -0
- data/db/demo/users.yml +245 -0
- data/db/migrate/20100928030598_create_sessions.rb +21 -0
- data/db/migrate/20100928030599_create_users.rb +45 -0
- data/db/migrate/20100928030600_create_openid_tables.rb +23 -0
- data/db/migrate/20100928030601_create_accounts.rb +26 -0
- data/db/migrate/20100928030602_create_permissions.rb +15 -0
- data/db/migrate/20100928030603_create_settings.rb +15 -0
- data/db/migrate/20100928030604_create_preferences.rb +15 -0
- data/db/migrate/20100928030605_create_campaigns.rb +34 -0
- data/db/migrate/20100928030606_create_leads.rb +38 -0
- data/db/migrate/20100928030607_create_contacts.rb +38 -0
- data/db/migrate/20100928030608_create_opportunities.rb +27 -0
- data/db/migrate/20100928030609_create_account_contacts.rb +14 -0
- data/db/migrate/20100928030610_create_account_opportunities.rb +14 -0
- data/db/migrate/20100928030611_create_contact_opportunities.rb +15 -0
- data/db/migrate/20100928030612_create_tasks.rb +26 -0
- data/db/migrate/20100928030613_create_comments.rb +16 -0
- data/db/migrate/20100928030614_create_activities.rb +19 -0
- data/db/migrate/20100928030615_create_avatars.rb +16 -0
- data/db/migrate/20100928030616_rename_remember_token.rb +11 -0
- data/db/migrate/20100928030617_drop_openid_tables.rb +23 -0
- data/db/migrate/20100928030618_add_admin_to_users.rb +11 -0
- data/db/migrate/20100928030619_add_suspended_to_users.rb +11 -0
- data/db/migrate/20100928030620_remove_uuid.rb +24 -0
- data/db/migrate/20100928030621_add_email_to_accounts.rb +9 -0
- data/db/migrate/20100928030622_add_background_info_to_models.rb +19 -0
- data/db/migrate/20100928030623_create_addresses.rb +49 -0
- data/db/migrate/20100928030624_add_index_on_permissions.rb +9 -0
- data/db/migrate/20100928030625_create_emails.rb +26 -0
- data/db/migrate/20100928030626_add_state_to_timeline_objects.rb +13 -0
- data/db/migrate/20100928030627_acts_as_taggable_on_migration.rb +29 -0
- data/db/migrate/20101221123456_add_single_access_token_to_users.rb +9 -0
- data/db/migrate/20101221345678_add_rating_and_category_to_accounts.rb +11 -0
- data/db/migrate/20110719082054_add_skype_to_contacts_and_leads.rb +11 -0
- data/db/migrate/20111101083437_create_fields.rb +27 -0
- data/db/migrate/20111101090312_create_field_groups.rb +15 -0
- data/db/migrate/20111116091952_add_field_groups_tag_id.rb +9 -0
- data/db/migrate/20111117041311_change_fields_collection_to_text.rb +9 -0
- data/db/migrate/20111201030535_add_field_groups_klass_name.rb +24 -0
- data/db/migrate/20120121054235_create_lists.rb +10 -0
- data/db/migrate/20120216031616_create_versions.rb +18 -0
- data/db/migrate/20120216042541_is_paranoid_to_paper_trail.rb +10 -0
- data/db/migrate/20120220233724_add_versions_object_changes.rb +9 -0
- data/db/migrate/20120224073107_remove_default_value_and_clear_settings.rb +16 -0
- data/db/migrate/20120309070209_add_versions_related.rb +6 -0
- data/db/migrate/20120314080441_add_subscribed_users_to_entities.rb +23 -0
- data/db/migrate/20120316045804_activities_to_versions.rb +35 -0
- data/db/migrate/20120405080727_change_subscribed_users_to_set.rb +24 -0
- data/db/migrate/20120405080742_change_further_subscribed_users_to_set.rb +27 -0
- data/db/migrate/20120406082136_create_groups.rb +19 -0
- data/db/migrate/20120413034923_add_index_on_versions_item_type.rb +5 -0
- data/db/migrate/20120510025219_add_not_null_constraints_for_timestamp_columns.rb +22 -0
- data/db/migrate/20120528102124_increase_length_of_version_events.rb +9 -0
- data/db/migrate/20120801032706_add_pair_id_to_fields.rb +5 -0
- data/db/migrate/20121003063155_add_settings_to_custom_fields.rb +5 -0
- data/db/migrate/20121221033947_fix_country_mapping.rb +31 -0
- data/db/migrate/20131207033244_add_user_id_to_lists.rb +6 -0
- data/db/migrate/20140916011927_add_created_at_index_on_versions.rb +5 -0
- data/db/migrate/20140916012922_add_indexes_to_model_associations.rb +6 -0
- data/db/migrate/20141126031837_increase_email_to254_chars.rb +21 -0
- 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 +459 -0
- data/db/seeds.rb +9 -0
- data/db/seeds/fields.rb +93 -0
- data/docker-compose.yml +13 -0
- data/fat_free_crm.gemspec +63 -0
- data/lib/development_tasks/gem.rake +13 -0
- data/lib/development_tasks/license.rake +77 -0
- data/lib/development_tasks/rdoc.rake +20 -0
- data/lib/development_tasks/rspec.rake +24 -0
- data/lib/fat_free_crm.rb +57 -0
- data/lib/fat_free_crm/callback.rb +144 -0
- data/lib/fat_free_crm/comment_extensions.rb +28 -0
- data/lib/fat_free_crm/core_ext.rb +6 -0
- data/lib/fat_free_crm/core_ext/nil.rb +14 -0
- data/lib/fat_free_crm/core_ext/string.rb +48 -0
- data/lib/fat_free_crm/custom_fields.rb +12 -0
- data/lib/fat_free_crm/engine.rb +27 -0
- data/lib/fat_free_crm/errors.rb +37 -0
- data/lib/fat_free_crm/exceptions.rb +21 -0
- data/lib/fat_free_crm/export_csv.rb +33 -0
- data/lib/fat_free_crm/exportable.rb +49 -0
- data/lib/fat_free_crm/fields.rb +95 -0
- data/lib/fat_free_crm/gem_dependencies.rb +40 -0
- data/lib/fat_free_crm/gem_ext.rb +10 -0
- data/lib/fat_free_crm/gem_ext/action_controller/base.rb +16 -0
- data/lib/fat_free_crm/gem_ext/active_record/schema_dumper.rb +27 -0
- data/lib/fat_free_crm/gem_ext/active_support/buffered_logger.rb +17 -0
- data/lib/fat_free_crm/gem_ext/rails/engine.rb +15 -0
- data/lib/fat_free_crm/gem_ext/rake/task.rb +13 -0
- data/lib/fat_free_crm/gem_ext/simple_form/action_view_extensions/form_helper.rb +24 -0
- data/lib/fat_free_crm/i18n.rb +42 -0
- data/lib/fat_free_crm/load_settings.rb +18 -0
- data/lib/fat_free_crm/mail_processor/base.rb +227 -0
- data/lib/fat_free_crm/mail_processor/comment_replies.rb +69 -0
- data/lib/fat_free_crm/mail_processor/dropbox.rb +273 -0
- data/lib/fat_free_crm/permissions.rb +109 -0
- data/lib/fat_free_crm/renderers.rb +11 -0
- data/lib/fat_free_crm/secret_token_generator.rb +59 -0
- data/lib/fat_free_crm/sortable.rb +43 -0
- data/lib/fat_free_crm/tabs.rb +23 -0
- data/lib/fat_free_crm/version.rb +15 -0
- data/lib/fat_free_crm/view_factory.rb +81 -0
- data/lib/gravatar_image_tag.rb +58 -0
- data/lib/missing_translation_detector.rb +50 -0
- data/lib/tasks/.gitkeep +0 -0
- data/lib/tasks/.gitkeep~master +0 -0
- data/lib/tasks/ffcrm/comment_replies.rake +27 -0
- data/lib/tasks/ffcrm/config.rake +40 -0
- data/lib/tasks/ffcrm/demo.rake +62 -0
- data/lib/tasks/ffcrm/dropbox.rake +28 -0
- data/lib/tasks/ffcrm/missing_translations.rake +34 -0
- data/lib/tasks/ffcrm/secret.rake +15 -0
- data/lib/tasks/ffcrm/settings.rake +20 -0
- data/lib/tasks/ffcrm/setup.rake +81 -0
- data/lib/tasks/ffcrm/update_data.rake +238 -0
- data/lib/templates/erb/scaffold/_form.html.erb +13 -0
- data/public/404.html +26 -0
- data/public/422.html +26 -0
- data/public/500.html +26 -0
- data/public/favicon.ico +0 -0
- data/public/robots.txt +5 -0
- data/script/rails +6 -0
- data/spec/controllers/admin/groups_controller_spec.rb +9 -0
- data/spec/controllers/admin/users_controller_spec.rb +305 -0
- data/spec/controllers/applications_controller_spec.rb +41 -0
- data/spec/controllers/authentications_controller_spec.rb +148 -0
- data/spec/controllers/comments_controller_spec.rb +193 -0
- data/spec/controllers/emails_controller_spec.rb +35 -0
- data/spec/controllers/entities/accounts_controller_spec.rb +605 -0
- data/spec/controllers/entities/campaigns_controller_spec.rb +643 -0
- data/spec/controllers/entities/contacts_controller_spec.rb +702 -0
- data/spec/controllers/entities/leads_controller_spec.rb +1007 -0
- data/spec/controllers/entities/opportunities_controller_spec.rb +902 -0
- data/spec/controllers/entities_controller_spec.rb +40 -0
- data/spec/controllers/home_controller_spec.rb +231 -0
- data/spec/controllers/lists_controller_spec.rb +9 -0
- data/spec/controllers/passwords_controller_spec.rb +30 -0
- data/spec/controllers/tasks_controller_spec.rb +512 -0
- data/spec/controllers/users_controller_spec.rb +431 -0
- data/spec/factories/account_factories.rb +38 -0
- data/spec/factories/campaign_factories.rb +28 -0
- data/spec/factories/contact_factories.rb +43 -0
- data/spec/factories/field_factories.rb +37 -0
- data/spec/factories/lead_factories.rb +34 -0
- data/spec/factories/list_factories.rb +11 -0
- data/spec/factories/opportunity_factories.rb +37 -0
- data/spec/factories/sequences.rb +31 -0
- data/spec/factories/setting_factories.rb +13 -0
- data/spec/factories/shared_factories.rb +66 -0
- data/spec/factories/subscription_factories.rb +11 -0
- data/spec/factories/tag_factories.rb +10 -0
- data/spec/factories/task_factories.rb +27 -0
- data/spec/factories/user_factories.rb +64 -0
- data/spec/features/acceptance_helper.rb +9 -0
- data/spec/features/accounts_spec.rb +109 -0
- data/spec/features/admin/groups_spec.rb +30 -0
- data/spec/features/admin/users_spec.rb +37 -0
- data/spec/features/campaigns_spec.rb +103 -0
- data/spec/features/contacts_spec.rb +129 -0
- data/spec/features/dashboard_spec.rb +66 -0
- data/spec/features/leads_spec.rb +129 -0
- data/spec/features/opportunities_overview_spec.rb +87 -0
- data/spec/features/opportunities_spec.rb +105 -0
- data/spec/features/support/browser.rb +18 -0
- data/spec/features/support/headless.rb +17 -0
- data/spec/features/support/helpers.rb +30 -0
- data/spec/features/support/maintain_sessions.rb +10 -0
- data/spec/features/support/paths.rb +46 -0
- data/spec/features/support/selector_helpers.rb +31 -0
- data/spec/features/tasks_spec.rb +93 -0
- data/spec/fixtures/rails.png +0 -0
- data/spec/helpers/accounts_helper_spec.rb +14 -0
- data/spec/helpers/admin/field_groups_helper_spec.rb +18 -0
- data/spec/helpers/admin/plugins_helper_spec.rb +9 -0
- data/spec/helpers/admin/settings_helper_spec.rb +9 -0
- data/spec/helpers/admin/users_helper_spec.rb +9 -0
- data/spec/helpers/application_helper_spec.rb +83 -0
- data/spec/helpers/authentications_helper_spec.rb +14 -0
- data/spec/helpers/campaigns_helper_spec.rb +14 -0
- data/spec/helpers/comments_helper_spec.rb +14 -0
- data/spec/helpers/contacts_helper_spec.rb +14 -0
- data/spec/helpers/emails_helper_spec.rb +9 -0
- data/spec/helpers/fields_helper_spec.rb +10 -0
- data/spec/helpers/groups_helper_spec.rb +19 -0
- data/spec/helpers/home_helper_spec.rb +14 -0
- data/spec/helpers/leads_helper_spec.rb +14 -0
- data/spec/helpers/lists_helper_spec.rb +19 -0
- data/spec/helpers/opportunities_helper_spec.rb +14 -0
- data/spec/helpers/passwords_helper_spec.rb +14 -0
- data/spec/helpers/tasks_helper_spec.rb +18 -0
- data/spec/helpers/users_helper_spec.rb +37 -0
- data/spec/lib/comment_extensions_spec.rb +34 -0
- data/spec/lib/core_ext/string_spec.rb +21 -0
- data/spec/lib/errors_spec.rb +30 -0
- data/spec/lib/fields_spec.rb +99 -0
- data/spec/lib/mail_processor/base_spec.rb +167 -0
- data/spec/lib/mail_processor/comment_replies_spec.rb +68 -0
- data/spec/lib/mail_processor/dropbox_spec.rb +304 -0
- data/spec/lib/mail_processor/sample_emails/dropbox.rb +171 -0
- data/spec/lib/permissions_spec.rb +134 -0
- data/spec/lib/secret_token_generator_spec.rb +67 -0
- data/spec/lib/view_factory_spec.rb +67 -0
- data/spec/mailers/subscription_mailer_spec.rb +47 -0
- data/spec/mailers/user_mailer_spec.rb +139 -0
- data/spec/models/entities/account_contact_spec.rb +31 -0
- data/spec/models/entities/account_opportunity_spec.rb +31 -0
- data/spec/models/entities/account_spec.rb +178 -0
- data/spec/models/entities/campaign_spec.rb +136 -0
- data/spec/models/entities/contact_opportunity_spec.rb +32 -0
- data/spec/models/entities/contact_spec.rb +208 -0
- data/spec/models/entities/lead_spec.rb +102 -0
- data/spec/models/entities/opportunity_spec.rb +287 -0
- data/spec/models/fields/custom_field_date_pair_spec.rb +88 -0
- data/spec/models/fields/custom_field_pair_spec.rb +74 -0
- data/spec/models/fields/custom_field_spec.rb +125 -0
- data/spec/models/fields/field_group_spec.rb +27 -0
- data/spec/models/fields/field_spec.rb +65 -0
- data/spec/models/list_spec.rb +17 -0
- data/spec/models/observers/entity_observer_spec.rb +72 -0
- data/spec/models/polymorphic/address_spec.rb +36 -0
- data/spec/models/polymorphic/avatar_spec.rb +44 -0
- data/spec/models/polymorphic/comment_spec.rb +47 -0
- data/spec/models/polymorphic/email_spec.rb +40 -0
- data/spec/models/polymorphic/task_spec.rb +385 -0
- data/spec/models/polymorphic/version_spec.rb +244 -0
- data/spec/models/setting_spec.rb +54 -0
- data/spec/models/users/abilities/user_ability_spec.rb +63 -0
- data/spec/models/users/authentication_spec.rb +17 -0
- data/spec/models/users/group_spec.rb +9 -0
- data/spec/models/users/permission_spec.rb +48 -0
- data/spec/models/users/preference_spec.rb +69 -0
- data/spec/models/users/user_spec.rb +237 -0
- data/spec/routing/accounts_routing_spec.rb +58 -0
- data/spec/routing/admin/users_routing_spec.rb +38 -0
- data/spec/routing/campaigns_routing_spec.rb +62 -0
- data/spec/routing/comments_routing_spec.rb +30 -0
- data/spec/routing/contacts_routing_spec.rb +58 -0
- data/spec/routing/emails_routing_spec.rb +38 -0
- data/spec/routing/leads_routing_spec.rb +86 -0
- data/spec/routing/opportunities_routing_spec.rb +62 -0
- data/spec/routing/tasks_routing_spec.rb +66 -0
- data/spec/routing/users_routing_spec.rb +82 -0
- data/spec/shared/controllers.rb +103 -0
- data/spec/shared/models.rb +139 -0
- data/spec/spec_helper.rb +107 -0
- data/spec/support/assert_select.rb +164 -0
- data/spec/support/auth_macros.rb +48 -0
- data/spec/support/macros.rb +44 -0
- data/spec/support/mail_processor_mocks.rb +35 -0
- data/spec/support/uploaded_file.rb +8 -0
- data/spec/views/accounts/_edit.haml_spec.rb +42 -0
- data/spec/views/accounts/_new.haml_spec.rb +40 -0
- data/spec/views/accounts/create.js.haml_spec.rb +51 -0
- data/spec/views/accounts/destroy.js.haml_spec.rb +32 -0
- data/spec/views/accounts/edit.js.haml_spec.rb +64 -0
- data/spec/views/accounts/index.haml_spec.rb +41 -0
- data/spec/views/accounts/index.js.haml_spec.rb +32 -0
- data/spec/views/accounts/new.js.haml_spec.rb +42 -0
- data/spec/views/accounts/show.haml_spec.rb +33 -0
- data/spec/views/accounts/update.js.haml_spec.rb +94 -0
- data/spec/views/admin/field_groups/create.js.haml_spec.rb +29 -0
- data/spec/views/admin/field_groups/destroy.js.haml_spec.rb +29 -0
- data/spec/views/admin/field_groups/edit.js.haml_spec.rb +22 -0
- data/spec/views/admin/field_groups/new.js.haml_spec.rb +23 -0
- data/spec/views/admin/field_groups/update.js.haml_spec.rb +28 -0
- data/spec/views/admin/users/_create.haml_spec.rb +21 -0
- data/spec/views/admin/users/create.js.haml_spec.rb +40 -0
- data/spec/views/admin/users/destroy.js.haml_spec.rb +51 -0
- data/spec/views/admin/users/edit.js.haml_spec.rb +42 -0
- data/spec/views/admin/users/index.haml_spec.rb +20 -0
- data/spec/views/admin/users/index.js.haml_spec.rb +24 -0
- data/spec/views/admin/users/new.js.haml_spec.rb +32 -0
- data/spec/views/admin/users/reactivate.js.haml_spec.rb +20 -0
- data/spec/views/admin/users/show.haml_spec.rb +16 -0
- data/spec/views/admin/users/suspend.js.haml_spec.rb +20 -0
- data/spec/views/admin/users/update.js.haml_spec.rb +36 -0
- data/spec/views/application/auto_complete.haml_spec.rb +46 -0
- data/spec/views/authentications/new.haml_spec.rb +29 -0
- data/spec/views/campaigns/_edit.haml_spec.rb +42 -0
- data/spec/views/campaigns/_new.haml_spec.rb +39 -0
- data/spec/views/campaigns/create.js.haml_spec.rb +48 -0
- data/spec/views/campaigns/destroy.js.haml_spec.rb +30 -0
- data/spec/views/campaigns/edit.js.haml_spec.rb +64 -0
- data/spec/views/campaigns/index.haml_spec.rb +35 -0
- data/spec/views/campaigns/index.js.haml_spec.rb +32 -0
- data/spec/views/campaigns/new.js.haml_spec.rb +48 -0
- data/spec/views/campaigns/show.haml_spec.rb +33 -0
- data/spec/views/campaigns/update.js.haml_spec.rb +80 -0
- data/spec/views/comments/edit.js.haml_spec.rb +29 -0
- data/spec/views/contacts/_edit.haml_spec.rb +71 -0
- data/spec/views/contacts/_new.haml_spec.rb +50 -0
- data/spec/views/contacts/create.js.haml_spec.rb +64 -0
- data/spec/views/contacts/destroy.js.haml_spec.rb +43 -0
- data/spec/views/contacts/edit.js.haml_spec.rb +72 -0
- data/spec/views/contacts/index.haml_spec.rb +35 -0
- data/spec/views/contacts/index.js.html_spec.rb +32 -0
- data/spec/views/contacts/new.js.haml_spec.rb +45 -0
- data/spec/views/contacts/show.haml_spec.rb +30 -0
- data/spec/views/contacts/update.js.haml_spec.rb +130 -0
- data/spec/views/home/index.haml_spec.rb +34 -0
- data/spec/views/home/index.js.haml_spec.rb +31 -0
- data/spec/views/home/options.js.haml_spec.rb +51 -0
- data/spec/views/leads/_convert.haml_spec.rb +28 -0
- data/spec/views/leads/_edit.haml_spec.rb +45 -0
- data/spec/views/leads/_new.haml_spec.rb +43 -0
- data/spec/views/leads/_sidebar_show.haml_spec.rb +29 -0
- data/spec/views/leads/convert.js.haml_spec.rb +77 -0
- data/spec/views/leads/create.js.haml_spec.rb +68 -0
- data/spec/views/leads/destroy.js.haml_spec.rb +47 -0
- data/spec/views/leads/edit.js.haml_spec.rb +74 -0
- data/spec/views/leads/index.haml_spec.rb +35 -0
- data/spec/views/leads/index.js.haml_spec.rb +32 -0
- data/spec/views/leads/new.js.haml_spec.rb +45 -0
- data/spec/views/leads/promote.js.haml_spec.rb +141 -0
- data/spec/views/leads/reject.js.haml_spec.rb +46 -0
- data/spec/views/leads/show.haml_spec.rb +27 -0
- data/spec/views/leads/update.js.haml_spec.rb +124 -0
- data/spec/views/opportunities/_edit.haml_spec.rb +68 -0
- data/spec/views/opportunities/_new.haml_spec.rb +49 -0
- data/spec/views/opportunities/create.js.haml_spec.rb +86 -0
- data/spec/views/opportunities/destroy.js.haml_spec.rb +65 -0
- data/spec/views/opportunities/edit.js.haml_spec.rb +73 -0
- data/spec/views/opportunities/index.haml_spec.rb +36 -0
- data/spec/views/opportunities/index.js.haml_spec.rb +33 -0
- data/spec/views/opportunities/new.js.haml_spec.rb +52 -0
- data/spec/views/opportunities/show.haml_spec.rb +30 -0
- data/spec/views/opportunities/update.js.haml_spec.rb +149 -0
- data/spec/views/tasks/_edit.haml_spec.rb +48 -0
- data/spec/views/tasks/complete.js.haml_spec.rb +66 -0
- data/spec/views/tasks/create.js.haml_spec.rb +119 -0
- data/spec/views/tasks/destroy.js.haml_spec.rb +56 -0
- data/spec/views/tasks/edit.js.haml_spec.rb +74 -0
- data/spec/views/tasks/index.haml_spec.rb +44 -0
- data/spec/views/tasks/new.js.haml_spec.rb +47 -0
- data/spec/views/tasks/uncomplete.js.haml_spec.rb +44 -0
- data/spec/views/tasks/update.js.haml_spec.rb +141 -0
- data/spec/views/users/avatar.js.haml_spec.rb +33 -0
- data/spec/views/users/change_password.js.haml_spec.rb +50 -0
- data/spec/views/users/edit.js.haml_spec.rb +33 -0
- data/spec/views/users/password.js.haml_spec.rb +34 -0
- data/spec/views/users/update.js.haml_spec.rb +45 -0
- data/spec/views/users/upload_avatar.js.haml_spec.rb +44 -0
- data/vendor/assets/images/calendar_date_select/calendar.gif +0 -0
- data/vendor/assets/images/chosen-sprite.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-bg_flat_0_eeeeee_40x100.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-bg_flat_100_ffffff_40x100.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-bg_flat_25_3875d7_40x100.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-bg_flat_55_ffffff_40x100.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-bg_flat_65_3875d7_40x100.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-bg_highlight-soft_50_dddddd_1x100.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-icons_0073ea_256x240.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-icons_466bb1_256x240.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-icons_ff0084_256x240.png +0 -0
- data/vendor/assets/images/jquery-ui/ui-icons_ffffff_256x240.png +0 -0
- data/vendor/assets/javascripts/ajax-chosen-jquery.js +2 -0
- data/vendor/assets/javascripts/ajax-chosen.jquery.coffee +171 -0
- data/vendor/assets/javascripts/chosen-jquery.js +3 -0
- data/vendor/assets/javascripts/chosen.jquery.coffee +574 -0
- data/vendor/assets/javascripts/jquery.disable.js +23 -0
- data/vendor/assets/javascripts/jquery_timeago/index.js +19 -0
- data/vendor/assets/javascripts/jquery_timeago/jquery.timeago.cz.js +18 -0
- data/vendor/assets/javascripts/jquery_timeago/jquery.timeago.de.js +18 -0
- data/vendor/assets/javascripts/jquery_timeago/jquery.timeago.en-GB.js +20 -0
- data/vendor/assets/javascripts/jquery_timeago/jquery.timeago.en-US.js +20 -0
- data/vendor/assets/javascripts/jquery_timeago/jquery.timeago.es-CL.js +18 -0
- data/vendor/assets/javascripts/jquery_timeago/jquery.timeago.es.js +18 -0
- data/vendor/assets/javascripts/jquery_timeago/jquery.timeago.fr-CA.js +17 -0
- data/vendor/assets/javascripts/jquery_timeago/jquery.timeago.fr.js +17 -0
- data/vendor/assets/javascripts/jquery_timeago/jquery.timeago.it.js +16 -0
- data/vendor/assets/javascripts/jquery_timeago/jquery.timeago.ja.js +19 -0
- data/vendor/assets/javascripts/jquery_timeago/jquery.timeago.js +194 -0
- data/vendor/assets/javascripts/jquery_timeago/jquery.timeago.nl.js +20 -0
- data/vendor/assets/javascripts/jquery_timeago/jquery.timeago.pl.js +31 -0
- data/vendor/assets/javascripts/jquery_timeago/jquery.timeago.pt-BR.js +18 -0
- data/vendor/assets/javascripts/jquery_timeago/jquery.timeago.ru.js +34 -0
- data/vendor/assets/javascripts/jquery_timeago/jquery.timeago.sv-SE.js +18 -0
- data/vendor/assets/javascripts/jquery_timeago/jquery.timeago.th.js +20 -0
- data/vendor/assets/javascripts/jquery_timeago/jquery.timeago.zh-CN.js +20 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery-ui-timepicker-addon.js +1882 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery-ui-timepicker-af.js +20 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery-ui-timepicker-ca.js +20 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery-ui-timepicker-cz.js +20 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery-ui-timepicker-de.js +20 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery-ui-timepicker-el.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-timepicker-es.js +20 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery-ui-timepicker-et.js +20 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery-ui-timepicker-fi.js +20 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery-ui-timepicker-fr-CA.js +20 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery-ui-timepicker-fr.js +20 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery-ui-timepicker-gl.js +20 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery-ui-timepicker-he.js +20 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery-ui-timepicker-hu.js +20 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery-ui-timepicker-id.js +20 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery-ui-timepicker-it.js +20 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery-ui-timepicker-ja.js +20 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery-ui-timepicker-ko.js +20 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery-ui-timepicker-lt.js +20 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery-ui-timepicker-nl.js +20 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery-ui-timepicker-no.js +20 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery-ui-timepicker-pl.js +20 -0
- 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-pt.js +20 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery-ui-timepicker-ro.js +20 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery-ui-timepicker-ru.js +20 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery-ui-timepicker-sk.js +20 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery-ui-timepicker-sv-SE.js +20 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery-ui-timepicker-th.js +19 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery-ui-timepicker-tr.js +20 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery-ui-timepicker-vi.js +20 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery-ui-timepicker-zh-CN.js +20 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery-ui-timepicker-zh-TW.js +20 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery.ui.datepicker-cz.js +23 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery.ui.datepicker-de.js +23 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery.ui.datepicker-en-GB.js +23 -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-es.js +23 -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-fr.js +23 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery.ui.datepicker-it.js +23 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery.ui.datepicker-ja.js +23 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery.ui.datepicker-nl.js +21 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery.ui.datepicker-pl.js +23 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery.ui.datepicker-pt-BR.js +23 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery.ui.datepicker-pt.js +21 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery.ui.datepicker-ru.js +23 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery.ui.datepicker-sv-SE.js +23 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery.ui.datepicker-th.js +23 -0
- data/vendor/assets/javascripts/jquery_ui_datepicker/jquery.ui.datepicker-zh-CN.js +23 -0
- data/vendor/assets/javascripts/lib/abstract-chosen.coffee +110 -0
- data/vendor/assets/javascripts/lib/select-parser.coffee +51 -0
- data/vendor/assets/javascripts/rating.js +162 -0
- data/vendor/assets/javascripts/textarea_autocomplete.js +605 -0
- data/vendor/assets/stylesheets/chosen.css.sass +361 -0
- data/vendor/assets/stylesheets/jquery-ui.custom.scss +566 -0
- data/vendor/assets/stylesheets/modalbox.css +107 -0
- 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
- data/zeus.json +22 -0
- metadata +1566 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
|
2
|
+
|
|
3
|
+
# Version of your assets, change this if you want to expire all your assets.
|
|
4
|
+
Rails.application.config.assets.version = '1.0'
|
|
5
|
+
|
|
6
|
+
# Add additional assets to the asset load path
|
|
7
|
+
# Rails.application.config.assets.paths << Emoji.images_path
|
|
8
|
+
|
|
9
|
+
# Precompile additional assets.
|
|
10
|
+
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
|
11
|
+
Rails.application.config.assets.precompile += %w( print.css chosen-sprite.png jquery-ui/* jquery_ui_datepicker/*.js )
|
|
12
|
+
|
|
13
|
+
# Don't initialize Rails environment
|
|
14
|
+
Rails.application.config.assets.initialize_on_precompile = false
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
+
#------------------------------------------------------------------------------
|
|
6
|
+
require 'authlogic'
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
|
2
|
+
|
|
3
|
+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
|
5
|
+
|
|
6
|
+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
|
7
|
+
# Rails.backtrace_cleaner.remove_silencers!
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
+
#------------------------------------------------------------------------------
|
|
6
|
+
ENTITIES = %w(Account Campaign Contact Lead Opportunity).freeze
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Load field names for custom fields, for Ransack search
|
|
2
|
+
if Setting.database_and_table_exists?
|
|
3
|
+
Rails.application.config.after_initialize do
|
|
4
|
+
I18n.backend.load_translations
|
|
5
|
+
|
|
6
|
+
translations = { ransack: { attributes: {} } }
|
|
7
|
+
CustomField.find_each do |custom_field|
|
|
8
|
+
if custom_field.field_group.present?
|
|
9
|
+
model_key = custom_field.klass.model_name.singular
|
|
10
|
+
translations[:ransack][:attributes][model_key] ||= {}
|
|
11
|
+
translations[:ransack][:attributes][model_key][custom_field.name] = custom_field.label
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
I18n.backend.store_translations(Setting.locale.to_sym, translations)
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
#------------------------------------------------------------------------------
|
|
6
|
+
GravatarImageTag.configure do |config|
|
|
7
|
+
config.default_image = :mm # Set this to use your own default gravatar image rather then serving up Gravatar's default image [ 'http://example.com/images/default_gravitar.jpg', :identicon, :monsterid, :wavatar, 404 ].
|
|
8
|
+
config.filetype = nil # Set this if you require a specific image file format ['gif', 'jpg' or 'png']. Gravatar's default is png
|
|
9
|
+
config.rating = nil # Set this if you change the rating of the images that will be returned ['G', 'PG', 'R', 'X']. Gravatar's default is G
|
|
10
|
+
config.size = nil # Set this to globally set the size of the gravatar image returned (1..512). Gravatar's default is 80
|
|
11
|
+
config.secure = false # Set this to true if you require secure images on your pages.
|
|
12
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
|
2
|
+
|
|
3
|
+
# Add new inflection rules using the following format. Inflections
|
|
4
|
+
# are locale specific, and you may define rules for as many different
|
|
5
|
+
# locales as you wish. All of these examples are active by default:
|
|
6
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
|
7
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
|
8
|
+
# inflect.singular /^(ox)en/i, '\1'
|
|
9
|
+
# inflect.irregular 'person', 'people'
|
|
10
|
+
# inflect.uncountable %w( fish sheep )
|
|
11
|
+
# end
|
|
12
|
+
|
|
13
|
+
# These inflection rules are supported but not enabled by default:
|
|
14
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
|
15
|
+
# inflect.acronym 'RESTful'
|
|
16
|
+
# end
|
|
@@ -0,0 +1,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
|
+
#------------------------------------------------------------------------------
|
|
6
|
+
|
|
7
|
+
# Set default locale from Settings
|
|
8
|
+
# defer setting the locale until all I18n locales have been initialized
|
|
9
|
+
#------------------------------------------------------------------------------
|
|
10
|
+
|
|
11
|
+
# Turn off until https://github.com/rails/rails/issues/13164 is fixed
|
|
12
|
+
I18n.config.enforce_available_locales = false
|
|
13
|
+
Rails.application.config.i18n.fallbacks = true
|
|
14
|
+
|
|
15
|
+
FatFreeCRM.application.config.after_initialize do
|
|
16
|
+
I18n.default_locale = Setting.locale
|
|
17
|
+
I18n.fallbacks[:en] = [:"en-US"]
|
|
18
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
#------------------------------------------------------------------------------
|
|
6
|
+
# Be sure to restart your server when you modify this file.
|
|
7
|
+
|
|
8
|
+
# Add new mime types for use in respond_to blocks:
|
|
9
|
+
# Mime::Type.register "text/richtext", :rtf
|
|
10
|
+
# Mime::Type.register_alias "text/html", :iphone
|
|
11
|
+
|
|
12
|
+
Mime::Type.register "application/vnd.ms-excel", :xls
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
#------------------------------------------------------------------------------
|
|
6
|
+
# From https://github.com/mislav/will_paginate/wiki/Backwards-incompatibility
|
|
7
|
+
#
|
|
8
|
+
# The Array#paginate method still exists, too, but is not loaded by default.
|
|
9
|
+
# If you need to paginate static arrays, first require it in your code:
|
|
10
|
+
#
|
|
11
|
+
require 'will_paginate/array'
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
#------------------------------------------------------------------------------
|
|
6
|
+
Ransack.configure do |config|
|
|
7
|
+
config.default_predicates = {
|
|
8
|
+
compounds: true,
|
|
9
|
+
only: [
|
|
10
|
+
:cont, :not_cont, :blank, :present, :true, :false, :eq, :not_eq,
|
|
11
|
+
:lt, :gt, :null, :not_null, :matches, :does_not_match
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
config.ajax_options = {
|
|
16
|
+
url: '/:controller/auto_complete.json',
|
|
17
|
+
type: 'POST',
|
|
18
|
+
key: 'auto_complete_query'
|
|
19
|
+
}
|
|
20
|
+
end
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
#------------------------------------------------------------------------------
|
|
6
|
+
# Set relative url root for assets
|
|
7
|
+
|
|
8
|
+
if Setting.base_url.present?
|
|
9
|
+
ActionController::Base.relative_url_root = Setting.base_url
|
|
10
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
#------------------------------------------------------------------------------
|
|
6
|
+
|
|
7
|
+
# Be sure to restart your server when you modify this file.
|
|
8
|
+
|
|
9
|
+
# Your secret key is used for verifying the integrity of signed cookies.
|
|
10
|
+
# If you change this key, all old signed cookies will become invalid!
|
|
11
|
+
|
|
12
|
+
# Make sure the secret is at least 30 characters and all random,
|
|
13
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
|
14
|
+
# You can use `rake secret` to generate a secure secret key.
|
|
15
|
+
|
|
16
|
+
# Make sure your secret_key_base is kept private
|
|
17
|
+
# if you're sharing your code publicly.
|
|
18
|
+
|
|
19
|
+
#
|
|
20
|
+
# We should setup a secret token if FFCRM is running in application mode but NOT in engine mode.
|
|
21
|
+
# This functionality has been extracted to lib so it can be tested.
|
|
22
|
+
if FatFreeCRM.application?
|
|
23
|
+
require 'fat_free_crm/secret_token_generator'
|
|
24
|
+
FatFreeCRM::SecretTokenGenerator.setup!
|
|
25
|
+
end
|
|
@@ -0,0 +1,100 @@
|
|
|
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
|
+
#------------------------------------------------------------------------------
|
|
6
|
+
require 'simple_form'
|
|
7
|
+
|
|
8
|
+
# Use this setup block to configure all options available in SimpleForm.
|
|
9
|
+
SimpleForm.setup do |config|
|
|
10
|
+
# Components used by the form builder to generate a complete input. You can remove
|
|
11
|
+
# any of them, change the order, or even add your own components to the stack.
|
|
12
|
+
# config.components = [ :placeholder, :label_input, :hint, :error ]
|
|
13
|
+
|
|
14
|
+
# Default tag used on hints.
|
|
15
|
+
# config.hint_tag = :span
|
|
16
|
+
|
|
17
|
+
# CSS class to add to all hint tags.
|
|
18
|
+
# config.hint_class = :hint
|
|
19
|
+
|
|
20
|
+
# CSS class used on errors.
|
|
21
|
+
# config.error_class = :error
|
|
22
|
+
|
|
23
|
+
# Default tag used on errors.
|
|
24
|
+
# config.error_tag = :span
|
|
25
|
+
|
|
26
|
+
# Method used to tidy up errors.
|
|
27
|
+
# config.error_method = :first
|
|
28
|
+
|
|
29
|
+
# Default tag used for error notification helper.
|
|
30
|
+
# config.error_notification_tag = :p
|
|
31
|
+
|
|
32
|
+
# CSS class to add for error notification helper.
|
|
33
|
+
# config.error_notification_class = :error_notification
|
|
34
|
+
|
|
35
|
+
# ID to add for error notification helper.
|
|
36
|
+
# config.error_notification_id = nil
|
|
37
|
+
|
|
38
|
+
# You can wrap all inputs in a pre-defined tag.
|
|
39
|
+
# config.wrapper_tag = :div
|
|
40
|
+
|
|
41
|
+
# CSS class to add to all wrapper tags.
|
|
42
|
+
# config.wrapper_class = :input
|
|
43
|
+
|
|
44
|
+
# CSS class to add to the wrapper if the field has errors.
|
|
45
|
+
# config.wrapper_error_class = :field_with_errors
|
|
46
|
+
|
|
47
|
+
# You can wrap a collection of radio/check boxes in a pre-defined tag, defaulting to none.
|
|
48
|
+
# config.collection_wrapper_tag = nil
|
|
49
|
+
|
|
50
|
+
# You can wrap each item in a collection of radio/check boxes with a tag, defaulting to span.
|
|
51
|
+
# config.item_wrapper_tag = :span
|
|
52
|
+
|
|
53
|
+
# Series of attempts to detect a default label method for collection.
|
|
54
|
+
# config.collection_label_methods = [ :to_label, :name, :title, :to_s ]
|
|
55
|
+
|
|
56
|
+
# Series of attempts to detect a default value method for collection.
|
|
57
|
+
# config.collection_value_methods = [ :id, :to_s ]
|
|
58
|
+
|
|
59
|
+
# How the label text should be generated altogether with the required text.
|
|
60
|
+
config.label_text = lambda { |label, _required, _explicit_label| "#{label}" }
|
|
61
|
+
|
|
62
|
+
# You can define the class to use on all labels. Default is nil.
|
|
63
|
+
# config.label_class = nil
|
|
64
|
+
|
|
65
|
+
# You can define the class to use on all forms. Default is simple_form.
|
|
66
|
+
# config.form_class = :simple_form
|
|
67
|
+
|
|
68
|
+
# Whether attributes are required by default (or not). Default is true.
|
|
69
|
+
# config.required_by_default = true
|
|
70
|
+
|
|
71
|
+
# Tell browsers whether to use default HTML5 validations (novalidate option).
|
|
72
|
+
# Default is enabled.
|
|
73
|
+
# config.browser_validations = true
|
|
74
|
+
|
|
75
|
+
# Determines whether HTML5 types (:email, :url, :search, :tel) and attributes
|
|
76
|
+
# (e.g. required) are used or not. True by default.
|
|
77
|
+
# Having this on in non-HTML5 compliant sites can cause odd behavior in
|
|
78
|
+
# HTML5-aware browsers such as Chrome.
|
|
79
|
+
# config.html5 = true
|
|
80
|
+
|
|
81
|
+
# Custom mappings for input types. This should be a hash containing a regexp
|
|
82
|
+
# to match as key, and the input type that will be used when the field name
|
|
83
|
+
# matches the regexp as value.
|
|
84
|
+
# config.input_mappings = { /count/ => :integer }
|
|
85
|
+
|
|
86
|
+
# Collection of methods to detect if a file type was given.
|
|
87
|
+
# config.file_methods = [ :mounted_as, :file?, :public_filename ]
|
|
88
|
+
|
|
89
|
+
# Default priority for time_zone inputs.
|
|
90
|
+
# config.time_zone_priority = nil
|
|
91
|
+
|
|
92
|
+
# Default priority for country inputs.
|
|
93
|
+
# config.country_priority = nil
|
|
94
|
+
|
|
95
|
+
# Default size for text inputs.
|
|
96
|
+
# config.default_input_size = 50
|
|
97
|
+
|
|
98
|
+
# When false, do not use translations for labels, hints or placeholders.
|
|
99
|
+
# config.translate = true
|
|
100
|
+
end
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
#------------------------------------------------------------------------------
|
|
6
|
+
|
|
7
|
+
# Register the views that FatFreeCRM provides
|
|
8
|
+
#------------------------------------------------------------------------------
|
|
9
|
+
|
|
10
|
+
[{ name: 'contacts_index_brief', title: 'Brief format', icon: 'fa-bars',
|
|
11
|
+
controllers: ['contacts'], actions: ['index'], template: 'contacts/index_brief' },
|
|
12
|
+
{ name: 'contacts_index_long', title: 'Long format', icon: 'fa-list',
|
|
13
|
+
controllers: ['contacts'], actions: ['index'], template: 'contacts/index_long' }, # default index view
|
|
14
|
+
{ name: 'contacts_index_full', title: 'Full format', icon: 'fa-list-alt',
|
|
15
|
+
controllers: ['contacts'], actions: ['index'], template: 'contacts/index_full' },
|
|
16
|
+
{ name: 'contacts_show_normal', title: 'Normal format', icon: 'fa-list',
|
|
17
|
+
controllers: ['contacts'], actions: ['show'], template: nil }, # default show view
|
|
18
|
+
|
|
19
|
+
{ name: 'opportunities_index_brief', title: 'Brief format', icon: 'fa-bars',
|
|
20
|
+
controllers: ['opportunities'], actions: ['index'], template: 'opportunities/index_brief' },
|
|
21
|
+
{ name: 'opportunities_index_long', title: 'Long format', icon: 'fa-list',
|
|
22
|
+
controllers: ['opportunities'], actions: ['index'], template: 'opportunities/index_long' }, # default
|
|
23
|
+
{ name: 'opportunities_show_normal', title: 'Normal format', icon: 'fa-list',
|
|
24
|
+
controllers: ['opportunities'], actions: ['show'], template: nil }, # default show view
|
|
25
|
+
|
|
26
|
+
{ name: 'accounts_index_brief', title: 'Brief format', icon: 'fa-bars',
|
|
27
|
+
controllers: ['accounts'], actions: ['index'], template: 'accounts/index_brief' }, # default
|
|
28
|
+
{ name: 'accounts_index_long', title: 'Long format', icon: 'fa-list',
|
|
29
|
+
controllers: ['accounts'], actions: ['index'], template: 'accounts/index_long' }, # default
|
|
30
|
+
{ name: 'accounts_show_normal', title: 'Normal format', icon: 'fa-list',
|
|
31
|
+
controllers: ['accounts'], actions: ['show'], template: nil }, # default show view
|
|
32
|
+
|
|
33
|
+
{ name: 'leads_index_brief', title: 'Brief format', icon: 'fa-bars',
|
|
34
|
+
controllers: ['leads'], actions: ['index'], template: 'leads/index_brief' }, # default
|
|
35
|
+
{ name: 'leads_index_long', title: 'Long format', icon: 'fa-list',
|
|
36
|
+
controllers: ['leads'], actions: ['index'], template: 'leads/index_long' },
|
|
37
|
+
{ name: 'leads_show_normal', title: 'Normal format', icon: 'fa-list',
|
|
38
|
+
controllers: ['leads'], actions: ['show'], template: nil }, # default show view
|
|
39
|
+
|
|
40
|
+
{ name: 'campaigns_index_brief', title: 'Brief format', icon: 'fa-bars',
|
|
41
|
+
controllers: ['campaigns'], actions: ['index'], template: 'campaigns/index_brief' }, # default
|
|
42
|
+
{ name: 'campaigns_index_long', title: 'Long format', icon: 'fa-list',
|
|
43
|
+
controllers: ['campaigns'], actions: ['index'], template: 'campaigns/index_long' },
|
|
44
|
+
{ name: 'campaigns_show_normal', title: 'Normal format', icon: 'fa-list',
|
|
45
|
+
controllers: ['campaigns'], actions: ['show'], template: nil }, # default show view
|
|
46
|
+
|
|
47
|
+
].each { |view| FatFreeCRM::ViewFactory.new(view) }
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
|
2
|
+
|
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
|
4
|
+
# is enabled by default.
|
|
5
|
+
|
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
|
8
|
+
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# To enable root element in JSON for ActiveRecord objects.
|
|
12
|
+
ActiveSupport.on_load(:active_record) do
|
|
13
|
+
self.include_root_in_json = true
|
|
14
|
+
end
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
---
|
|
2
|
+
cz:
|
|
3
|
+
date:
|
|
4
|
+
formats:
|
|
5
|
+
default: ! '%d.%m.%Y'
|
|
6
|
+
short: ! '%d %b'
|
|
7
|
+
long: ! '%d. %B %Y'
|
|
8
|
+
rfc822: ! '%e %b %Y'
|
|
9
|
+
compact: ! '%y%m%d'
|
|
10
|
+
day_names:
|
|
11
|
+
- Neděle
|
|
12
|
+
- Pondělí
|
|
13
|
+
- Úterý
|
|
14
|
+
- Středa
|
|
15
|
+
- Čtvrtek
|
|
16
|
+
- Pátek
|
|
17
|
+
- Sobota
|
|
18
|
+
abbr_day_names:
|
|
19
|
+
- Ne
|
|
20
|
+
- Po
|
|
21
|
+
- Út
|
|
22
|
+
- St
|
|
23
|
+
- Čt
|
|
24
|
+
- Pá
|
|
25
|
+
- So
|
|
26
|
+
month_names:
|
|
27
|
+
-
|
|
28
|
+
- Leden
|
|
29
|
+
- Únor
|
|
30
|
+
- Březen
|
|
31
|
+
- Duben
|
|
32
|
+
- Květen
|
|
33
|
+
- Červen
|
|
34
|
+
- Červenec
|
|
35
|
+
- Srpen
|
|
36
|
+
- Září
|
|
37
|
+
- Říjen
|
|
38
|
+
- Listopad
|
|
39
|
+
- Prosinec
|
|
40
|
+
abbr_month_names:
|
|
41
|
+
-
|
|
42
|
+
- Led
|
|
43
|
+
- Úno
|
|
44
|
+
- Bře
|
|
45
|
+
- Dub
|
|
46
|
+
- Kvě
|
|
47
|
+
- Čvn
|
|
48
|
+
- Čvc
|
|
49
|
+
- Srp
|
|
50
|
+
- Zář
|
|
51
|
+
- Říj
|
|
52
|
+
- Lis
|
|
53
|
+
- Pro
|
|
54
|
+
order:
|
|
55
|
+
- day
|
|
56
|
+
- month
|
|
57
|
+
- year
|
|
58
|
+
time:
|
|
59
|
+
formats:
|
|
60
|
+
default: ! '%a %d. %B %Y %H:%M %z'
|
|
61
|
+
short: ! '%d.%m. %H:%M'
|
|
62
|
+
long: ! '%A %d. %B %Y %H:%M'
|
|
63
|
+
am: dopoledne
|
|
64
|
+
pm: odpoledne
|
|
65
|
+
support:
|
|
66
|
+
array:
|
|
67
|
+
words_connector: ! ', '
|
|
68
|
+
two_words_connector: ! ' a '
|
|
69
|
+
last_word_connector: ! ' a '
|
|
70
|
+
select:
|
|
71
|
+
prompt: Prosím vyberte si.
|
|
72
|
+
number:
|
|
73
|
+
format:
|
|
74
|
+
precision: 3
|
|
75
|
+
separator: .
|
|
76
|
+
delimiter: ! ','
|
|
77
|
+
significant: false
|
|
78
|
+
strip_insignificant_zeros: false
|
|
79
|
+
currency:
|
|
80
|
+
format:
|
|
81
|
+
unit: Kč
|
|
82
|
+
precision: 2
|
|
83
|
+
format: ! '%n %u'
|
|
84
|
+
separator: ! ','
|
|
85
|
+
delimiter: ! ' '
|
|
86
|
+
significant: false
|
|
87
|
+
strip_insignificant_zeros: false
|
|
88
|
+
percentage:
|
|
89
|
+
format:
|
|
90
|
+
delimiter: ''
|
|
91
|
+
precision:
|
|
92
|
+
format:
|
|
93
|
+
delimiter: ''
|
|
94
|
+
human:
|
|
95
|
+
format:
|
|
96
|
+
precision: 1
|
|
97
|
+
delimiter: ''
|
|
98
|
+
significant: false
|
|
99
|
+
strip_insignificant_zeros: false
|
|
100
|
+
storage_units:
|
|
101
|
+
format: ! '%n %u'
|
|
102
|
+
units:
|
|
103
|
+
byte:
|
|
104
|
+
other: B
|
|
105
|
+
one: B
|
|
106
|
+
kb: KB
|
|
107
|
+
mb: MB
|
|
108
|
+
gb: GB
|
|
109
|
+
tb: TB
|
|
110
|
+
decimal_units:
|
|
111
|
+
format: ! '%n %u'
|
|
112
|
+
units:
|
|
113
|
+
unit: ''
|
|
114
|
+
thousand: Tisíc
|
|
115
|
+
million: Milión
|
|
116
|
+
billion: Miliarda
|
|
117
|
+
trillion: Trilión
|
|
118
|
+
quadrillion: Quadrilión
|
|
119
|
+
datetime:
|
|
120
|
+
prompts:
|
|
121
|
+
second: Sekunda
|
|
122
|
+
minute: Minuta
|
|
123
|
+
hour: Hodina
|
|
124
|
+
day: Den
|
|
125
|
+
month: Měsíc
|
|
126
|
+
year: Rok
|
|
127
|
+
distance_in_words:
|
|
128
|
+
half_a_minute: půl minutou
|
|
129
|
+
less_than_x_seconds:
|
|
130
|
+
one: asi před sekundou
|
|
131
|
+
other: asi před %{count} sekundami
|
|
132
|
+
x_seconds:
|
|
133
|
+
one: sekundou
|
|
134
|
+
other: ! '%{count} sekundami'
|
|
135
|
+
less_than_x_minutes:
|
|
136
|
+
one: před necelou minutou
|
|
137
|
+
other: před ani ne %{count} minutami
|
|
138
|
+
x_minutes:
|
|
139
|
+
one: minutou
|
|
140
|
+
other: ! '%{count} minutami'
|
|
141
|
+
about_x_hours:
|
|
142
|
+
one: asi hodinou
|
|
143
|
+
other: asi %{count} hodin
|
|
144
|
+
x_days:
|
|
145
|
+
one: 24 hodin
|
|
146
|
+
other: ! '%{count} dny'
|
|
147
|
+
about_x_months:
|
|
148
|
+
one: asi měsícem
|
|
149
|
+
other: asi %{count} měsíci
|
|
150
|
+
x_months:
|
|
151
|
+
one: měsícem
|
|
152
|
+
other: ! '%{count} měsíci'
|
|
153
|
+
about_x_years:
|
|
154
|
+
one: asi rokem
|
|
155
|
+
other: asi %{count} roky
|
|
156
|
+
over_x_years:
|
|
157
|
+
one: před víc jak rokem
|
|
158
|
+
other: víc jak %{count} roky
|
|
159
|
+
almost_x_years:
|
|
160
|
+
one: téměř rokem
|
|
161
|
+
other: téměř %{count} roky
|
|
162
|
+
helpers:
|
|
163
|
+
select:
|
|
164
|
+
prompt: Prosím vyberte si
|
|
165
|
+
submit:
|
|
166
|
+
create: Vytvořit %{model}
|
|
167
|
+
update: Aktualizovat %{model}
|
|
168
|
+
submit: Uložit %{model}
|
|
169
|
+
user_exercise_sollution:
|
|
170
|
+
create: Zkontrolovat test
|
|
171
|
+
update: Zkontrolovat up
|
|
172
|
+
submit: Zkontrolovat su
|
|
173
|
+
destroy:
|
|
174
|
+
title: Mázání
|
|
175
|
+
areyousure: Jste si jistý, že chcete smazat tuto položku?
|
|
176
|
+
delete: Smazat
|
|
177
|
+
keep: Zachovat
|
|
178
|
+
publish:
|
|
179
|
+
title: Publikace
|
|
180
|
+
areyousure: Jste si jistý, že chcete publikovat tento test?
|
|
181
|
+
errors:
|
|
182
|
+
format: ! 'Položka: ''%{attribute}'', %{message}.'
|
|
183
|
+
messages:
|
|
184
|
+
inclusion: není v seznamu povolených hodnot
|
|
185
|
+
exclusion: je vyhrazeno pro jiný účel
|
|
186
|
+
invalid: není dobře vyplněn
|
|
187
|
+
confirmation: nebylo potvrzeno
|
|
188
|
+
accepted: musí být potvrzeno
|
|
189
|
+
empty: nesmí být prázdný/é
|
|
190
|
+
blank: je třeba vyplnit
|
|
191
|
+
too_long: je příliš dlouhá/ý (max. %{count} znaků)
|
|
192
|
+
too_short: je příliš krátký/á (min. %{count} znaků)
|
|
193
|
+
wrong_length: nemá správnou délku (očekáváno %{count} znaků)
|
|
194
|
+
taken: již databáze obsahuje
|
|
195
|
+
not_a_number: není číslo
|
|
196
|
+
not_an_integer: není je celé číslo
|
|
197
|
+
greater_than: musí být větší než %{count}
|
|
198
|
+
greater_than_or_equal_to: musí být větší nebo rovno %{count}
|
|
199
|
+
equal_to: musí být rovno %{count}
|
|
200
|
+
less_than: musí být méně než %{count}
|
|
201
|
+
less_than_or_equal_to: musí být méně nebo rovno %{count}
|
|
202
|
+
odd: musí být liché číslo
|
|
203
|
+
even: musí být sudé číslo
|
|
204
|
+
activerecord:
|
|
205
|
+
errors:
|
|
206
|
+
template:
|
|
207
|
+
header:
|
|
208
|
+
one: Změny na %{model} nebyly uložené. Vyskytla se 1 chyba
|
|
209
|
+
other: Změny na %{model} nebyly uložené. Vyskytlo se %{count} chyb
|
|
210
|
+
body: ! 'Vyskytly se problémy na následujících položkách:'
|
|
211
|
+
messages:
|
|
212
|
+
inclusion: není v seznamu povolených hodnot
|
|
213
|
+
exclusion: je vyhrazeno pro jiný účel
|
|
214
|
+
invalid: není dobře vyplněn
|
|
215
|
+
confirmation: nebylo potvrzeno
|
|
216
|
+
accepted: musí být potvrzeno
|
|
217
|
+
empty: nesmí být prázdný/é
|
|
218
|
+
blank: je třeba vyplnit
|
|
219
|
+
too_long: je příliš dlouhá/ý (max. %{count} znaků)
|
|
220
|
+
too_short: je příliš krátký/á (min. %{count} znaků)
|
|
221
|
+
wrong_length: nemá správnou délku (očekáváno %{count} znaků)
|
|
222
|
+
taken: jste už použili
|
|
223
|
+
not_a_number: není číslo
|
|
224
|
+
not_an_integer: není je celé číslo
|
|
225
|
+
greater_than: musí být větší než %{count}
|
|
226
|
+
greater_than_or_equal_to: musí být větší nebo rovno %{count}
|
|
227
|
+
equal_to: musí být rovno %{count}
|
|
228
|
+
less_than: musí být méně než %{count}
|
|
229
|
+
less_than_or_equal_to: musí být méně nebo rovno %{count}
|
|
230
|
+
odd: musí být liché číslo
|
|
231
|
+
even: musí být sudé číslo
|
|
232
|
+
record_invalid: ! 'Validáce byla neuspešná: %{errors}'
|
|
233
|
+
full_messages:
|
|
234
|
+
format: ! '%{attribute} %{message}'
|
|
235
|
+
models:
|
|
236
|
+
attachment:
|
|
237
|
+
attributes:
|
|
238
|
+
file:
|
|
239
|
+
carrierwave_processing_error: Chyba při zpracování uploadu souboru (carrierwave)
|
|
240
|
+
activemodel:
|
|
241
|
+
errors:
|
|
242
|
+
template:
|
|
243
|
+
header:
|
|
244
|
+
one: Při ukládání objektu %{model} došlo k chybám a nebylo jej možné uložit
|
|
245
|
+
other: Při ukládání objektu %{model} došlo ke %{count} chybám a nebylo možné
|
|
246
|
+
jej uložit
|
|
247
|
+
body: ! 'Následující pole obsahují chybně vyplněné údaje:'
|