|
|
@ -3,17 +3,17 @@
|
|
|
|
<h3><%=l(:label_memo_new)%></h3>
|
|
|
|
<h3><%=l(:label_memo_new)%></h3>
|
|
|
|
<% if User.current.logged? %>
|
|
|
|
<% if User.current.logged? %>
|
|
|
|
<%= labelled_form_for(@memo, :url => create_memo_forum_path(@forum), :html => {:multipart => true} ) do |f| %>
|
|
|
|
<%= labelled_form_for(@memo, :url => create_memo_forum_path(@forum), :html => {:multipart => true} ) do |f| %>
|
|
|
|
<% if @memo.errors.any? %>
|
|
|
|
<!--<#% if @memo.errors.any? %>
|
|
|
|
<div id="error_explanation">
|
|
|
|
<div id="error_explanation">
|
|
|
|
<h2><%= pluralize(@memo.errors.count, "error") %> prohibited this memo from being saved:</h2>
|
|
|
|
<h2><#%= pluralize(@memo.errors.count, "error") %> prohibited this memo from being saved:</h2>
|
|
|
|
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<ul>
|
|
|
|
<% @memo.errors.full_messages.each do |msg| %>
|
|
|
|
<#% @memo.errors.full_messages.each do |msg| %>
|
|
|
|
<li><%= msg %></li>
|
|
|
|
<li><#%= msg %></li>
|
|
|
|
<% end %>
|
|
|
|
<#% end %>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<#% end %> -->
|
|
|
|
<div class="actions" style="max-width:680px">
|
|
|
|
<div class="actions" style="max-width:680px">
|
|
|
|
<p><%= f.text_field :subject, :required => true%></p>
|
|
|
|
<p><%= f.text_field :subject, :required => true%></p>
|
|
|
|
<p style="max-width:680px"><%= f.text_area :content, :required => true, :id => 'editor02' %></p>
|
|
|
|
<p style="max-width:680px"><%= f.text_area :content, :required => true, :id => 'editor02' %></p>
|
|
|
|