Adds custom fields for versions (#4219).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3064 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -6,4 +6,8 @@
|
||||
<p><%= f.select :status, Version::VERSION_STATUSES.collect {|s| [l("version_status_#{s}"), s]} %></p>
|
||||
<p><%= f.text_field :wiki_page_title, :label => :label_wiki_page, :size => 60, :disabled => @project.wiki.nil? %></p>
|
||||
<p><%= f.text_field :effective_date, :size => 10 %><%= calendar_for('version_effective_date') %></p>
|
||||
|
||||
<% @version.custom_field_values.each do |value| %>
|
||||
<p><%= custom_field_tag_with_label :version, value %></p>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
@@ -5,6 +5,13 @@
|
||||
<% end %>
|
||||
|
||||
<p><%=h version.description %></p>
|
||||
<ul>
|
||||
<% version.custom_values.each do |custom_value| %>
|
||||
<% if !custom_value.value.blank? %>
|
||||
<li><%=h custom_value.custom_field.name %>: <%=h show_value(custom_value) %></li>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
<% if version.fixed_issues.count > 0 %>
|
||||
<%= progress_bar([version.closed_pourcent, version.completed_pourcent], :width => '40em', :legend => ('%0.0f%' % version.completed_pourcent)) %>
|
||||
|
||||
Reference in New Issue
Block a user