2013-11-23 20:56:22 +08:00
|
|
|
<%= labelled_form_for(@memo, :url => forum_memos_path) do |f| %>
|
|
|
|
<% if @memo.errors.any? %>
|
|
|
|
<div id="error_explanation">
|
|
|
|
<h2><%= pluralize(@memo.errors.count, "error") %> prohibited this memo from being saved:</h2>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<% @memo.errors.full_messages.each do |msg| %>
|
|
|
|
<li><%= msg %></li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2013-11-29 18:14:49 +08:00
|
|
|
<div class="actions" style="style="max-width:680px"">
|
|
|
|
<p><%= f.text_field :subject, :required => true, :size => 95 %></p>
|
|
|
|
<p style="max-width:680px"><%= f.text_area :content, :required => true, :id => 'editor01' %></p>
|
|
|
|
<script type="text/javascript">var ckeditor=CKEDITOR.replace('editor01');</script>
|
2013-11-26 16:32:08 +08:00
|
|
|
<br/>
|
2013-11-29 18:14:49 +08:00
|
|
|
<p>
|
|
|
|
<%= l(:label_attachment_plural) %><br />
|
|
|
|
<%= render :partial => 'attachments/form', :locals => {:container => @memo} %>
|
|
|
|
</p>
|
|
|
|
<%= f.submit :value => l(:label_memo_create) %>
|
2013-11-23 20:56:22 +08:00
|
|
|
</div>
|
|
|
|
<% end %>
|