40 lines
2.0 KiB
Plaintext
40 lines
2.0 KiB
Plaintext
<% if @message.project %>
|
|
<%= form_for @message, {:as => :message,
|
|
:url => {:action => 'edit',:is_course=>@is_course,:is_board=>@is_board},
|
|
:html => {:multipart => true,
|
|
:id => 'message-form',
|
|
:method => :post}
|
|
} do |f| %>
|
|
<%= render :partial => 'boards/project_message_edit',
|
|
:locals => {:f => f, :edit_mode => true, :topic => @message, :project => @message.project} %>
|
|
<!--<a href="#" onclick="submitProjectsBoard();" class="blue_btn fl c_white"><%#= l(:button_submit) %></a>-->
|
|
<%#= link_to l(:button_cancel), board_message_url(@message.board, @message.root, :r => (@message.parent_id && @message.id)), :class => "blue_btn grey_btn fl c_white" %>
|
|
<% end %>
|
|
|
|
<% elsif @message.course %>
|
|
<%= form_for @message, {
|
|
:as => :message,
|
|
:url => {:action => 'edit',:is_course=>@is_course,:is_board=>@is_board},
|
|
:html => {:multipart => true,
|
|
:id => 'message-form',
|
|
:method => :post}
|
|
} do |f| %>
|
|
<%= render :partial => 'boards/course_message_edit',
|
|
:locals => {:f => f, :edit_mode => true, :topic => @message, :course => @message.course} %>
|
|
<% end %>
|
|
|
|
<% elsif @message.board.org_subfield %>
|
|
<%= form_for @message, {
|
|
:as => :message,
|
|
:url => {:action => 'edit'},
|
|
:html => {:multipart => true,
|
|
:id => 'message-form',
|
|
:method => :post}
|
|
} do |f| %>
|
|
<%= render :partial => 'boards/org_subfield_message_edit',
|
|
:locals => {:f => f, :edit_mode => true, :topic => @message, :org_subfield => @message.board.org_subfield} %>
|
|
<% end %>
|
|
<% end %>
|
|
|
|
<div id="preview" class="wiki"></div>
|