#1284 公告贴吧:编辑回帖中“置顶”、“锁定”操作不可用,回帖不可‘置顶’、‘锁定’,隐藏这两项,且将主题修改为不可编辑

This commit is contained in:
z9hang 2014-09-25 16:10:31 +08:00
parent 21343a0111
commit 0eaf95b53d
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<!-- <h1>New memo</h1> --> <!-- <h1>New memo</h1> -->
<% @replying ||= false %> <% @replying = !@memo.parent.nil? %>
<h3><%=l(:label_memo_edit)%></h3> <h3><%=l(:label_memo_edit)%></h3>
<%= labelled_form_for(@memo, :url => forum_memo_path(@memo.forum_id, @memo)) do |f| %> <%= labelled_form_for(@memo, :url => forum_memo_path(@memo.forum_id, @memo)) do |f| %>
<% if @memo.errors.any? %> <% if @memo.errors.any? %>
@ -13,7 +13,7 @@
</div> </div>
<% end %> <% end %>
<div class="actions"> <div class="actions">
<p><%= f.text_field :subject, :required => true, :size => 96 %></p> <p><%= f.text_field :subject, :required => true, :size => 96 ,:readonly => @replying%></p>
<p> <p>
<% unless @replying %> <% unless @replying %>
<% if @memo.safe_attribute? 'sticky' %> <% if @memo.safe_attribute? 'sticky' %>