code layout cleanup app/views/wiki/edit.html.erb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9661 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
678469cf09
commit
2ed78d95f6
|
@ -13,13 +13,17 @@
|
||||||
<%= error_messages_for 'content' %>
|
<%= error_messages_for 'content' %>
|
||||||
|
|
||||||
<div class="box tabular">
|
<div class="box tabular">
|
||||||
<%= text_area_tag 'content[text]', @text, :cols => 100, :rows => 25, :class => 'wiki-edit', :accesskey => accesskey(:edit) %>
|
<%= text_area_tag 'content[text]', @text, :cols => 100, :rows => 25,
|
||||||
|
:class => 'wiki-edit', :accesskey => accesskey(:edit) %>
|
||||||
|
|
||||||
<% if @page.safe_attribute_names.include?('parent_id') && @wiki.pages.any? %>
|
<% if @page.safe_attribute_names.include?('parent_id') && @wiki.pages.any? %>
|
||||||
<%= fields_for @page do |fp| %>
|
<%= fields_for @page do |fp| %>
|
||||||
<p>
|
<p>
|
||||||
<label><%= l(:field_parent_title) %></label>
|
<label><%= l(:field_parent_title) %></label>
|
||||||
<%= fp.select :parent_id, content_tag('option', '', :value => '') + wiki_page_options_for_select(@wiki.pages.all(:include => :parent) - @page.self_and_descendants, @page.parent) %>
|
<%= fp.select :parent_id,
|
||||||
|
content_tag('option', '', :value => '') +
|
||||||
|
wiki_page_options_for_select(@wiki.pages.all(:include => :parent) -
|
||||||
|
@page.self_and_descendants, @page.parent) %>
|
||||||
</p>
|
</p>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -30,7 +34,8 @@
|
||||||
|
|
||||||
<p><%= submit_tag l(:button_save) %>
|
<p><%= submit_tag l(:button_save) %>
|
||||||
<%= link_to_remote l(:label_preview),
|
<%= link_to_remote l(:label_preview),
|
||||||
{ :url => { :controller => 'wiki', :action => 'preview', :project_id => @project, :id => @page.title },
|
{ :url => { :controller => 'wiki', :action => 'preview',
|
||||||
|
:project_id => @project, :id => @page.title },
|
||||||
:method => :post,
|
:method => :post,
|
||||||
:update => 'preview',
|
:update => 'preview',
|
||||||
:with => "Form.serialize('wiki_form')",
|
:with => "Form.serialize('wiki_form')",
|
||||||
|
|
Loading…
Reference in New Issue