new.rhtml
15 lines
| 853 B
| text/html+ruby
|
RhtmlLexer
|
r526 | <h2><%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> » <%= l(:label_message_new) %></h2> | ||
|
r1191 | <% form_for :message, @message, :url => {:action => 'new'}, :html => {:multipart => true, :id => 'message-form'} do |f| %> | ||
|
r526 | <%= render :partial => 'form', :locals => {:f => f} %> | ||
<%= submit_tag l(:button_create) %> | ||||
|
r1191 | <%= link_to_remote l(:label_preview), | ||
{ :url => { :controller => 'messages', :action => 'preview', :board_id => @board }, | ||||
:method => 'post', | ||||
:update => 'preview', | ||||
:with => "Form.serialize('message-form')", | ||||
:complete => "Element.scrollTo('preview')" | ||||
}, :accesskey => accesskey(:preview) %> | ||||
|
r526 | <% end %> | ||
|
r1191 | |||
<div id="preview" class="wiki"></div> | ||||