2006-06-28 22:11:03 +04:00
|
|
|
<%= error_messages_for 'custom_field' %>
|
|
|
|
|
|
|
|
<!--[form:custom_field]-->
|
2006-07-29 13:32:58 +04:00
|
|
|
<div class="box">
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><label for="custom_field_name"><%=l(:field_name)%><span class="required"> *</span></label>
|
2006-07-29 13:32:58 +04:00
|
|
|
<%= text_field 'custom_field', 'name' %></p>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><label for="custom_field_field_format"><%=l(:field_field_format)%></label>
|
2006-07-29 13:32:58 +04:00
|
|
|
<%= select("custom_field", "field_format", custom_field_formats_for_select) %></p>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><label for="custom_field_min_length"><%=l(:label_min_max_length)%></label>
|
2006-06-28 22:11:03 +04:00
|
|
|
<%= text_field 'custom_field', 'min_length', :size => 5 %> -
|
2006-09-02 17:33:23 +04:00
|
|
|
<%= text_field 'custom_field', 'max_length', :size => 5 %><br>(<%=l(:text_min_max_length_info)%>)</p>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><label for="custom_field_regexp"><%=l(:field_regexp)%></label>
|
|
|
|
<%= text_field 'custom_field', 'regexp', :size => 50 %><br>(<%=l(:text_regexp_info)%>)</p>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><label for="custom_field_possible_values"><%=l(:field_possible_values)%></label>
|
|
|
|
<%= text_area 'custom_field', 'possible_values', :rows => 5, :cols => 60 %><br>(<%=l(:text_possible_values_info)%>)</p>
|
2006-07-29 13:32:58 +04:00
|
|
|
</div>
|
2006-06-28 22:11:03 +04:00
|
|
|
<!--[eoform:custom_field]-->
|
|
|
|
|
2006-07-29 13:32:58 +04:00
|
|
|
<div class="box">
|
|
|
|
<% case type.to_s
|
|
|
|
when "IssueCustomField" %>
|
|
|
|
|
|
|
|
<fieldset><legend><%=l(:label_tracker_plural)%></legend>
|
|
|
|
<% for tracker in @trackers %>
|
|
|
|
<input type="checkbox"
|
|
|
|
name="tracker_ids[]"
|
|
|
|
value="<%= tracker.id %>"
|
|
|
|
<%if @custom_field.trackers.include? tracker%>checked="checked"<%end%>
|
|
|
|
> <%= tracker.name %>
|
|
|
|
<% end %></fieldset>
|
|
|
|
|
|
|
|
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><label for="custom_field_is_required"><%=l(:field_is_required)%></label>
|
|
|
|
<%= check_box 'custom_field', 'is_required' %></p>
|
2006-07-29 13:32:58 +04:00
|
|
|
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><label for="custom_field_is_for_all"><%=l(:field_is_for_all)%></label>
|
|
|
|
<%= check_box 'custom_field', 'is_for_all' %></p>
|
2006-07-29 13:32:58 +04:00
|
|
|
|
|
|
|
<% when "UserCustomField" %>
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><label for="custom_field_is_required"><%=l(:field_is_required)%></label>
|
|
|
|
<%= check_box 'custom_field', 'is_required' %></p>
|
2006-07-29 13:32:58 +04:00
|
|
|
|
|
|
|
<% when "ProjectCustomField" %>
|
2006-09-02 17:33:23 +04:00
|
|
|
<p><label for="custom_field_is_required"><%=l(:field_is_required)%></label>
|
|
|
|
<%= check_box 'custom_field', 'is_required' %></p>
|
2006-07-29 13:32:58 +04:00
|
|
|
|
|
|
|
<% end %>
|
|
|
|
</div>
|