Mercurial > hg > soundsoftware-site
comparison app/views/messages/new.html.erb @ 1115:433d4f72a19b redmine-2.2
Update to Redmine SVN revision 11137 on 2.2-stable branch
author | Chris Cannam |
---|---|
date | Mon, 07 Jan 2013 12:01:42 +0000 |
parents | cbb26bc654de |
children |
comparison
equal
deleted
inserted
replaced
929:5f33065ddc4b | 1115:433d4f72a19b |
---|---|
1 <h2><%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> » <%= l(:label_message_new) %></h2> | 1 <h2><%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> » <%= l(:label_message_new) %></h2> |
2 | 2 |
3 <% form_for :message, @message, :url => {:action => 'new'}, :html => {:multipart => true, :id => 'message-form'} do |f| %> | 3 <%= form_for @message, :url => {:action => 'new'}, :html => {:multipart => true, :id => 'message-form'} do |f| %> |
4 <%= render :partial => 'form', :locals => {:f => f} %> | 4 <%= render :partial => 'form', :locals => {:f => f} %> |
5 <%= submit_tag l(:button_create) %> | 5 <%= submit_tag l(:button_create) %> |
6 <%= link_to_remote l(:label_preview), | 6 <%= preview_link({:controller => 'messages', :action => 'preview', :board_id => @board}, 'message-form') %> |
7 { :url => { :controller => 'messages', :action => 'preview', :board_id => @board }, | |
8 :method => 'post', | |
9 :update => 'preview', | |
10 :with => "Form.serialize('message-form')", | |
11 :complete => "Element.scrollTo('preview')" | |
12 }, :accesskey => accesskey(:preview) %> | |
13 <% end %> | 7 <% end %> |
14 | 8 |
15 <div id="preview" class="wiki"></div> | 9 <div id="preview" class="wiki"></div> |