socialforge/app/views/messages/new.html.erb

19 lines
781 B
Plaintext
Raw Normal View History

<% if @project %>
<h3>
<%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %>
&#187;
<%= 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| %>
<%= render :partial => 'form', :locals => {:f => f} %>
<%= 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>
<% elsif @course %>
2015-03-24 17:12:51 +08:00
<%= render :partial => 'course_new' %>
<% end %>
2014-01-09 16:57:28 +08:00