@@ -34,6 +34,7 class CustomFieldsController < ApplicationController | |||||
34 |
|
34 | |||
35 | if request.post? and @custom_field.save |
|
35 | if request.post? and @custom_field.save | |
36 | flash[:notice] = l(:notice_successful_create) |
|
36 | flash[:notice] = l(:notice_successful_create) | |
|
37 | call_hook(:controller_custom_fields_new_after_save, :params => params, :custom_field => @custom_field) | |||
37 | redirect_to :action => 'index', :tab => @custom_field.class.name |
|
38 | redirect_to :action => 'index', :tab => @custom_field.class.name | |
38 | end |
|
39 | end | |
39 | @trackers = Tracker.find(:all, :order => 'position') |
|
40 | @trackers = Tracker.find(:all, :order => 'position') | |
@@ -43,6 +44,7 class CustomFieldsController < ApplicationController | |||||
43 | @custom_field = CustomField.find(params[:id]) |
|
44 | @custom_field = CustomField.find(params[:id]) | |
44 | if request.post? and @custom_field.update_attributes(params[:custom_field]) |
|
45 | if request.post? and @custom_field.update_attributes(params[:custom_field]) | |
45 | flash[:notice] = l(:notice_successful_update) |
|
46 | flash[:notice] = l(:notice_successful_update) | |
|
47 | call_hook(:controller_custom_fields_edit_after_save, :params => params, :custom_field => @custom_field) | |||
46 | redirect_to :action => 'index', :tab => @custom_field.class.name |
|
48 | redirect_to :action => 'index', :tab => @custom_field.class.name | |
47 | end |
|
49 | end | |
48 | @trackers = Tracker.find(:all, :order => 'position') |
|
50 | @trackers = Tracker.find(:all, :order => 'position') |
@@ -65,6 +65,7 function toggle_custom_field_format() { | |||||
65 | :rows => 15 %> |
|
65 | :rows => 15 %> | |
66 | <br /><em><%= l(:text_custom_field_possible_values_info) %></em></p> |
|
66 | <br /><em><%= l(:text_custom_field_possible_values_info) %></em></p> | |
67 | <p><%= @custom_field.field_format == 'bool' ? f.check_box(:default_value) : f.text_field(:default_value) %></p> |
|
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 | </div> |
|
69 | </div> | |
69 |
|
70 | |||
70 | <div class="box"> |
|
71 | <div class="box"> | |
@@ -94,5 +95,6 when "IssueCustomField" %> | |||||
94 | <p><%= f.check_box :is_required %></p> |
|
95 | <p><%= f.check_box :is_required %></p> | |
95 |
|
96 | |||
96 | <% end %> |
|
97 | <% end %> | |
|
98 | <%= call_hook(:"view_custom_fields_form_#{@custom_field.type.to_s.underscore}", :custom_field => @custom_field, :form => f) %> | |||
97 | </div> |
|
99 | </div> | |
98 | <%= javascript_tag "toggle_custom_field_format();" %> |
|
100 | <%= javascript_tag "toggle_custom_field_format();" %> |
@@ -11,5 +11,7 | |||||
11 | <p><label for="issue_status_is_default"><%=l(:field_is_default)%></label> |
|
11 | <p><label for="issue_status_is_default"><%=l(:field_is_default)%></label> | |
12 | <%= check_box 'issue_status', 'is_default' %></p> |
|
12 | <%= check_box 'issue_status', 'is_default' %></p> | |
13 |
|
13 | |||
|
14 | <%= call_hook(:view_issue_statuses_form, :issue_status => @issue_status) %> | |||
|
15 | ||||
14 | <!--[eoform:issue_status]--> |
|
16 | <!--[eoform:issue_status]--> | |
15 | </div> No newline at end of file |
|
17 | </div> |
@@ -69,6 +69,8 end %> | |||||
69 |
|
69 | |||
70 | <%= link_to_attachments @issue %> |
|
70 | <%= link_to_attachments @issue %> | |
71 |
|
71 | |||
|
72 | <%= call_hook(:view_issues_show_description_bottom, :issue => @issue) %> | |||
|
73 | ||||
72 | <% if authorize_for('issue_relations', 'new') || @issue.relations.any? %> |
|
74 | <% if authorize_for('issue_relations', 'new') || @issue.relations.any? %> | |
73 | <hr /> |
|
75 | <hr /> | |
74 | <div id="relations"> |
|
76 | <div id="relations"> |
@@ -22,6 +22,7 | |||||
22 | <% @user.custom_field_values.select(&:editable?).each do |value| %> |
|
22 | <% @user.custom_field_values.select(&:editable?).each do |value| %> | |
23 | <p><%= custom_field_tag_with_label :user, value %></p> |
|
23 | <p><%= custom_field_tag_with_label :user, value %></p> | |
24 | <% end %> |
|
24 | <% end %> | |
|
25 | <%= call_hook(:view_my_account, :user => @user, :form => f) %> | |||
25 | </div> |
|
26 | </div> | |
26 |
|
27 | |||
27 | <%= submit_tag l(:button_save) %> |
|
28 | <%= submit_tag l(:button_save) %> |
@@ -16,6 +16,7 | |||||
16 | <% end %> |
|
16 | <% end %> | |
17 |
|
17 | |||
18 | <p><%= f.check_box :admin, :disabled => (@user == User.current) %></p> |
|
18 | <p><%= f.check_box :admin, :disabled => (@user == User.current) %></p> | |
|
19 | <%= call_hook(:view_users_form, :user => @user, :form => f) %> | |||
19 | </div> |
|
20 | </div> | |
20 |
|
21 | |||
21 | <div class="box"> |
|
22 | <div class="box"> |
General Comments 0
You need to be logged in to leave comments.
Login now