|
|
|
@ -19,7 +19,12 @@
|
|
|
|
|
|
|
|
|
|
<% if !replying && !@message.new_record? && @message.safe_attribute?('board_id') %>
|
|
|
|
|
<p><label><%= l(:label_board) %></label><br />
|
|
|
|
|
<%= f.select :board_id, boards_options_for_select(@message.project.boards) %></p>
|
|
|
|
|
<%# modify by nwb%>
|
|
|
|
|
<% if @message.project %>
|
|
|
|
|
<%= f.select :board_id, boards_options_for_select(@message.project.boards) %></p>
|
|
|
|
|
<% elsif @message.course %>
|
|
|
|
|
<%= f.select :board_id, boards_options_for_select(@message.course.boards) %></p>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<p>
|
|
|
|
|