|
|
|
@ -3,24 +3,12 @@
|
|
|
|
|
<h3><%=l(:label_memo_new)%></h3>
|
|
|
|
|
<% if User.current.logged? %>
|
|
|
|
|
<%= labelled_form_for(@memo, :url => create_memo_forum_path(@forum), :html => {:multipart => true} ) 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 %> -->
|
|
|
|
|
<div class="actions" style="max-width:680px">
|
|
|
|
|
<p><%= f.text_field :subject, :required => true%></p>
|
|
|
|
|
<p style="max-width:680px"><%= f.text_area :content, :required => true, :id => 'editor02' %></p>
|
|
|
|
|
<script type="text/javascript">var ckeditor=CKEDITOR.replace('editor02');</script>
|
|
|
|
|
<p style="color: #ff0000">(<%= l(:label_memos_max_length) %>)</p>
|
|
|
|
|
<p>
|
|
|
|
|
|
|
|
|
|
<%= l(:label_attachment_plural) %><br />
|
|
|
|
|
<%= render :partial => 'attachments/form', :locals => {:container => @memo} %>
|
|
|
|
|
</p>
|
|
|
|
|