From 451ef7f21f411d4bfe4138a71be269f566cd4647 Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Sat, 21 Mar 2009 00:22:59 +0000 Subject: Added several more plugin hooks: * :controller_custom_fields_new_after_save * :controller_custom_fields_edit_after_save * :view_custom_fields_form_upper_box * :view_custom_fields_form_* (type of custom field) * :view_issue_statuses_form * :view_issues_show_description_bottom * :view_my_account * :view_users_form #2599 git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2611 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/custom_fields/_form.rhtml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/views/custom_fields') diff --git a/app/views/custom_fields/_form.rhtml b/app/views/custom_fields/_form.rhtml index d26af9420..b9d7ec017 100644 --- a/app/views/custom_fields/_form.rhtml +++ b/app/views/custom_fields/_form.rhtml @@ -65,6 +65,7 @@ function toggle_custom_field_format() { :rows => 15 %>
<%= l(:text_custom_field_possible_values_info) %>

<%= @custom_field.field_format == 'bool' ? f.check_box(:default_value) : f.text_field(:default_value) %>

+<%= call_hook(:view_custom_fields_form_upper_box, :custom_field => @custom_field, :form => f) %>
@@ -94,5 +95,6 @@ when "IssueCustomField" %>

<%= f.check_box :is_required %>

<% end %> +<%= call_hook(:"view_custom_fields_form_#{@custom_field.type.to_s.underscore}", :custom_field => @custom_field, :form => f) %>
<%= javascript_tag "toggle_custom_field_format();" %> -- cgit v1.2.3