diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2006-12-05 20:45:04 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2006-12-05 20:45:04 +0000 |
commit | 96f83cc8f0f032554f771a59da22303cd473b878 (patch) | |
tree | 355a0d2ed653a5426c59ebf6a1fe65eba024b4d0 /app/views/custom_fields/_form.rhtml | |
parent | eabc04d8368824965d3ac8de3fa84502e9c05d38 (diff) | |
download | redmine-96f83cc8f0f032554f771a59da22303cd473b878.tar.gz redmine-96f83cc8f0f032554f771a59da22303cd473b878.zip |
trunk moved from /trunk/redmine to /trunk
git-svn-id: http://redmine.rubyforge.org/svn/trunk@67 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/custom_fields/_form.rhtml')
-rw-r--r-- | app/views/custom_fields/_form.rhtml | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/app/views/custom_fields/_form.rhtml b/app/views/custom_fields/_form.rhtml new file mode 100644 index 000000000..f7f968e33 --- /dev/null +++ b/app/views/custom_fields/_form.rhtml @@ -0,0 +1,52 @@ +<%= error_messages_for 'custom_field' %> + +<!--[form:custom_field]--> +<div class="box"> +<p><label for="custom_field_name"><%=l(:field_name)%><span class="required"> *</span></label> +<%= text_field 'custom_field', 'name' %></p> +
+<p><label for="custom_field_field_format"><%=l(:field_field_format)%></label> +<%= select("custom_field", "field_format", custom_field_formats_for_select) %></p>
+
+<p><label for="custom_field_min_length"><%=l(:label_min_max_length)%></label> +<%= text_field 'custom_field', 'min_length', :size => 5 %> - +<%= text_field 'custom_field', 'max_length', :size => 5 %><br>(<%=l(:text_min_max_length_info)%>)</p>
+
+<p><label for="custom_field_regexp"><%=l(:field_regexp)%></label> +<%= text_field 'custom_field', 'regexp', :size => 50 %><br>(<%=l(:text_regexp_info)%>)</p>
+
+<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> +</div>
+<!--[eoform:custom_field]--> + +<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>
+ + +<p><label for="custom_field_is_required"><%=l(:field_is_required)%></label> +<%= check_box 'custom_field', 'is_required' %></p> + +<p><label for="custom_field_is_for_all"><%=l(:field_is_for_all)%></label> +<%= check_box 'custom_field', 'is_for_all' %></p> + +<% when "UserCustomField" %> +<p><label for="custom_field_is_required"><%=l(:field_is_required)%></label> +<%= check_box 'custom_field', 'is_required' %></p> + +<% when "ProjectCustomField" %> +<p><label for="custom_field_is_required"><%=l(:field_is_required)%></label> +<%= check_box 'custom_field', 'is_required' %></p> + +<% end %> +</div> |