Revision 2611
Added by Eric Davis over 16 years ago
trunk/app/controllers/custom_fields_controller.rb | ||
---|---|---|
34 | 34 |
|
35 | 35 |
if request.post? and @custom_field.save |
36 | 36 |
flash[:notice] = l(:notice_successful_create) |
37 |
call_hook(:controller_custom_fields_new_after_save, :params => params, :custom_field => @custom_field) |
|
37 | 38 |
redirect_to :action => 'index', :tab => @custom_field.class.name |
38 | 39 |
end |
39 | 40 |
@trackers = Tracker.find(:all, :order => 'position') |
... | ... | |
43 | 44 |
@custom_field = CustomField.find(params[:id]) |
44 | 45 |
if request.post? and @custom_field.update_attributes(params[:custom_field]) |
45 | 46 |
flash[:notice] = l(:notice_successful_update) |
47 |
call_hook(:controller_custom_fields_edit_after_save, :params => params, :custom_field => @custom_field) |
|
46 | 48 |
redirect_to :action => 'index', :tab => @custom_field.class.name |
47 | 49 |
end |
48 | 50 |
@trackers = Tracker.find(:all, :order => 'position') |
trunk/app/views/custom_fields/_form.rhtml | ||
---|---|---|
65 | 65 |
:rows => 15 %> |
66 | 66 |
<br /><em><%= l(:text_custom_field_possible_values_info) %></em></p> |
67 | 67 |
<p><%= @custom_field.field_format == 'bool' ? f.check_box(:default_value) : f.text_field(:default_value) %></p> |
68 |
<%= call_hook(:view_custom_fields_form_upper_box, :custom_field => @custom_field, :form => f) %> |
|
68 | 69 |
</div> |
69 | 70 |
|
70 | 71 |
<div class="box"> |
... | ... | |
94 | 95 |
<p><%= f.check_box :is_required %></p> |
95 | 96 |
|
96 | 97 |
<% end %> |
98 |
<%= call_hook(:"view_custom_fields_form_#{@custom_field.type.to_s.underscore}", :custom_field => @custom_field, :form => f) %> |
|
97 | 99 |
</div> |
98 | 100 |
<%= javascript_tag "toggle_custom_field_format();" %> |
trunk/app/views/issue_statuses/_form.rhtml | ||
---|---|---|
11 | 11 |
<p><label for="issue_status_is_default"><%=l(:field_is_default)%></label> |
12 | 12 |
<%= check_box 'issue_status', 'is_default' %></p> |
13 | 13 |
|
14 |
<%= call_hook(:view_issue_statuses_form, :issue_status => @issue_status) %> |
|
15 |
|
|
14 | 16 |
<!--[eoform:issue_status]--> |
15 |
</div> |
|
17 |
</div> |
trunk/app/views/issues/show.rhtml | ||
---|---|---|
69 | 69 |
|
70 | 70 |
<%= link_to_attachments @issue %> |
71 | 71 |
|
72 |
<%= call_hook(:view_issues_show_description_bottom, :issue => @issue) %> |
|
73 |
|
|
72 | 74 |
<% if authorize_for('issue_relations', 'new') || @issue.relations.any? %> |
73 | 75 |
<hr /> |
74 | 76 |
<div id="relations"> |
trunk/app/views/my/account.rhtml | ||
---|---|---|
22 | 22 |
<% @user.custom_field_values.select(&:editable?).each do |value| %> |
23 | 23 |
<p><%= custom_field_tag_with_label :user, value %></p> |
24 | 24 |
<% end %> |
25 |
<%= call_hook(:view_my_account, :user => @user, :form => f) %> |
|
25 | 26 |
</div> |
26 | 27 |
|
27 | 28 |
<%= submit_tag l(:button_save) %> |
trunk/app/views/users/_form.rhtml | ||
---|---|---|
16 | 16 |
<% end %> |
17 | 17 |
|
18 | 18 |
<p><%= f.check_box :admin, :disabled => (@user == User.current) %></p> |
19 |
<%= call_hook(:view_users_form, :user => @user, :form => f) %> |
|
19 | 20 |
</div> |
20 | 21 |
|
21 | 22 |
<div class="box"> |
Also available in: Unified diff
Added several more plugin hooks:
#2599