<% @replying ||= false %>

<%=l(:label_memo_edit)%>

<%= labelled_form_for(@memo, :url => forum_memo_path(@memo.forum_id, @memo)) do |f| %> <% if @memo.errors.any? %>

<%= pluralize(@memo.errors.count, "error") %> prohibited this memo from being saved:

<% end %>

<%= f.text_field :subject, :required => true, :size => 96 %>

<% unless @replying %> <% if @memo.safe_attribute? 'sticky' %> <%= f.check_box :sticky %> <%= label_tag 'memo_sticky', l(:label_board_sticky) %> <% end %> <% if @memo.safe_attribute? 'lock' %> <%= f.check_box :lock %> <%= label_tag 'memo_locked', l(:label_board_locked) %> <% end %> <% end %>

<%= f.text_area :content, :required => true, :size => 80, id: 'editor01' %>


<%= f.submit :value => l(:button_change) %>
<% end %> <%= link_to l(:button_back), back_url %>