edit.html.erb
26 lines
| 1.1 KiB
| text/plain
|
TextLexer
|
r8381 | <h2><%= link_to h(@board.name), :controller => 'boards', | ||
:action => 'show', :project_id => @project, | ||||
:id => @board %> » <%= h @message.subject %></h2> | ||||
|
r913 | |||
|
r8380 | <% form_for :message, @message, | ||
:url => {:action => 'edit'}, | ||||
:html => {:multipart => true, | ||||
:id => 'message-form', | ||||
:method => :post} do |f| %> | ||||
|
r8381 | <%= render :partial => 'form', | ||
:locals => {:f => f, :replying => !@message.parent.nil?} %> | ||||
|
r913 | <%= submit_tag l(:button_save) %> | ||
|
r7204 | <%= link_to_remote l(:label_preview), | ||
|
r8381 | { :url => { :controller => 'messages', | ||
|
r8830 | :action => 'preview', :board_id => @board, :id => @message }, | ||
|
r1191 | :method => 'post', | ||
:update => 'preview', | ||||
:with => "Form.serialize('message-form')", | ||||
:complete => "Element.scrollTo('preview')" | ||||
}, :accesskey => accesskey(:preview) %> | ||||
|
r913 | <% end %> | ||
|
r1191 | <div id="preview" class="wiki"></div> | ||
|
r4769 | |||
<% content_for :header_tags do %> | ||||
<%= stylesheet_link_tag 'scm' %> | ||||
<% end %> | ||||