Patch #2599 » new_hooks.diff
| app/views/custom_fields/_form.rhtml (Arbeitskopie) | ||
|---|---|---|
|
:rows => 15 %>
|
||
|
<br /><em><%= l(:text_custom_field_possible_values_info) %></em></p>
|
||
|
<p><%= @custom_field.field_format == 'bool' ? f.check_box(:default_value) : f.text_field(:default_value) %></p>
|
||
|
<%= call_hook(:view_custom_fields_form_upper_box, :custom_field => @custom_field, :form => f) %>
|
||
|
</div>
|
||
|
<div class="box">
|
||
| ... | ... | |
|
<p><%= f.check_box :is_required %></p>
|
||
|
<% end %>
|
||
|
<%= call_hook(:"view_custom_fields_form_#{@custom_field.type.to_s.underscore}", :custom_field => @custom_field, :form => f) %>
|
||
|
</div>
|
||
|
<%= javascript_tag "toggle_custom_field_format();" %>
|
||
| app/views/issue_statuses/_form.rhtml (Arbeitskopie) | ||
|---|---|---|
|
<p><label for="issue_status_is_default"><%=l(:field_is_default)%></label>
|
||
|
<%= check_box 'issue_status', 'is_default' %></p>
|
||
|
<%= call_hook(:view_issue_statuses_form, :issue_status => @issue_status) %>
|
||
|
<!--[eoform:issue_status]-->
|
||
|
</div>
|
||
| app/views/my/account.rhtml (Arbeitskopie) | ||
|---|---|---|
|
<% @user.custom_field_values.select(&:editable?).each do |value| %>
|
||
|
<p><%= custom_field_tag_with_label :user, value %></p>
|
||
|
<% end %>
|
||
|
<%= call_hook(:view_my_account, :user => @user, :form => f) %>
|
||
|
</div>
|
||
|
<%= submit_tag l(:button_save) %>
|
||
| app/views/users/_form.rhtml (Arbeitskopie) | ||
|---|---|---|
|
<% end %>
|
||
|
<p><%= f.check_box :admin, :disabled => (@user == User.current) %></p>
|
||
|
<%= call_hook(:view_users_form, :user => @user, :form => f) %>
|
||
|
</div>
|
||
|
<div class="box">
|
||