Skip to content

Commit

Permalink
Added new form hook
Browse files Browse the repository at this point in the history
  • Loading branch information
steveyken committed Aug 19, 2014
1 parent 478b6d0 commit bdc9123
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/views/accounts/_edit.html.haml 100644 → 100755
Expand Up @@ -10,6 +10,7 @@
= render "accounts/contact_info", :f => f, :edit => true
= render "fields/groups", :f => f, :edit => true
= render "entities/permissions", :f => f, :edit => true, :entity => @account
= hook(:account_form, self, {f: f, entity: @account}) {}

.buttonbar
- if Setting.compound_address
Expand Down
1 change: 1 addition & 0 deletions app/views/accounts/_new.html.haml 100644 → 100755
Expand Up @@ -10,6 +10,7 @@
= render "accounts/contact_info", :f => f
= render "fields/groups", :f => f
= render "entities/permissions", :f => f, :entity => @account
= hook(:account_form, self, {f: f, entity: @account}) {}

.buttonbar
- if Setting.compound_address
Expand Down
1 change: 1 addition & 0 deletions app/views/campaigns/_edit.html.haml 100644 → 100755
Expand Up @@ -10,6 +10,7 @@
= render "campaigns/objectives", :f => f, :edit => true
= render "fields/groups", :f => f, :edit => true
= render "entities/permissions", :f => f, :edit => true, :entity => @campaign
= hook(:campaign_form, self, {f: f, entity: @campaign}) {}

.buttonbar
= f.submit t(:save_campaign)
Expand Down
1 change: 1 addition & 0 deletions app/views/campaigns/_new.html.haml 100644 → 100755
Expand Up @@ -10,6 +10,7 @@
= render "campaigns/objectives", :f => f
= render "fields/groups", :f => f
= render "entities/permissions", :f => f, :entity => @campaign
= hook(:campaign_form, self, {f: f, entity: @campaign}) {}

.buttonbar
= f.submit t(:create_campaign)
Expand Down
1 change: 1 addition & 0 deletions app/views/contacts/_edit.html.haml 100644 → 100755
Expand Up @@ -11,6 +11,7 @@
= render "contacts/web", :f => f, :edit => true
= render "fields/groups", :f => f, :edit => true
= render "entities/permissions", :f => f, :edit => true, :entity => @contact
= hook(:contact_form, self, {f: f, entity: @contact}) {}

.buttonbar
= f.submit t(:save_contact), :onclick => "crm.save_contact()"
Expand Down
1 change: 1 addition & 0 deletions app/views/contacts/_new.html.haml 100644 → 100755
Expand Up @@ -12,6 +12,7 @@
= render "contacts/web", :f => f
= render "fields/groups", :f => f
= render "entities/permissions", :f => f, :entity => @contact
= hook(:contact_form, self, {f: f, entity: @contact}) {}

.buttonbar
= f.submit t(:create_contact), :onclick => "crm.create_contact()"
Expand Down
Empty file modified app/views/contacts/show.html.haml 100644 → 100755
Empty file.
1 change: 1 addition & 0 deletions app/views/leads/_edit.html.haml 100644 → 100755
Expand Up @@ -12,6 +12,7 @@
= render "leads/web", :f => f, :edit => true
= render "fields/groups", :f => f, :edit => true
= render "entities/permissions", :f => f, :edit => true, :entity => @lead
= hook(:lead_form, self, {f: f, entity: @lead}) {}

.buttonbar
- if Setting.compound_address
Expand Down
1 change: 1 addition & 0 deletions app/views/leads/_new.html.haml 100644 → 100755
Expand Up @@ -13,6 +13,7 @@
= render "leads/web", :f => f
= render "fields/groups", :f => f
= render "entities/permissions", :f => f, :entity => @lead
= hook(:lead_form, self, {f: f, entity: @lead}) {}

.buttonbar
- if Setting.compound_address
Expand Down
2 changes: 1 addition & 1 deletion app/views/opportunities/_edit.html.haml
Expand Up @@ -10,7 +10,7 @@
= render "fields/edit_custom_field_group", :f => f, :edit => true
= render "fields/groups", :f => f, :edit => true
= render "entities/permissions", :f => f, :edit => true, :entity => @opportunity
= hook(:opportunity_form_section, self, :f => f) {}
= hook(:opportunity_form, self, {f: f, entity: @opportunity}) {}

.buttonbar
= f.submit t(:save_opportunity), :onclick => %/$("#account_assigned_to").val($("#opportunity_assigned_to").val());/
Expand Down
1 change: 1 addition & 0 deletions app/views/opportunities/_new.html.haml 100644 → 100755
Expand Up @@ -10,6 +10,7 @@
= render "shared/add_comment", :f => f
= render "fields/groups", :f => f
= render "entities/permissions", :f => f, :entity => @opportunity
= hook(:opportunity_form, self, {f: f, entity: @opportunity}) {}

.buttonbar
= f.submit t(:create_opportunity), :onclick => %/$("#account_assigned_to").val($("#opportunity_assigned_to").val()); if ($("#account_id").css('display') != 'none') { $("#account_id").enable(); }/
Expand Down

0 comments on commit bdc9123

Please sign in to comment.