Do not show sticky and locked checkboxes when replying to a message.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1062 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
df30e18a8c
commit
8b710cf9de
|
@ -1,11 +1,12 @@
|
||||||
<%= error_messages_for 'message' %>
|
<%= error_messages_for 'message' %>
|
||||||
|
<% replying ||= false %>
|
||||||
|
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<!--[form:message]-->
|
<!--[form:message]-->
|
||||||
<p><label><%= l(:field_subject) %></label><br />
|
<p><label><%= l(:field_subject) %></label><br />
|
||||||
<%= f.text_field :subject, :required => true, :size => 120 %>
|
<%= f.text_field :subject, :required => true, :size => 120 %>
|
||||||
|
|
||||||
<% if User.current.allowed_to?(:edit_messages, @project) %>
|
<% if !replying && User.current.allowed_to?(:edit_messages, @project) %>
|
||||||
<label><%= f.check_box :sticky %> Sticky</label>
|
<label><%= f.check_box :sticky %> Sticky</label>
|
||||||
<label><%= f.check_box :locked %> Locked</label>
|
<label><%= f.check_box :locked %> Locked</label>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
<p><%= toggle_link l(:button_reply), "reply", :focus => 'message_content' %></p>
|
<p><%= toggle_link l(:button_reply), "reply", :focus => 'message_content' %></p>
|
||||||
<div id="reply" style="display:none;">
|
<div id="reply" style="display:none;">
|
||||||
<% form_for :reply, @reply, :url => {:action => 'reply', :id => @topic}, :html => {:multipart => true} do |f| %>
|
<% form_for :reply, @reply, :url => {:action => 'reply', :id => @topic}, :html => {:multipart => true} do |f| %>
|
||||||
<%= render :partial => 'form', :locals => {:f => f} %>
|
<%= render :partial => 'form', :locals => {:f => f, :replying => true} %>
|
||||||
<%= submit_tag l(:button_submit) %>
|
<%= submit_tag l(:button_submit) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue