@@ -1,14 +1,18 | |||||
1 | <h2><%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> » <%=h @message.subject %></h2> |
|
1 | <h2><%= link_to h(@board.name), :controller => 'boards', | |
|
2 | :action => 'show', :project_id => @project, | |||
|
3 | :id => @board %> » <%= h @message.subject %></h2> | |||
2 |
|
4 | |||
3 | <% form_for :message, @message, |
|
5 | <% form_for :message, @message, | |
4 | :url => {:action => 'edit'}, |
|
6 | :url => {:action => 'edit'}, | |
5 | :html => {:multipart => true, |
|
7 | :html => {:multipart => true, | |
6 | :id => 'message-form', |
|
8 | :id => 'message-form', | |
7 | :method => :post} do |f| %> |
|
9 | :method => :post} do |f| %> | |
8 | <%= render :partial => 'form', :locals => {:f => f, :replying => !@message.parent.nil?} %> |
|
10 | <%= render :partial => 'form', | |
|
11 | :locals => {:f => f, :replying => !@message.parent.nil?} %> | |||
9 | <%= submit_tag l(:button_save) %> |
|
12 | <%= submit_tag l(:button_save) %> | |
10 | <%= link_to_remote l(:label_preview), |
|
13 | <%= link_to_remote l(:label_preview), | |
11 |
{ :url => { :controller => 'messages', |
|
14 | { :url => { :controller => 'messages', | |
|
15 | :action => 'preview', :board_id => @board }, | |||
12 | :method => 'post', |
|
16 | :method => 'post', | |
13 | :update => 'preview', |
|
17 | :update => 'preview', | |
14 | :with => "Form.serialize('message-form')", |
|
18 | :with => "Form.serialize('message-form')", |
General Comments 0
You need to be logged in to leave comments.
Login now