code layout clean up app/views/messages/edit.html.erb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8501 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
f25aa90490
commit
50a2a1321d
|
@ -1,14 +1,18 @@
|
||||||
<h2><%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> » <%=h @message.subject %></h2>
|
<h2><%= link_to h(@board.name), :controller => 'boards',
|
||||||
|
:action => 'show', :project_id => @project,
|
||||||
|
:id => @board %> » <%= h @message.subject %></h2>
|
||||||
|
|
||||||
<% form_for :message, @message,
|
<% form_for :message, @message,
|
||||||
:url => {:action => 'edit'},
|
:url => {:action => 'edit'},
|
||||||
:html => {:multipart => true,
|
:html => {:multipart => true,
|
||||||
:id => 'message-form',
|
:id => 'message-form',
|
||||||
:method => :post} do |f| %>
|
:method => :post} do |f| %>
|
||||||
<%= render :partial => 'form', :locals => {:f => f, :replying => !@message.parent.nil?} %>
|
<%= render :partial => 'form',
|
||||||
|
:locals => {:f => f, :replying => !@message.parent.nil?} %>
|
||||||
<%= submit_tag l(:button_save) %>
|
<%= submit_tag l(:button_save) %>
|
||||||
<%= link_to_remote l(:label_preview),
|
<%= link_to_remote l(:label_preview),
|
||||||
{ :url => { :controller => 'messages', :action => 'preview', :board_id => @board },
|
{ :url => { :controller => 'messages',
|
||||||
|
:action => 'preview', :board_id => @board },
|
||||||
:method => 'post',
|
:method => 'post',
|
||||||
:update => 'preview',
|
:update => 'preview',
|
||||||
:with => "Form.serialize('message-form')",
|
:with => "Form.serialize('message-form')",
|
||||||
|
|
Loading…
Reference in New Issue