2015-03-26 15:55:07 +08:00
|
|
|
<div class="project_r_h">
|
|
|
|
<h2 class="project_h2"><%= l(:label_course_board) %></h2>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<% if @message.project %>
|
2015-04-07 12:48:47 +08:00
|
|
|
<%#= board_breadcrumb(@message) %>
|
|
|
|
<!--<h3><%#= avatar(@topic.author, :size => "24") %><span style = "width:100%;word-break:break-all;word-wrap: break-word;"><%#=h @topic.subject %></span></h3>-->
|
2015-05-08 15:20:28 +08:00
|
|
|
<div class="ml15">
|
2015-04-07 12:48:47 +08:00
|
|
|
<ul>
|
|
|
|
<%= form_for @message, { :as => :message,
|
|
|
|
:url => {:action => 'edit'},
|
|
|
|
:html => {:multipart => true,
|
|
|
|
:id => 'message-form',
|
|
|
|
:method => :post}
|
2015-03-26 15:55:07 +08:00
|
|
|
} do |f| %>
|
2015-04-07 12:48:47 +08:00
|
|
|
<%= render :partial => 'form_project',
|
2015-03-26 15:55:07 +08:00
|
|
|
:locals => {:f => f, :replying => !@message.parent.nil?} %>
|
2015-04-07 12:48:47 +08:00
|
|
|
<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" %>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2015-03-26 15:55:07 +08:00
|
|
|
<% end %>
|
2014-06-18 16:45:33 +08:00
|
|
|
<% elsif @message.course %>
|
2015-03-27 16:53:36 +08:00
|
|
|
<%#= course_board_breadcrumb(@message) %>
|
2015-03-26 15:55:07 +08:00
|
|
|
<div class="talk_new ml15">
|
2015-05-11 15:50:23 +08:00
|
|
|
<ul>0
|
2015-03-26 15:55:07 +08:00
|
|
|
<%= form_for @message, {
|
|
|
|
:as => :message,
|
|
|
|
:url => {:action => 'edit'},
|
|
|
|
:html => {:multipart => true,
|
|
|
|
:id => 'message-form',
|
|
|
|
:method => :post}
|
|
|
|
} do |f| %>
|
|
|
|
<%= render :partial => 'form_course',
|
|
|
|
:locals => {:f => f, :replying => !@message.parent.nil?} %>
|
2015-04-15 14:53:07 +08:00
|
|
|
<a href="javascript:void(0)" onclick="submitCoursesBoard();"class="blue_btn fl c_white"><%= l(:button_submit)%></a>
|
2015-03-26 15:55:07 +08:00
|
|
|
<%= 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 %>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2014-06-18 16:45:33 +08:00
|
|
|
<% end %>
|
2013-08-01 10:33:49 +08:00
|
|
|
|
|
|
|
|
|
|
|
<div id="preview" class="wiki"></div>
|