|
|
|
@ -5,19 +5,19 @@
|
|
|
|
|
<li style="display: none">
|
|
|
|
|
<label><span class="c_red">*</span> <%= l(:field_subject) %> :</label>
|
|
|
|
|
|
|
|
|
|
<%= f.text_field :subject, { size: 60, id: "message_subject",:class=>"talk_input w585" }.merge(extra_option) %>
|
|
|
|
|
<%= f.text_field :subject, { size: 60, id: "message_subject#{f.object.id}",:class=>"talk_input w585" }.merge(extra_option) %>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p id="subject_span" class="ml55"></p>
|
|
|
|
|
<p id="subject_span<%= f.object.id%>" class="ml55"></p>
|
|
|
|
|
</li>
|
|
|
|
|
<% else %>
|
|
|
|
|
<li>
|
|
|
|
|
<label><span class="c_red">*</span> <%= l(:field_subject) %> :</label>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<%= f.text_field :subject, { size: 60, id: "message_subject", onkeyup: "regexSubject();",:class=>"talk_input w585" }.merge(extra_option) %>
|
|
|
|
|
<%= f.text_field :subject, { size: 60, id: "message_subject#{f.object.id}", onkeyup: "regexSubject('#{f.object.id}');",:class=>"talk_input w585" }.merge(extra_option) %>
|
|
|
|
|
|
|
|
|
|
<p id="subject_span" class="ml55"></p>
|
|
|
|
|
<p id="subject_span<%= f.object.id%>" class="ml55"></p>
|
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
<li class="ml60 mb5">
|
|
|
|
@ -36,16 +36,16 @@
|
|
|
|
|
<li>
|
|
|
|
|
<div id="message_quote" class="wiki" style="width: 100%;word-break: break-all;word-wrap: break-word;"></div>
|
|
|
|
|
<% unless replying %>
|
|
|
|
|
<label class="fl ml3" ><span class="c_red">*</span> <%= l(:field_description) %> :</label>
|
|
|
|
|
<label class="fl ml3" ><span class="c_red">*</span> <%= l(:field_description) %> :</label>
|
|
|
|
|
<% end %>
|
|
|
|
|
<%= text_area :quote,:quote,:style => 'display:none' %>
|
|
|
|
|
<% if replying%>
|
|
|
|
|
<%= f.text_area :content, :class => 'talk_text fl', :id => 'message_content', :onkeyup => "regexContent();", :maxlength => 5000,:placeholder => "最多3000个汉字(或6000个英文字符)", :style=>"width: 575px;" %>
|
|
|
|
|
<%= f.text_area :content, :class => 'talk_text fl', :id => "message_content#{f.object.id}", :onkeyup => "regexContent('#{f.object.id}');", :maxlength => 5000,:placeholder => "最多3000个汉字(或6000个英文字符)", :style=>"width: 575px;" %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= f.text_area :content, :class => 'talk_text fl', :id => 'message_content', :onkeyup => "regexContent();", :maxlength => 5000,:placeholder => "最多3000个汉字(或6000个英文字符)" %>
|
|
|
|
|
<%= f.text_area :content, :class => 'talk_text fl', :id => "message_content#{f.object.id}", :onkeyup => "regexContent('#{f.object.id}');", :maxlength => 5000,:placeholder => "最多3000个汉字(或6000个英文字符)" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<p id="message_content_span" class="ml55"></p>
|
|
|
|
|
<p id="message_content_span<%= f.object.id%>" class="ml55"></p>
|
|
|
|
|
</li>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<li>
|
|
|
|
|