Fixed bulk edit hook. Started on hooks for members. #1147

This commit is contained in:
Eric Davis
2008-05-27 17:13:05 -07:00
parent 6835ec59dc
commit d05de4ff11
3 changed files with 34 additions and 2 deletions
+5
View File
@@ -32,4 +32,9 @@ class BudgetIssueHook
return help.content_tag(:p, "<label>#{GLoc.l(:field_deliverable)}: " + select + "</label>")
end
def self.issue_bulk_edit_save(context = { })
context[:issue].deliverable = Deliverable.find(context[:params][:deliverable_id]) unless context[:params][:deliverable_id].blank?
return ''
end
end
+26
View File
@@ -0,0 +1,26 @@
class BudgetProjectHook
# http://snippets.dzone.com/posts/show/1799
def self.help
Helper.instance
end
class Helper
include Singleton
include ActionView::Helpers::TagHelper
include ActionView::Helpers::FormHelper
include ActionView::Helpers::FormTagHelper
include ActionView::Helpers::FormOptionsHelper
end
# TODO: Complete
def self.member_list_header(context ={ })
return "<th>#{GLoc.l(:label_member_rate) }</th>"
end
# TODO: Complete
def self.member_list_column_three(context = { })
return '<td align="center">Nothing yet</td>'
end
end