2015-04-07 12:48:47 +08:00
|
|
|
|
<%= error_messages_for 'message' %>
|
|
|
|
|
<% replying ||= false %>
|
|
|
|
|
<% extra_option = replying ? { readonly: true} : { maxlength: 200 } %>
|
|
|
|
|
<li>
|
|
|
|
|
<label><span class="c_red">*</span> <%= l(:field_subject) %> :</label>
|
|
|
|
|
<% if replying %>
|
|
|
|
|
<%= f.text_field :subject, { size: 60, id: "message_subject",:class=>"talk_input w585" }.merge(extra_option) %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= f.text_field :subject, { size: 60, id: "message_subject", onkeyup: "regexSubject();",:class=>"talk_input w585" }.merge(extra_option) %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<p id="subject_span" class="ml55"></p>
|
|
|
|
|
</li>
|
2015-05-08 14:41:57 +08:00
|
|
|
|
<li class="ml55 mb5">
|
2015-04-07 12:48:47 +08:00
|
|
|
|
<% 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 %>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<div id="message_quote" class="wiki" style="width: 100%;word-break: break-all;word-wrap: break-word;"></div>
|
2015-05-06 09:26:14 +08:00
|
|
|
|
<label class="fl ml3" ><span class="c_red">*</span> <%= l(:field_description) %> :</label>
|
2015-04-07 12:48:47 +08:00
|
|
|
|
<%= text_area :quote,:quote,:style => 'display:none' %>
|
|
|
|
|
<%= f.text_area :content, :class => 'talk_text fl', :id => 'message_content', :onkeyup => "regexContent();", :maxlength => 5000,:placeholder => "最多3000个汉字(或6000个英文字符)" %>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<p id="message_content_span" class="ml55"></p>
|
|
|
|
|
</li>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<li>
|
|
|
|
|
<label class="fl"> <%= l(:label_attachment_plural) %> :</label>
|
2015-04-21 16:11:25 +08:00
|
|
|
|
<div class="fl ml3">
|
2015-04-07 12:48:47 +08:00
|
|
|
|
<%= render :partial => 'attachments/form_project', :locals => {:container => @message,:isReply => @isReply} %>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
<li >
|
|
|
|
|
<div class="cl"></div>
|
2015-04-07 17:45:00 +08:00
|
|
|
|
</li>
|