@@ -1,28 +1,32 | |||
|
1 | 1 | <%= error_messages_for 'message' %> |
|
2 | 2 | <% replying ||= false %> |
|
3 | 3 | |
|
4 | 4 | <div class="box"> |
|
5 | 5 | <!--[form:message]--> |
|
6 | 6 | <p><label for="message_subject"><%= l(:field_subject) %></label><br /> |
|
7 | 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 | 11 | <label><%= f.check_box :sticky %><%= l(:label_board_sticky) %></label> |
|
12 | <% end %> | |
|
13 | <% if @message.safe_attribute? 'locked' %> | |
|
11 | 14 | <label><%= f.check_box :locked %><%= l(:label_board_locked) %></label> |
|
12 | 15 | <% end %> |
|
16 | <% end %> | |
|
13 | 17 | </p> |
|
14 | 18 | |
|
15 |
<% if !replying && !@message.new_record? && |
|
|
19 | <% if !replying && !@message.new_record? && @message.safe_attribute?('board_id') %> | |
|
16 | 20 | <p><label><%= l(:label_board) %></label><br /> |
|
17 | 21 | <%= f.select :board_id, @project.boards.collect {|b| [b.name, b.id]} %></p> |
|
18 | 22 | <% end %> |
|
19 | 23 | |
|
20 | 24 | <p> |
|
21 | 25 | <%= label_tag "message_content", l(:description_message_content), :class => "hidden-for-sighted" %> |
|
22 | 26 | <%= f.text_area :content, :cols => 80, :rows => 15, :class => 'wiki-edit', :id => 'message_content' %></p> |
|
23 | 27 | <%= wikitoolbar_for 'message_content' %> |
|
24 | 28 | <!--[eoform:message]--> |
|
25 | 29 | |
|
26 | 30 | <p><%= l(:label_attachment_plural) %><br /> |
|
27 | 31 | <%= render :partial => 'attachments/form', :locals => {:container => @message} %></p> |
|
28 | 32 | </div> |
General Comments 0
You need to be logged in to leave comments.
Login now