e9_crm 0.1.25 → 0.1.26

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,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
- %select{:name => 'type'}
5
- = campaign_type_select_options
6
- %select{:name => 'group'}
7
- = campaign_group_select_options
8
- %select{:name => 'active'}
9
- = campaign_active_select_options
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
- = label_tag 'new_campaign_type_select', t('activerecord.links.new', :model => Campaign.model_name.human)
14
- %select{:name => 'type', :id => 'new_campaign_type_select'}
15
- = campaign_type_select_options(false)
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
- = link_to_new_resource(Company)
4
- = link_to_collection(Contact)
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
- .field
1
+ %tr.dated-cost{:id => "dated_cost_#{dated_cost.id}"}
2
+ %td.field
3
3
  = l(dated_cost.date)
4
- .field.cost{':data-cost' => dated_cost.cost.to_f}
4
+ %td.field.cost{':data-cost' => dated_cost.cost.to_f}
5
5
  = dated_cost.cost
6
- .actions
6
+ %td.actions
7
7
  = link_to_edit_resource(dated_cost, :remote => true)
8
8
  = link_to_destroy_resource(dated_cost, :remote => true)
@@ -1,3 +1,2 @@
1
1
  = form_for resource, :url => polymorphic_path([parent, resource]), :remote => request.xhr? do |f|
2
- .errors= resource_error_messages!
3
2
  = render 'form_inner', :f => f
@@ -1,15 +1,17 @@
1
1
  - id = f.object.persisted? ? f.object.id : @temp_id
2
- .field.date-picker
3
- - if temp_id = f.object.temp_id || @temp_id
4
- = f.hidden_field :temp_id, :value => temp_id
5
- - fid = "dated_cost_date_#{id}"
6
- - unless request.xhr?
7
- = f.label :date, nil, :class => :req, :for => id
8
- = f.text_field :date, :class => 'date-picker', :value => l(f.object.date), :id => id
9
- .field.cost
10
- - fid = "dated_cost_cost_#{id}"
11
- - unless request.xhr?
12
- = f.label :cost, nil, :class => :req, :for => id
13
- = f.text_field :cost, :id => id, :value => f.object.cost.to_money
14
- .actions
15
- = f.submit
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,3 +1,3 @@
1
1
  - id = resource.persisted? ? "dated_cost_#{resource.id}" : nil
2
- .dated-cost{:id => id }
2
+ %td.dated-cost{:id => id }
3
3
  = render 'form'
@@ -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
- %fieldset
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
- = render collection
12
-
13
- .actions
14
- = link_to_new_resource(resource_class, :class => 'new-resource')
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
- %select{:name => 'status'}
5
- = deal_status_select_options
6
- %select{:name => 'category'}
7
- = deal_category_select_options
8
- %select{:name => 'owner'}
9
- = deal_owner_select_options
10
- %select{:name => 'closed'}
11
- = deal_date_select_options(:type => :in_month)
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
- = link_to I18n.t('activerecord.links.index', :models => 'Leads'), leads_path
15
- = link_to_new_resource(Deal)
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
- %select{:name => 'offer'}
5
- = deal_offer_select_options
6
- %select{:name => 'from'}
7
- = deal_date_select_options
8
- %select{:name => 'until'}
9
- = deal_date_select_options(:type => :until)
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
- = link_to_collection(Deal)
15
+ %fieldset
16
+ %legend= t(:form_legend_manage)
17
+ .manage-deals
18
+ = link_to_collection(Deal)
@@ -1,3 +1,7 @@
1
1
  .toolbar
2
+ .toolbar-left
3
+ .toolbar-middle
2
4
  .toolbar-right
3
- = link_to_new_resource(EmailTemplate)
5
+ %fieldset
6
+ %legend= t(:form_legend_manage)
7
+ = link_to_new_resource(EmailTemplate)
@@ -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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module E9Crm
2
- VERSION = '0.1.25'
2
+ VERSION = '0.1.26'
3
3
  end
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.25
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-26 00:00:00 Z
13
+ date: 2011-09-29 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails