2014-09-16 10:42:17 +08:00
|
|
|
<script src="/javascripts/ckeditor/ckeditor.js?1404953555" type="text/javascript"></script>
|
2014-09-15 10:58:14 +08:00
|
|
|
<%= error_messages_for 'message' %>
|
|
|
|
<% replying ||= false %>
|
|
|
|
|
|
|
|
<div class="box ph10_5">
|
2014-09-17 12:31:53 +08:00
|
|
|
<!--[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' %>
|
2014-09-16 10:42:17 +08:00
|
|
|
<%= f.check_box :sticky %> <%= label_tag 'message_sticky', l(:label_board_sticky) %>
|
2014-09-17 12:31:53 +08:00
|
|
|
<% end %>
|
|
|
|
<% if @message.safe_attribute? 'locked' %>
|
2014-09-16 10:42:17 +08:00
|
|
|
<%= f.check_box :locked %> <%= label_tag 'message_locked', l(:label_board_locked) %>
|
2014-09-17 12:31:53 +08:00
|
|
|
<% end %>
|
2014-09-16 10:42:17 +08:00
|
|
|
<% end %>
|
2014-09-17 12:31:53 +08:00
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<label for="message_subject"><%= l(:field_description) %>
|
2014-09-16 10:42:17 +08:00
|
|
|
<span class="required"> * </span></label>
|
2014-09-17 12:31:53 +08:00
|
|
|
<div id="message_quote" class="wiki" style="width: 100%;word-break: break-all;word-wrap: break-word;"></div>
|
|
|
|
<%= text_area :quote,:quote,:style => 'display:none' %>
|
|
|
|
</p>
|
|
|
|
<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>
|
2014-09-15 10:58:14 +08:00
|
|
|
|
2014-09-17 12:31:53 +08:00
|
|
|
<!--[eoform:message]-->
|
2014-09-15 10:58:14 +08:00
|
|
|
|
2014-09-17 12:31:53 +08:00
|
|
|
<p>
|
|
|
|
<%= l(:label_attachment_plural) %>
|
|
|
|
<br />
|
|
|
|
<%= render :partial => 'attachments/form_course', :locals => {:container => @message,:isReply => @isReply} %>
|
|
|
|
</p>
|
2014-09-15 10:58:14 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2014-07-04 11:11:27 +08:00
|
|
|
<%#= wikitoolbar_for 'message_content' %>
|