annotate app/views/messages/edit.rhtml @ 866:2cd212a468b6 bug_152

Close obsolete branch bug_152
author Chris Cannam
date Wed, 11 May 2011 10:08:34 +0100
parents 513646585e45
children 051f544170fe
rev   line source
Chris@0 1 <h2><%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> &#187; <%=h @message.subject %></h2>
Chris@0 2
Chris@0 3 <% form_for :message, @message, :url => {:action => 'edit'}, :html => {:multipart => true, :id => 'message-form'} do |f| %>
Chris@0 4 <%= render :partial => 'form', :locals => {:f => f, :replying => !@message.parent.nil?} %>
Chris@0 5 <%= submit_tag l(:button_save) %>
Chris@0 6 <%= link_to_remote l(:label_preview),
Chris@0 7 { :url => { :controller => 'messages', :action => 'preview', :board_id => @board },
Chris@0 8 :method => 'post',
Chris@0 9 :update => 'preview',
Chris@0 10 :with => "Form.serialize('message-form')",
Chris@0 11 :complete => "Element.scrollTo('preview')"
Chris@0 12 }, :accesskey => accesskey(:preview) %>
Chris@0 13 <% end %>
Chris@0 14 <div id="preview" class="wiki"></div>