Skip to content

Commit

Permalink
Added view hooks to support [crm_tags] plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Dvorkin committed Sep 13, 2009
1 parent 0b2174e commit 3e97e92
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ It does not matter how slowly you go as long as you do not stop.
First they ignore you, then they laugh at you, then they fight you,
then you win. –- Mahatma Gandhi

Sat, Sep 12, 2009
---------------------------------------------------------------------
- Added view hooks to support [crm_tags] plugin.

Sun, Sep 6, 2009
---------------------------------------------------------------------
- Release 0.9.7.
Expand Down
1 change: 1 addition & 0 deletions app/views/accounts/_top_section.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
%td{ :valign => :top }
.label.top.req Assigned to:
= collection_select :account, :assigned_to, @users, :id, :full_name, { :include_blank => "Myself" }, { :style => "width:160px" }
= hook(:account_top_section_bottom, self, :f => f)
1 change: 1 addition & 0 deletions app/views/campaigns/_top_section.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@
%td{ :valign => :top }
.label Status:
= f.select :status, Setting.invert(:campaign_status), { :selected => @campaign.status ? @campaign.status.to_sym : :planned }, { :style => "width:250px" }
= hook(:campaign_top_section_bottom, self, :f => f)
1 change: 1 addition & 0 deletions app/views/contacts/_top_section.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@
%td{ :valign => :top }
.label Assigned to:
= collection_select :contact, :assigned_to, @users, :id, :full_name, { :include_blank => "Myself" }, { :style => "width:160px" }
= hook(:contact_top_section_bottom, self, :f => f)
1 change: 1 addition & 0 deletions app/views/leads/_top_section.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@
%td{ :valign => :top }
.label Phone:
= f.text_field :phone, :style => "width:240px"
= hook(:lead_top_section_bottom, self, :f => f)
1 change: 1 addition & 0 deletions app/views/opportunities/_top_section.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
%td{ :valign => :top }
.label.req Assigned to:
= collection_select :opportunity, :assigned_to, @users, :id, :full_name, { :include_blank => "Myself" }, { :style => "width:160px" }
= hook(:opportunity_top_section_bottom, self, :f => f)

3 changes: 2 additions & 1 deletion lib/fat_free_crm/plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ def initialize(id, initializer)
args.empty? ? instance_variable_get("@#{name}") : instance_variable_set("@#{name}", args.first)
end
end

alias :authors :author

# Preload other plugins that are required by the plugin being loaded.
#--------------------------------------------------------------------------
def dependencies(*plugins)
Expand Down

0 comments on commit 3e97e92

Please sign in to comment.