|
|
|
@ -1,15 +1,16 @@
|
|
|
|
|
<%= javascript_include_tag "/assets/kindeditor/kindeditor" %>
|
|
|
|
|
<%= error_messages_for 'message' %>
|
|
|
|
|
<% replying ||= false %>
|
|
|
|
|
<% extra_option = replying ? { readonly: true} : { maxlength: 200 } %>
|
|
|
|
|
<% extra_option = replying ? { hidden: "hidden"} : { maxlength: 200 } %>
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
<label><span class="c_red">*</span> <%= l(:field_subject) %> :</label>
|
|
|
|
|
<div style="display:<%= replying ? 'none' : 'block'%>;" class="fl"><label><span class="c_red">*</span> <%= l(:field_subject) %> :</label></div>
|
|
|
|
|
<% if replying %>
|
|
|
|
|
<%= f.text_field :subject, { size: 60, id: "message_subject",:class=>"talk_input w585" }.merge(extra_option) %>
|
|
|
|
|
<div style="display: none;"><%= f.text_field :subject, { size: 60, id: "message_subject",:class=>"talk_input w585 fl" }.merge(extra_option) %></div>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= f.text_field :subject, { size: 60, id: "message_subject", onkeyup: "regexSubject();",:class=>"talk_input w585" }.merge(extra_option) %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<p id="subject_span" class="ml55"></p>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="ml60 mb5">
|
|
|
|
@ -26,7 +27,7 @@
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<div id="message_quote" class="wiki" style="width: 100%;word-break: break-all;word-wrap: break-word;"></div>
|
|
|
|
|
<div id="message_quote" class="wiki" style="width: 92%;word-break: break-all;word-wrap: break-word;margin-left: 40px;"></div>
|
|
|
|
|
<label class="fl" >
|
|
|
|
|
<span class="c_red">*</span>
|
|
|
|
|
<%= l(:field_description) %> :
|
|
|
|
|