49 lines
1.9 KiB
Plaintext
49 lines
1.9 KiB
Plaintext
<%= error_messages_for 'message' %>
|
|
<% replying ||= false %>
|
|
|
|
<div class="box ph10_5">
|
|
<!--[form:message]-->
|
|
<% unless replying %>
|
|
<p><label for="message_subject"><%= l(:field_subject) %><span class="required"> * </span></label><br/>
|
|
<%= f.text_field :subject, :size => 60, :style => "width: 99%;", :id => "message_subject" %><!--by young-->
|
|
</p>
|
|
<% else %>
|
|
<p><label for="message_subject"><%= l(:field_subject) %><span class="required"> * </span></label><br/>
|
|
<%= f.text_field :subject, :size => 60, :style => "width: 99%;", :id => "message_subject", :readonly => true %>
|
|
</p>
|
|
<% end %>
|
|
<p>
|
|
<% 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 %>
|
|
</p>
|
|
|
|
<% if !replying && !@message.new_record? && @message.safe_attribute?('board_id') %>
|
|
<p><label><%= l(:label_board) %></label><br />
|
|
<%# 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 %>
|
|
<div id="message_quote" class="wiki"></div>
|
|
|
|
<%= text_area :quote,:quote,:style => 'display:none' %>
|
|
<p>
|
|
<%= 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' %></p>
|
|
|
|
<!--[eoform:message]-->
|
|
|
|
<p><%= l(:label_attachment_plural) %><br />
|
|
<%= render :partial => 'attachments/form_course', :locals => {:container => @message,:isReply => @isReply} %></p>
|
|
</div>
|
|
|
|
|
|
<%#= wikitoolbar_for 'message_content' %> |