% @replying = !@memo.parent.nil? %>
<%= f.text_field :subject, :required => true, :size => 96 ,:readonly => @replying, :maxlength => 50%>
<% if User.current.admin?%><% 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 %>
<% end %><%= f.text_area :content, :required => true, :size => 80, id: 'editor01' %>
<%= l(:label_attachment_plural) %>
<%= render :partial => 'attachments/form', :locals => {:container => @memo} %>