|
|
|
@ -4,17 +4,19 @@
|
|
|
|
|
<div id="new_course_topic">
|
|
|
|
|
<div class="homepagePostBrief c_grey">
|
|
|
|
|
<div>
|
|
|
|
|
<input type="text" name="message[subject]" id="message_subject" class="InputBox w704" maxlength="255" onfocus="$('#topic_editor').show()" onkeyup="regexTopicSubject();" placeholder="发布帖子,请先输入帖子标题" value="<%= topic.subject%>" >
|
|
|
|
|
<input type="text" name="message[subject]" id="message_subject" class="InputBox w713" maxlength="255" onfocus="$('#topic_editor').show()" onkeyup="regexTopicSubject();" placeholder="发布帖子,请先输入帖子标题" value="<%= topic.subject%>" >
|
|
|
|
|
<p id="subjectmsg"></p>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="topic_editor" style="display: none;">
|
|
|
|
|
<div class="mt10">
|
|
|
|
|
<%if User.current.member_of_course?(course)%>
|
|
|
|
|
<div class="mt10">
|
|
|
|
|
<%= f.check_box :sticky, :value => topic.sticky%>
|
|
|
|
|
<%= label_tag 'message_sticky', l(:label_board_sticky) %>
|
|
|
|
|
<%= f.check_box :locked, :value => topic.locked%>
|
|
|
|
|
<%= label_tag 'message_locked', l(:label_board_locked) %>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="mt10">
|
|
|
|
|
<div id="message_quote" class="wiki" style="width: 92%;word-break: break-all;word-wrap: break-word;margin-left: 40px;"></div>
|
|
|
|
|
<%= text_area :quote,:quote,:style => 'display:none' %>
|
|
|
|
|