@@ -1,11 +1,12 | |||
|
1 | 1 | <%= error_messages_for 'message' %> |
|
2 | <% replying ||= false %> | |
|
2 | 3 | |
|
3 | 4 | <div class="box"> |
|
4 | 5 | <!--[form:message]--> |
|
5 | 6 | <p><label><%= l(:field_subject) %></label><br /> |
|
6 | 7 | <%= f.text_field :subject, :required => true, :size => 120 %> |
|
7 | 8 | |
|
8 | <% if User.current.allowed_to?(:edit_messages, @project) %> | |
|
9 | <% if !replying && User.current.allowed_to?(:edit_messages, @project) %> | |
|
9 | 10 | <label><%= f.check_box :sticky %> Sticky</label> |
|
10 | 11 | <label><%= f.check_box :locked %> Locked</label> |
|
11 | 12 | <% end %> |
@@ -32,7 +32,7 | |||
|
32 | 32 | <p><%= toggle_link l(:button_reply), "reply", :focus => 'message_content' %></p> |
|
33 | 33 | <div id="reply" style="display:none;"> |
|
34 | 34 | <% form_for :reply, @reply, :url => {:action => 'reply', :id => @topic}, :html => {:multipart => true} do |f| %> |
|
35 | <%= render :partial => 'form', :locals => {:f => f} %> | |
|
35 | <%= render :partial => 'form', :locals => {:f => f, :replying => true} %> | |
|
36 | 36 | <%= submit_tag l(:button_submit) %> |
|
37 | 37 | <% end %> |
|
38 | 38 | </div> |
General Comments 0
You need to be logged in to leave comments.
Login now