new_hooks.diff

Thomas Löber, 2009-01-27 11:01

Download (2.21 KB)

View differences:

app/views/custom_fields/_form.rhtml (Arbeitskopie)
64 64
																																			 :rows => 15 %>
65 65
<br /><em><%= l(:text_custom_field_possible_values_info) %></em></p>
66 66
<p><%= @custom_field.field_format == 'bool' ? f.check_box(:default_value) : f.text_field(:default_value) %></p>
67
<%= call_hook(:view_custom_fields_form_upper_box, :custom_field => @custom_field, :form => f) %>
67 68
</div>
68 69

  
69 70
<div class="box">
......
93 94
    <p><%= f.check_box :is_required %></p>
94 95

  
95 96
<% end %>
97
<%= call_hook(:"view_custom_fields_form_#{@custom_field.type.to_s.underscore}", :custom_field => @custom_field, :form => f) %>
96 98
</div>
97 99
<%= javascript_tag "toggle_custom_field_format();" %>
app/views/issue_statuses/_form.rhtml (Arbeitskopie)
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 17
</div>
app/views/my/account.rhtml (Arbeitskopie)
19 19
<% @user.custom_field_values.select(&:editable?).each do |value| %>
20 20
	<p><%= custom_field_tag_with_label :user, value %></p>
21 21
<% end %>
22
<%= call_hook(:view_my_account, :user => @user, :form => f) %>
22 23
</div>
23 24

  
24 25
<%= submit_tag l(:button_save) %>
app/views/users/_form.rhtml (Arbeitskopie)
13 13
<% end %>
14 14

  
15 15
<p><%= f.check_box :admin, :disabled => (@user == User.current) %></p>
16
<%= call_hook(:view_users_form, :user => @user, :form => f) %>
16 17
</div>
17 18

  
18 19
<div class="box">