%= error_messages_for 'message' %> <% replying ||= false %>
<%= f.text_field :subject,:size => 60, :style => "width: 99%;", :id => "message_subject" %>
<% unless replying %> <% if @message.safe_attribute? 'sticky' %> <%= f.check_box :sticky %> <%= label_tag 'message_sticky', l(:label_board_sticky) %> <% end %> <% if @message.safe_attribute? 'locked' %> <%= f.check_box :locked %> <%= label_tag 'message_locked', l(:label_board_locked) %> <% end %> <% end %>
<% if !replying && !@message.new_record? && @message.safe_attribute?('board_id') %>
<%# modify by nwb%>
<% if @message.project %>
<%= f.select :board_id, boards_options_for_select(@message.project.boards) %>
<%= label_tag "message_content", l(:description_message_content), :class => "hidden-for-sighted" %> <%= f.text_area :content, :cols => 80, :rows => 13, :class => 'wiki-edit', :id => 'message_content' %>
<%= wikitoolbar_for 'message_content' %><%= l(:label_attachment_plural) %>
<%= render :partial => 'attachments/form', :locals => {:container => @message} %>