2007-05-13 21:09:56 +04:00
|
|
|
<h2><%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> » <%= l(:label_message_new) %></h2>
|
|
|
|
|
2008-03-07 20:49:44 +03:00
|
|
|
<% form_for :message, @message, :url => {:action => 'new'}, :html => {:multipart => true, :id => 'message-form'} do |f| %>
|
2007-05-13 21:09:56 +04:00
|
|
|
<%= render :partial => 'form', :locals => {:f => f} %>
|
|
|
|
<%= submit_tag l(:button_create) %>
|
2011-05-30 22:52:25 +04:00
|
|
|
<%= link_to_remote l(:label_preview),
|
2008-03-07 20:49:44 +03:00
|
|
|
{ :url => { :controller => 'messages', :action => 'preview', :board_id => @board },
|
|
|
|
:method => 'post',
|
|
|
|
:update => 'preview',
|
|
|
|
:with => "Form.serialize('message-form')",
|
|
|
|
:complete => "Element.scrollTo('preview')"
|
|
|
|
}, :accesskey => accesskey(:preview) %>
|
2007-05-13 21:09:56 +04:00
|
|
|
<% end %>
|
2008-03-07 20:49:44 +03:00
|
|
|
|
|
|
|
<div id="preview" class="wiki"></div>
|