diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-08-31 17:26:37 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-08-31 17:26:37 +0000 |
commit | 26f0e0dfb1e5da83a14b2165fd2bae1bd2933313 (patch) | |
tree | 2f20585f4139a957f614f26faadf43e1a08f4290 /app/views/versions | |
parent | 49d057a7e3eca6f8281e669882f62dee91ec3097 (diff) | |
download | redmine-26f0e0dfb1e5da83a14b2165fd2bae1bd2933313.tar.gz redmine-26f0e0dfb1e5da83a14b2165fd2bae1bd2933313.zip |
Don't show "status" field when creating a new version (#23377).
git-svn-id: http://svn.redmine.org/redmine/trunk@15784 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/versions')
-rw-r--r-- | app/views/versions/_form.html.erb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/versions/_form.html.erb b/app/views/versions/_form.html.erb index 3d8ecd4da..e723a4e2e 100644 --- a/app/views/versions/_form.html.erb +++ b/app/views/versions/_form.html.erb @@ -4,7 +4,9 @@ <div class="box tabular"> <p><%= f.text_field :name, :size => 60, :required => true %></p> <p><%= f.text_field :description, :size => 60 %></p> -<p><%= f.select :status, Version::VERSION_STATUSES.collect {|s| [l("version_status_#{s}"), s]} %></p> +<% unless @version.new_record? %> + <p><%= f.select :status, Version::VERSION_STATUSES.collect {|s| [l("version_status_#{s}"), s]} %></p> +<% end %> <p><%= f.text_field :wiki_page_title, :label => :label_wiki_page, :size => 60, :disabled => @project.wiki.nil? %></p> <p><%= f.date_field :effective_date, :size => 10 %><%= calendar_for('version_effective_date') %></p> <p><%= f.select :sharing, @version.allowed_sharings.collect {|v| [format_version_sharing(v), v]} %></p> |