Defect #31550 » 0001-If-wiki-module-is-not-enabled-hide-Wiki-page-field-f.patch
app/views/versions/_form.html.erb | ||
---|---|---|
7 | 7 |
<% unless @version.new_record? %> |
8 | 8 |
<p><%= f.select :status, Version::VERSION_STATUSES.collect {|s| [l("version_status_#{s}"), s]} %></p> |
9 | 9 |
<% end %> |
10 |
<p><%= f.text_field :wiki_page_title, :label => :label_wiki_page, :size => 60, :disabled => @project.wiki.nil? %></p> |
|
10 |
<% if @project.module_enabled?(:wiki) %> |
|
11 |
<p><%= f.text_field :wiki_page_title, :label => :label_wiki_page, :size => 60, :disabled => @project.wiki.nil? %></p> |
|
12 |
<% end %> |
|
11 | 13 |
<p><%= f.date_field :effective_date, :size => 10 %><%= calendar_for('version_effective_date') %></p> |
12 | 14 |
<p><%= f.select :sharing, @version.allowed_sharings.collect {|v| [format_version_sharing(v), v]} %></p> |
13 | 15 |
<% if @version.new_record? %> |
- « Previous
- 1
- 2
- 3
- Next »