@@ -6,13 +6,17 | |||||
6 | <p><label for="message_subject"><%= l(:field_subject) %></label><br /> |
|
6 | <p><label for="message_subject"><%= l(:field_subject) %></label><br /> | |
7 | <%= f.text_field :subject, :size => 120, :id => "message_subject" %> |
|
7 | <%= f.text_field :subject, :size => 120, :id => "message_subject" %> | |
8 |
|
8 | |||
9 | <% if !replying && User.current.allowed_to?(:edit_messages, @project) %> |
|
9 | <% unless replying %> | |
|
10 | <% if @message.safe_attribute? 'sticky' %> | |||
10 | <label><%= f.check_box :sticky %><%= l(:label_board_sticky) %></label> |
|
11 | <label><%= f.check_box :sticky %><%= l(:label_board_sticky) %></label> | |
|
12 | <% end %> | |||
|
13 | <% if @message.safe_attribute? 'locked' %> | |||
11 | <label><%= f.check_box :locked %><%= l(:label_board_locked) %></label> |
|
14 | <label><%= f.check_box :locked %><%= l(:label_board_locked) %></label> | |
|
15 | <% end %> | |||
12 | <% end %> |
|
16 | <% end %> | |
13 | </p> |
|
17 | </p> | |
14 |
|
18 | |||
15 |
<% if !replying && !@message.new_record? && |
|
19 | <% if !replying && !@message.new_record? && @message.safe_attribute?('board_id') %> | |
16 | <p><label><%= l(:label_board) %></label><br /> |
|
20 | <p><label><%= l(:label_board) %></label><br /> | |
17 | <%= f.select :board_id, @project.boards.collect {|b| [b.name, b.id]} %></p> |
|
21 | <%= f.select :board_id, @project.boards.collect {|b| [b.name, b.id]} %></p> | |
18 | <% end %> |
|
22 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now