2014-06-27 15:58:41 +08:00
|
|
|
<% if @project %>
|
2014-12-18 15:58:33 +08:00
|
|
|
<h3>
|
|
|
|
<%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %>
|
|
|
|
»
|
|
|
|
<%= l(:label_message_new) %>
|
|
|
|
</h3>
|
2015-03-24 17:12:51 +08:00
|
|
|
<%= form_for @message, :url => {:action => 'new'}, :html => {:multipart => true, :id => 'message-form'} do |f| %>
|
2015-03-26 15:55:07 +08:00
|
|
|
<%= render :partial => 'form', :locals => {:f => f,:is_new => true} %>
|
2015-03-24 17:12:51 +08:00
|
|
|
<%= submit_tag l(:button_create), :class => "whiteButton m3p10 h30" %>
|
|
|
|
<%= preview_link({:controller => 'messages', :action => 'preview', :board_id => @board}, 'message-form' ,target='preview',{:class => 'whiteButton m3p10'} )%>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<div id="preview" class="wiki"></div>
|
2014-06-27 15:58:41 +08:00
|
|
|
<% elsif @course %>
|
2015-03-24 17:12:51 +08:00
|
|
|
<%= render :partial => 'course_new' %>
|
2015-04-07 17:45:00 +08:00
|
|
|
<% end %>
|