Redmine 4.1.1
This commit is contained in:
parent
33e7b881a5
commit
3d976f1b3b
1593 changed files with 36180 additions and 19489 deletions
|
@ -9,7 +9,13 @@
|
|||
:html => { :method => :post } do |f| %>
|
||||
<div class="box tabular">
|
||||
<p><%= f.text_field :title, :required => true, :size => 100 %></p>
|
||||
<% if @page.safe_attribute? 'is_start_page' %>
|
||||
<p><%= f.check_box :is_start_page, :label => :field_start_page, :disabled => @page.is_start_page %></p>
|
||||
<% end %>
|
||||
<p><%= f.check_box :redirect_existing_links %></p>
|
||||
<% if @page.safe_attribute? 'wiki_id' %>
|
||||
<p><%= f.select :wiki_id, wiki_page_wiki_options_for_select(@page), :label => :label_project %></p>
|
||||
<% end %>
|
||||
<p><%= f.select :parent_id,
|
||||
content_tag('option', '', :value => '') +
|
||||
wiki_page_options_for_select(
|
||||
|
@ -17,10 +23,16 @@
|
|||
@page.parent),
|
||||
:label => :field_parent_title %></p>
|
||||
|
||||
<% if @page.safe_attribute? 'wiki_id' %>
|
||||
<p><%= f.select :wiki_id, wiki_page_wiki_options_for_select(@page), :label => :label_project %></p>
|
||||
<% end %>
|
||||
|
||||
</div>
|
||||
<%= submit_tag l(:button_rename) %>
|
||||
<% end %>
|
||||
|
||||
<%= javascript_tag do %>
|
||||
$('#wiki_page_wiki_id').change(function() {
|
||||
$.ajax({
|
||||
url: '<%= rename_project_wiki_page_path(@wiki, :format => 'js') %>',
|
||||
type: 'get',
|
||||
data: { 'wiki_page[wiki_id]': $('#wiki_page_wiki_id').val() }
|
||||
});
|
||||
});
|
||||
<% end %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue