Mercurial > hg > soundsoftware-site
comparison app/views/messages/new.html.erb @ 909:cbb26bc654de redmine-1.3
Update to Redmine 1.3-stable branch (Redmine SVN rev 8964)
author | Chris Cannam |
---|---|
date | Fri, 24 Feb 2012 19:09:32 +0000 |
parents | c6c2cbd0afee |
children | 433d4f72a19b |
comparison
equal
deleted
inserted
replaced
908:c6c2cbd0afee | 909:cbb26bc654de |
---|---|
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, @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 <%= link_to_remote l(:label_preview), |
7 { :url => { :controller => 'messages', :action => 'preview', :board_id => @board }, | 7 { :url => { :controller => 'messages', :action => 'preview', :board_id => @board }, |
8 :method => 'post', | 8 :method => 'post', |
9 :update => 'preview', | 9 :update => 'preview', |
10 :with => "Form.serialize('message-form')", | 10 :with => "Form.serialize('message-form')", |
11 :complete => "Element.scrollTo('preview')" | 11 :complete => "Element.scrollTo('preview')" |