##// END OF EJS Templates
Subproject name displayed on issue list, calendar and gantt (only for issues that belong to a subproject)....
Subproject name displayed on issue list, calendar and gantt (only for issues that belong to a subproject). git-svn-id: http://redmine.rubyforge.org/svn/trunk@484 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r444:d570bc5cc5ad
r481:c1a18a28898f
Show More
_form.rhtml
96 lines | 3.0 KiB | text/html+ruby | RhtmlLexer
Jean-Philippe Lang
Initial commit...
r2 <%= error_messages_for 'custom_field' %>
Jean-Philippe Lang
custom_field.possible_values is now serialized (no longer pipe separated)...
r220 <script type="text/javascript">
//<![CDATA[
Jean-Philippe Lang
* code and views cleaning...
r97 function toggle_custom_field_format() {
format = $("custom_field_field_format");
p_length = $("custom_field_min_length");
p_regexp = $("custom_field_regexp");
p_values = $("custom_field_possible_values");
switch (format.value) {
case "list":
Element.hide(p_length.parentNode);
Element.hide(p_regexp.parentNode);
Jean-Philippe Lang
custom_field.possible_values is now serialized (no longer pipe separated)...
r220 Element.show(p_values);
Jean-Philippe Lang
* code and views cleaning...
r97 break;
case "int":
case "string":
case "text":
Element.show(p_length.parentNode);
Element.show(p_regexp.parentNode);
Jean-Philippe Lang
custom_field.possible_values is now serialized (no longer pipe separated)...
r220 Element.hide(p_values);
Jean-Philippe Lang
* code and views cleaning...
r97 break;
case "date":
case "bool":
Element.hide(p_length.parentNode);
Element.hide(p_regexp.parentNode);
Jean-Philippe Lang
custom_field.possible_values is now serialized (no longer pipe separated)...
r220 Element.hide(p_values);
Jean-Philippe Lang
* code and views cleaning...
r97 break;
default:
Element.show(p_length.parentNode);
Element.show(p_regexp.parentNode);
Jean-Philippe Lang
custom_field.possible_values is now serialized (no longer pipe separated)...
r220 Element.show(p_values);
Jean-Philippe Lang
* code and views cleaning...
r97 break;
}
}
Jean-Philippe Lang
custom_field.possible_values is now serialized (no longer pipe separated)...
r220
function addValueField() {
var f = $$('p#custom_field_possible_values span');
p = document.getElementById("custom_field_possible_values");
var v = f[0].cloneNode(true);
v.childNodes[0].value = "";
p.appendChild(v);
}
function deleteValueField(e) {
var f = $$('p#custom_field_possible_values span');
if (f.length == 1) {
e.parentNode.childNodes[0].value = "";
} else {
Element.remove(e.parentNode);
}
}
//]]>
Jean-Philippe Lang
* code and views cleaning...
r97 </script>
Jean-Philippe Lang
Initial commit...
r2 <!--[form:custom_field]-->
Jean-Philippe Lang
0.3 unstable...
r10 <div class="box">
Jean-Philippe Lang
* code and views cleaning...
r97 <p><%= f.text_field :name, :required => true %></p>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <p><%= f.select :field_format, custom_field_formats_for_select, {}, :onchange => "toggle_custom_field_format();" %></p>
Jean-Philippe Lang
tables and forms redesign,...
r19 <p><label for="custom_field_min_length"><%=l(:label_min_max_length)%></label>
Jean-Philippe Lang
* code and views cleaning...
r97 <%= f.text_field :min_length, :size => 5, :no_label => true %> -
<%= f.text_field :max_length, :size => 5, :no_label => true %><br>(<%=l(:text_min_max_length_info)%>)</p>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <p><%= f.text_field :regexp, :size => 50 %><br>(<%=l(:text_regexp_info)%>)</p>
Jean-Philippe Lang
custom_field.possible_values is now serialized (no longer pipe separated)...
r220 <p id="custom_field_possible_values"><label><%= l(:field_possible_values) %> <%= image_to_function "add.png", "addValueField();return false" %></label>
<% (@custom_field.possible_values.to_a + [""]).each do |value| %>
<span><%= text_field_tag 'custom_field[possible_values][]', value, :size => 30 %> <%= image_to_function "delete.png", "deleteValueField(this);return false" %><br /></span>
<% end %>
</p>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </div>
Jean-Philippe Lang
* code and views cleaning...
r97 <%= javascript_tag "toggle_custom_field_format();" %>
Jean-Philippe Lang
Initial commit...
r2 <!--[eoform:custom_field]-->
Jean-Philippe Lang
0.3 unstable...
r10 <div class="box">
Jean-Philippe Lang
* code and views cleaning...
r97 <% case @custom_field.type.to_s
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 when "IssueCustomField" %>
<fieldset><legend><%=l(:label_tracker_plural)%></legend>
Jean-Philippe Lang
* code and views cleaning...
r97 <% for tracker in @trackers %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <%= check_box_tag "tracker_ids[]", tracker.id, (@custom_field.trackers.include? tracker) %> <%= tracker.name %>
Jean-Philippe Lang
* code and views cleaning...
r97 <% end %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </fieldset>
Jean-Philippe Lang
* code and views cleaning...
r97 &nbsp;
<p><%= f.check_box :is_required %></p>
<p><%= f.check_box :is_for_all %></p>
Jean-Philippe Lang
Custom fields for issues can now be used as filters on issue list....
r444 <p><%= f.check_box :is_filter %></p>
Jean-Philippe Lang
* code and views cleaning...
r97
<% when "UserCustomField" %>
<p><%= f.check_box :is_required %></p>
Jean-Philippe Lang
0.3 unstable...
r10
Jean-Philippe Lang
* code and views cleaning...
r97 <% when "ProjectCustomField" %>
<p><%= f.check_box :is_required %></p>
Jean-Philippe Lang
0.3 unstable...
r10
<% end %>
</div>