e9_crm 0.1.33 → 0.1.34

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.
@@ -1,3 +1,3 @@
1
- .toolbar
2
- .toolbar-right
1
+ - content_for :toolbar_right do
2
+ = toolbar_actions do
3
3
  = link_to_new_resource(CampaignGroup)
@@ -1,21 +1,23 @@
1
- .toolbar
2
- .toolbar-left
3
- .toolbar-middle
1
+ - content_for :toolbar_middle do
2
+ = toolbar_filters do
4
3
  = form_tag(resource_class, :method => :get, :class => 'scope-selects') do
5
- %fieldset
6
- %legend= t(:form_legend_filter_campaigns)
7
- %select{:name => 'type'}
4
+ .field
5
+ = label_tag 'campaign-type', t(:filter_by, :attribute => resource_class.human_attribute_name(:type))
6
+ %select{:name => 'type', :id => 'campaign-type'}
8
7
  = campaign_type_select_options
9
- %select{:name => 'group'}
8
+ .field
9
+ = label_tag 'campaign-group', t(:filter_by, :attribute => resource_class.human_attribute_name(:group))
10
+ %select{:name => 'group', :id => 'campaign-group'}
10
11
  = campaign_group_select_options
11
- %select{:name => 'active'}
12
+ .field
13
+ = label_tag 'campaign-active', t(:filter_by, :attribute => resource_class.human_attribute_name(:active))
14
+ %select{:name => 'active', :id => 'campaign-active'}
12
15
  = campaign_active_select_options
13
16
 
14
- .toolbar-right
17
+ - content_for :toolbar_right do
18
+ = toolbar_forms do
15
19
  = form_tag new_campaign_path, :method => :get, :id => 'new_campaign_form' do
16
- %fieldset
17
- %legend= t(:form_legend_manage)
18
- = label_tag 'new_campaign_type_select', t('activerecord.links.new', :model => Campaign.model_name.human)
19
- %select{:name => 'type', :id => 'new_campaign_type_select'}
20
- = campaign_type_select_options(false)
21
- = submit_tag t(:go), :name => nil
20
+ = label_tag 'new_campaign_type_select', t('activerecord.links.new', :model => Campaign.model_name.human)
21
+ %select{:name => 'type', :id => 'new_campaign_type_select'}
22
+ = campaign_type_select_options(false)
23
+ = submit_tag t(:go), :name => nil
@@ -1,19 +1,30 @@
1
1
  = title (@index_title || e9_t(:index_title, :scope => 'e9_crm.reports'))
2
2
 
3
- .toolbar
4
- .toolbar-left
3
+ - content_for :toolbar_middle do
4
+ = toolbar_filters do
5
5
  = form_tag(resource_class, :method => :get, :class => 'scope-selects') do
6
- %select{:name => 'type'}
7
- = campaign_type_select_options
8
- %select{:name => 'group'}
9
- = campaign_group_select_options
10
- %select{:name => 'from'}
11
- = deal_date_select_options
12
- %select{:name => 'until'}
13
- = deal_date_select_options(:type => :until)
6
+ .field
7
+ = label_tag 'campaign-type', t(:filter_by, :attribute => resource_class.human_attribute_name(:type))
8
+ %select{:name => 'type', :id => 'campaign-type'}
9
+ = campaign_type_select_options
10
+ .field
11
+ = label_tag 'campaign-group', t(:filter_by, :attribute => resource_class.human_attribute_name(:group))
12
+ %select{:name => 'group', :id => 'campaign-group'}
13
+ = campaign_group_select_options
14
+ .field
15
+ = label_tag 'campaign-from', t(:filter_by, :attribute => resource_class.human_attribute_name(:from))
16
+ %select{:name => 'from', :id => 'campaign-from'}
17
+ = deal_date_select_options
18
+ .field
19
+ = label_tag 'campaign-until', t(:filter_by, :attribute => resource_class.human_attribute_name(:until))
20
+ %select{:name => 'until', :id => 'campaign-until'}
21
+ = deal_date_select_options(:type => :until)
14
22
 
15
- .toolbar-right
23
+ - content_for :toolbar_right do
24
+ = toolbar_actions do
16
25
  = link_to_collection(Campaign)
17
26
 
27
+ = render 'shared/admin/toolbar'
28
+
18
29
  %div#records_table
19
30
  = render 'reports_table'
@@ -1,10 +1,4 @@
1
- .toolbar
2
- .toolbar-left
3
- .toolbar-middle
4
- .toolbar-right
5
- %fieldset
6
- %legend= t(:form_legend_manage)
7
- .manage-company
8
- = link_to_new_resource(Company)
9
- .manage-contacts
10
- = link_to_collection(Contact)
1
+ - content_for :toolbar_right do
2
+ = toolbar_actions do
3
+ = link_to_collection(Contact)
4
+ = link_to_new_resource(Company)
@@ -4,7 +4,7 @@
4
4
 
5
5
  = form_tag(resource_class, :method => :get, :class => 'field', :id => 'contact_search_form') do
6
6
  = label_tag 'contact_search_field', t(:search)
7
- = text_field_tag 'search', params[:search], :id => 'contact_search_field', :placeholder => t(:contact_search_placeholder)
7
+ = text_field_tag 'search', params[:search], :class => 'keyup-submit', :placeholder => t(:contact_search_placeholder)
8
8
 
9
9
  = form_tag(resource_class, :method => :get, :class => 'scope-selects field', :id => 'company_search_form') do
10
10
  = label_tag 'contact_company_select', Company.model_name.human
@@ -1,6 +1,8 @@
1
1
  = title @edit_title || e9_t(:edit_title)
2
2
 
3
- .actions
4
- = link_to 'View Contact', resource
3
+ - content_for :toolbar_right do
4
+ = toolbar_actions do
5
+ = link_to 'View Contact', resource
5
6
 
7
+ = render 'shared/admin/toolbar'
6
8
  = render 'form'
@@ -1,22 +1,17 @@
1
1
  = title (@index_title || e9_t(:index_title))
2
2
 
3
- .toolbar
4
- .toolbar-left
5
- #sidebar-email-form
6
- = render 'sidebar_email_form'
7
-
8
- .toolbar-middle
9
- #sidebar-search-form
10
- = render 'sidebar_search_form'
11
-
12
- .toolbar-right
13
- #sidebar-actions
14
- %fieldset
15
- %legend= "Manage"
16
- .manage-contacts
17
- = link_to_new_resource(Contact)
18
- .manage-company
19
- = link_to_collection(Company)
3
+ - content_for :toolbar_middle do
4
+ = toolbar_filters do
5
+ = render 'sidebar_search_form'
6
+
7
+ - content_for :toolbar_right do
8
+ = toolbar_actions do
9
+ = link_to_new_resource(Contact)
10
+ = link_to_collection(Company)
11
+ = toolbar_forms do
12
+ = render 'sidebar_email_form'
13
+
14
+ = render 'shared/admin/toolbar'
20
15
 
21
16
  #records_table
22
17
  = render 'table', :resources => collection
@@ -1,22 +1,24 @@
1
- .toolbar
2
- .toolbar-left
3
- .toolbar-middle
1
+ - content_for :toolbar_middle do
2
+ = toolbar_filters do
4
3
  = form_tag(resource_class, :method => :get, :class => 'scope-selects') do
5
- %fieldset
6
- %legend= t(:form_legend_filter_campaigns)
7
- %select{:name => 'status'}
4
+ .field
5
+ = label_tag 'deal-status', t(:filter_by, :attribute => resource_class.human_attribute_name(:status))
6
+ %select{:name => 'status', :id => 'deal-status'}
8
7
  = deal_status_select_options
9
- %select{:name => 'category'}
8
+ .field
9
+ = label_tag 'deal-category', t(:filter_by, :attribute => resource_class.human_attribute_name(:category))
10
+ %select{:name => 'category', :id => 'deal-category'}
10
11
  = deal_category_select_options
11
- %select{:name => 'owner'}
12
+ .field
13
+ = label_tag 'deal-owner', t(:filter_by, :attribute => resource_class.human_attribute_name(:owner))
14
+ %select{:name => 'owner', :id => 'deal-owner'}
12
15
  = deal_owner_select_options
13
- %select{:name => 'closed'}
16
+ .field
17
+ = label_tag 'deal-closed', t(:filter_by, :attribute => resource_class.human_attribute_name(:closed))
18
+ %select{:name => 'closed', :id => 'deal-closed'}
14
19
  = deal_date_select_options(:type => :in_month)
15
20
 
16
- .toolbar-right
17
- %fieldset
18
- %legend= t(:form_legend_manage)
19
- .manage-leads
20
- = link_to I18n.t('activerecord.links.index', :models => 'Leads'), leads_path
21
- .manage-new-deals
22
- = link_to_new_resource(Deal)
21
+ - content_for :toolbar_right do
22
+ = toolbar_actions do
23
+ = link_to I18n.t('activerecord.links.index', :models => 'Leads'), leads_path
24
+ = link_to_new_resource(Deal)
@@ -1,18 +1,21 @@
1
- .toolbar
2
- .toolbar-left
3
- .toolbar-middle
1
+ - content_for :toolbar_middle do
2
+ = toolbar_filters do
4
3
  = form_tag(resource_class, :method => :get, :class => 'scope-selects') do
5
- %fieldset
6
- %legend= t(:form_legend_filter_campaigns)
7
- %select{:name => 'offer'}
4
+ .field
5
+ = label_tag 'lead-offer', t(:filter_by, :attribute => resource_class.human_attribute_name(:offer))
6
+ %select{:name => 'offer', :id => 'lead-offer'}
8
7
  = deal_offer_select_options
9
- %select{:name => 'from'}
8
+ .field
9
+ = label_tag 'lead-from', t(:filter_by, :attribute => resource_class.human_attribute_name(:from))
10
+ %select{:name => 'from', :id => 'lead-from'}
10
11
  = deal_date_select_options
11
- %select{:name => 'until'}
12
+ .field
13
+ = label_tag 'lead-until', t(:filter_by, :attribute => resource_class.human_attribute_name(:until))
14
+ %select{:name => 'until', :id => 'lead-until'}
12
15
  = deal_date_select_options(:type => :until)
13
16
 
14
- .toolbar-right
15
- %fieldset
16
- %legend= t(:form_legend_manage)
17
- .manage-deals
18
- = link_to_collection(Deal)
17
+ - content_for :toolbar_right do
18
+ = toolbar_actions do
19
+ = link_to_collection(Deal)
20
+
21
+ = render 'shared/admin/toolbar'
@@ -1,3 +1,3 @@
1
- .toolbar
2
- .toolbar-right
1
+ - content_for :toolbar_right do
2
+ = toolbar_actions do
3
3
  = link_to_new_resource(Offer)
@@ -1,15 +1,22 @@
1
- .toolbar
2
- .toolbar-left
1
+ - content_for :toolbar_middle do
2
+ = toolbar_filters do
3
3
  = form_tag(resource_class, :method => :get, :class => 'scope-selects') do
4
- %select{:name => 'campaign'}
5
- = page_view_campaign_select_options
6
- %select{:name => 'new_visits'}
7
- = page_view_new_visit_select_options
8
- %select{:name => 'month'}
9
- = page_view_date_select_options(:type => :in_month)
10
-
11
- %input.contact-autocomplete{:type => :text, :style => @contact.blank? && '' || 'display:none', :placeholder => 'Enter Contact...'}
12
- .contact-select{:style => @contact.blank? && 'display:none' || ''}
13
- %span.content= @contact.try(:name_with_email)
14
- %input{:type => :hidden, :name => "contact", :value => @contact.try(:id)}
15
- %a{:class => :remove, :title => "Remove", :alt => "Remove"} Remove
4
+ .field
5
+ = label_tag 'pageview-campaign', t(:filter_by, :attribute => resource_class.human_attribute_name(:campaign))
6
+ %select{:name => 'campaign', :id => 'pageview-campaign'}
7
+ = page_view_campaign_select_options
8
+ .field
9
+ = label_tag 'pageview-events', t(:filter_by, :attribute => resource_class.human_attribute_name(:event))
10
+ %select{:name => 'new_visits', :id => 'pageview-events'}
11
+ = page_view_new_visit_select_options
12
+ .field
13
+ = label_tag 'pageview-month', t(:filter_by, :attribute => resource_class.human_attribute_name(:month))
14
+ %select{:name => 'month', :id => 'pageview-month'}
15
+ = page_view_date_select_options(:type => :in_month)
16
+ .field
17
+ = label_tag 'pageview-contact', t(:filter_by, :attribute => resource_class.human_attribute_name(:contact))
18
+ %input.contact-autocomplete{:type => :text, :style => @contact.blank? && '' || 'display:none', :placeholder => 'Enter Contact...', :id => 'pageview-contact'}
19
+ .contact-select{:style => @contact.blank? && 'display:none' || ''}
20
+ %span.content= @contact.try(:name_with_email)
21
+ %input{:type => :hidden, :name => "contact", :value => @contact.try(:id)}
22
+ %a{:class => :remove, :title => "Remove", :alt => "Remove"} Remove
@@ -1,6 +1,7 @@
1
1
  = title (@index_title || e9_t(:index_title))
2
2
 
3
3
  = render 'header'
4
+ = render 'shared/admin/toolbar'
4
5
 
5
6
  - if sortable_controller?
6
7
  = form_tag polymorphic_path([:update_order, resource_class]) do
@@ -1,3 +1,3 @@
1
- .toolbar
2
- .toolbar-right
1
+ - content_for :toolbar_right do
2
+ = toolbar_actions do
3
3
  = link_to 'View All Activity', page_views_url(:campaign => parent.id)
@@ -27,7 +27,7 @@ en:
27
27
  form_legend_search: Search Filters
28
28
  form_legend_contact: Contact Information
29
29
  form_legend_standard: Personal Information
30
- send_email_template: Send Email
30
+ send_email_template: Send
31
31
  send_email_newsletter: Send Newsletter
32
32
  contact_newsletter_confirmation: "The system will send the newsletter to all of the selected contacts (%{count}) if they are subscribed to receieve email. Are you sure you want to proceed?"
33
33
  no_contacts_notification: "Either you have selected no contacts, or all of those selected are opted out of bulk email. Please correct this and try again."
@@ -172,6 +172,9 @@ en:
172
172
  created_at: Date
173
173
  owner: Responsible
174
174
  won_deal_count: Won count
175
+ offer: Offer
176
+ from: From Date
177
+ until: Before Date
175
178
  offer:
176
179
  mailing_list_ids: Subscriptions
177
180
  template: Teaser Text
@@ -189,3 +192,5 @@ en:
189
192
  conversion_alert_email: Send Alert Email To
190
193
  success_page_text: Success Page Text
191
194
  custom_form_html: Custom Form Html
195
+ page_view:
196
+ month: Month Occurred
@@ -1,3 +1,3 @@
1
1
  module E9Crm
2
- VERSION = '0.1.33'
2
+ VERSION = '0.1.34'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: e9_crm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.33
4
+ version: 0.1.34
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-12 00:00:00.000000000Z
12
+ date: 2011-10-14 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: money
16
- requirement: &15422100 !ruby/object:Gem::Requirement
16
+ requirement: &17862500 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *15422100
24
+ version_requirements: *17862500
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: kramdown
27
- requirement: &15420860 !ruby/object:Gem::Requirement
27
+ requirement: &17861820 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0.13'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *15420860
35
+ version_requirements: *17861820
36
36
  description: ! "*NOTE his plugin requires the private e9_base CMS gem and WILL NOT
37
37
  WORK without it.*\n\nCRM Plugin for the e9 CMS\n=========================\n\nTo
38
38
  use, add as a gem and install by running:\n\n rails g e9_crm:install\n\nThen