socialforge/app/views/relative_memos/_reply_box.html.erb

14 lines
892 B
Plaintext
Raw Normal View History

2014-04-28 11:04:10 +08:00
<%= form_for(@mome_new, url: open_source_project_relative_memos_path, :html => {:multipart => true}) do |f| %>
<%= f.hidden_field :subject, :required => true, value: @memo.subject %>
<%= f.hidden_field :osp_id, :required => true, value: @memo.osp_id %>
<%= f.hidden_field :parent_id, :required => true, value: @memo.id %>
<%= label_tag(l(:label_reply_plural)) %>:
<!-- <p> < %= f.text_area :content, :required => true, :size => "75%", :resize => "none", id: 'editor01' %> </p> -->
<%= f.text_area :content, :cols => 80, :rows => 15, :class => 'wiki-edit', :id => 'editor01', :value => @content %></p>
<script type="text/javascript">var ckeditor=CKEDITOR.replace('editor01');</script>
<p><%#= l(:label_attachment_plural) %><br />
<%#= render :partial => 'attachments/form' %>
</p>
<%= f.submit value: l(:label_reply_plural), class: "replies" %>
<% end %>