27 lines
1.7 KiB
Plaintext
27 lines
1.7 KiB
Plaintext
<li class="ml45">
|
||
<label><span class="c_red">*</span> <%= l(:field_title) %> :</label>
|
||
<input type="text" name="news[title]" class="hwork_input" id="news_title" size="60" onkeyup="regexTitle();" maxlength="60" placeholder="60个字符以内" value="<%= is_new ? '' : @news.title %>">
|
||
<p id="title_notice_span" class="ml55"></p>
|
||
</li>
|
||
<li class="ml45">
|
||
<label class="fl" ><span class="c_red">*</span> <%= l(:field_description) %> :</label>
|
||
<textarea id="news_description" name="news[description]" placeholder="最多3000个汉字(或6000个英文字符)" class="hwork_text fl" onkeyup="regexDescription();" maxlength="6000"><%= is_new ? '' : @news.description %></textarea>
|
||
<p id="description_notice_span" class="ml55"></p>
|
||
</li>
|
||
<div class="cl"></div>
|
||
<li class="ml45">
|
||
<label class="fl"> <%= l(:label_attachment_plural) %> :</label>
|
||
<%= render :partial => 'attachments/new_form', :locals => {:container => @news} %>
|
||
<div class="cl"></div>
|
||
</li>
|
||
<li class=" ml90" >
|
||
<% if is_new %>
|
||
<%= link_to l(:button_create), "#", :onclick => 'submitNews();', :onmouseover => 'submitFocus(this);', :class => 'blue_btn fl c_white' %>
|
||
<%= link_to l(:button_cancel), project_news_index_path(@project), :onclick => '$("#add-news").hide()', :class => 'blue_btn grey_btn fl c_white' %>
|
||
<% else %>
|
||
<%= link_to l(:button_save), "#", :onclick => 'submitNews();',:onmouseover => 'this.focus()',:class => 'blue_btn fl c_white' %>
|
||
<%= link_to l(:button_cancel), "#", :onclick => '$("#edit-news").hide(); return false;',:class => 'blue_btn grey_btn fl c_white' %>
|
||
<% end %>
|
||
<div class="cl"></div>
|
||
</li>
|
||
<!-- <#%= wikitoolbar_for 'news_description'%>--> |