You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

new.html.erb 843B

123456789101112131415
  1. <h2><%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> &#187; <%= l(:label_message_new) %></h2>
  2. <%= form_for @message, :url => {:action => 'new'}, :html => {:multipart => true, :id => 'message-form'} do |f| %>
  3. <%= render :partial => 'form', :locals => {:f => f} %>
  4. <%= submit_tag l(:button_create) %>
  5. <%= link_to_remote l(:label_preview),
  6. { :url => { :controller => 'messages', :action => 'preview', :board_id => @board },
  7. :method => 'post',
  8. :update => 'preview',
  9. :with => "Form.serialize('message-form')",
  10. :complete => "Element.scrollTo('preview')"
  11. }, :accesskey => accesskey(:preview) %>
  12. <% end %>
  13. <div id="preview" class="wiki"></div>