e9_crm 0.1.25 → 0.1.26
Sign up to get free protection for your applications and to get access to all the features.
- data/app/views/e9_crm/campaigns/_header.html.haml +14 -9
- data/app/views/e9_crm/companies/_header.html.haml +8 -2
- data/app/views/e9_crm/dated_costs/_dated_cost.html.haml +4 -4
- data/app/views/e9_crm/dated_costs/_form.html.haml +0 -1
- data/app/views/e9_crm/dated_costs/_form_inner.html.haml +16 -14
- data/app/views/e9_crm/dated_costs/edit.html.haml +1 -1
- data/app/views/e9_crm/dated_costs/edit.js.erb +2 -1
- data/app/views/e9_crm/dated_costs/index.html.haml +17 -10
- data/app/views/e9_crm/deals/_header.html.haml +17 -10
- data/app/views/e9_crm/deals/_leads_header.html.haml +13 -7
- data/app/views/e9_crm/email_templates/_header.html.haml +5 -1
- data/config/locales/e9.en.yml +2 -0
- data/config/locales/en.yml +5 -1
- data/lib/e9_crm/version.rb +1 -1
- metadata +2 -2
@@ -1,16 +1,21 @@
|
|
1
1
|
.toolbar
|
2
2
|
.toolbar-left
|
3
|
+
.toolbar-middle
|
3
4
|
= form_tag(resource_class, :method => :get, :class => 'scope-selects') do
|
4
|
-
%
|
5
|
-
=
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
5
|
+
%fieldset
|
6
|
+
%legend= t(:form_legend_filter_campaigns)
|
7
|
+
%select{:name => 'type'}
|
8
|
+
= campaign_type_select_options
|
9
|
+
%select{:name => 'group'}
|
10
|
+
= campaign_group_select_options
|
11
|
+
%select{:name => 'active'}
|
12
|
+
= campaign_active_select_options
|
10
13
|
|
11
14
|
.toolbar-right
|
12
15
|
= form_tag new_campaign_path, :method => :get, :id => 'new_campaign_form' do
|
13
|
-
|
14
|
-
|
15
|
-
=
|
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)
|
16
21
|
= submit_tag t(:go), :name => nil
|
@@ -1,4 +1,10 @@
|
|
1
1
|
.toolbar
|
2
|
+
.toolbar-left
|
3
|
+
.toolbar-middle
|
2
4
|
.toolbar-right
|
3
|
-
|
4
|
-
|
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,8 +1,8 @@
|
|
1
|
-
.dated-cost{:id => "dated_cost_#{dated_cost.id}"}
|
2
|
-
|
1
|
+
%tr.dated-cost{:id => "dated_cost_#{dated_cost.id}"}
|
2
|
+
%td.field
|
3
3
|
= l(dated_cost.date)
|
4
|
-
|
4
|
+
%td.field.cost{':data-cost' => dated_cost.cost.to_f}
|
5
5
|
= dated_cost.cost
|
6
|
-
|
6
|
+
%td.actions
|
7
7
|
= link_to_edit_resource(dated_cost, :remote => true)
|
8
8
|
= link_to_destroy_resource(dated_cost, :remote => true)
|
@@ -1,15 +1,17 @@
|
|
1
1
|
- id = f.object.persisted? ? f.object.id : @temp_id
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
.
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
.
|
15
|
-
|
2
|
+
|
3
|
+
%tr
|
4
|
+
%td.field.date-picker
|
5
|
+
- if temp_id = f.object.temp_id || @temp_id
|
6
|
+
= f.hidden_field :temp_id, :value => temp_id
|
7
|
+
- fid = "dated_cost_date_#{id}"
|
8
|
+
- unless request.xhr?
|
9
|
+
= f.label :date, nil, :class => :req, :for => id
|
10
|
+
= f.text_field :date, :class => 'date-picker', :value => l(f.object.date), :id => id
|
11
|
+
%td.field.cost
|
12
|
+
- fid = "dated_cost_cost_#{id}"
|
13
|
+
- unless request.xhr?
|
14
|
+
= f.label :cost, nil, :class => :req, :for => id
|
15
|
+
= f.text_field :cost, :id => id, :value => f.object.cost.to_money
|
16
|
+
%td.actions
|
17
|
+
= f.submit
|
@@ -1 +1,2 @@
|
|
1
|
-
$("#dated_cost_<%= resource.id %>").html("<%= escape_javascript(render('form')) %>");
|
1
|
+
$("#dated_cost_<%= resource.id %>").html("<%= escape_javascript(render('form')) %>");
|
2
|
+
// .errors= resource_error_messages!
|
@@ -1,15 +1,22 @@
|
|
1
1
|
= title @index_title || e9_t(:index_title)
|
2
|
+
.toolbar
|
3
|
+
.toolbar-left
|
4
|
+
.toolbar-middle
|
5
|
+
.toolbar-right
|
6
|
+
= link_to_new_resource(resource_class, :class => 'new-resource')
|
2
7
|
|
3
|
-
%
|
4
|
-
.dated-costs
|
5
|
-
.dated-cost-labels
|
6
|
-
.field
|
8
|
+
%table.records
|
9
|
+
%thead.dated-costs
|
10
|
+
%tr.dated-cost-labels
|
11
|
+
%th.field
|
7
12
|
= resource_class.human_attribute_name(:date)
|
8
|
-
.field.cost
|
13
|
+
%th.field.cost
|
9
14
|
= resource_class.human_attribute_name(:cost)
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
+
%th= e9_t(:actions)
|
16
|
+
%tbody
|
17
|
+
- if collection.empty?
|
18
|
+
%tr
|
19
|
+
%td{:colspan => 7}= e9_t(:no_records_text)
|
20
|
+
- else
|
21
|
+
= render collection
|
15
22
|
|
@@ -1,15 +1,22 @@
|
|
1
1
|
.toolbar
|
2
2
|
.toolbar-left
|
3
|
+
.toolbar-middle
|
3
4
|
= form_tag(resource_class, :method => :get, :class => 'scope-selects') do
|
4
|
-
%
|
5
|
-
=
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
5
|
+
%fieldset
|
6
|
+
%legend= t(:form_legend_filter_campaigns)
|
7
|
+
%select{:name => 'status'}
|
8
|
+
= deal_status_select_options
|
9
|
+
%select{:name => 'category'}
|
10
|
+
= deal_category_select_options
|
11
|
+
%select{:name => 'owner'}
|
12
|
+
= deal_owner_select_options
|
13
|
+
%select{:name => 'closed'}
|
14
|
+
= deal_date_select_options(:type => :in_month)
|
12
15
|
|
13
16
|
.toolbar-right
|
14
|
-
|
15
|
-
|
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)
|
@@ -1,12 +1,18 @@
|
|
1
1
|
.toolbar
|
2
2
|
.toolbar-left
|
3
|
+
.toolbar-middle
|
3
4
|
= form_tag(resource_class, :method => :get, :class => 'scope-selects') do
|
4
|
-
%
|
5
|
-
=
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
5
|
+
%fieldset
|
6
|
+
%legend= t(:form_legend_filter_campaigns)
|
7
|
+
%select{:name => 'offer'}
|
8
|
+
= deal_offer_select_options
|
9
|
+
%select{:name => 'from'}
|
10
|
+
= deal_date_select_options
|
11
|
+
%select{:name => 'until'}
|
12
|
+
= deal_date_select_options(:type => :until)
|
10
13
|
|
11
14
|
.toolbar-right
|
12
|
-
|
15
|
+
%fieldset
|
16
|
+
%legend= t(:form_legend_manage)
|
17
|
+
.manage-deals
|
18
|
+
= link_to_collection(Deal)
|
data/config/locales/e9.en.yml
CHANGED
@@ -11,6 +11,8 @@ en:
|
|
11
11
|
index_title_with_search: "%{models} matching \"%{search}\""
|
12
12
|
index_title_with_tags: "%{models} tagged \"%{tagged}\""
|
13
13
|
index_title_with_search_and_tags: "%{models} tagged \"%{tagged}\", matching \"%{search}\""
|
14
|
+
form_legend_email: Email Actions
|
15
|
+
form_legend_search: Search Filters
|
14
16
|
form_legend_contact: Contact Information
|
15
17
|
form_legend_standard: Personal Information
|
16
18
|
send_email_template: Send Email
|
data/config/locales/en.yml
CHANGED
@@ -10,7 +10,11 @@ en:
|
|
10
10
|
deal_owner_legend: Responsible
|
11
11
|
no_deal_owner: No one is responsible
|
12
12
|
deal_contact_legend: Associated Contacts
|
13
|
-
|
13
|
+
|
14
|
+
#legend text for toolbar in admin
|
15
|
+
form_legend_manage: Manage
|
16
|
+
form_legend_filter_campaigns: Filters
|
17
|
+
|
14
18
|
actions: Actions
|
15
19
|
clear: Clear
|
16
20
|
clear_all_filters: Clear All Filters
|
data/lib/e9_crm/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: e9_crm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.26
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Travis Cox
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-09-
|
13
|
+
date: 2011-09-29 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|