@@ -1,26 +1,26 | |||||
1 | <%= error_messages_for 'message' %> |
|
1 | <%= error_messages_for 'message' %> | |
2 | <% replying ||= false %> |
|
2 | <% replying ||= false %> | |
3 |
|
3 | |||
4 | <div class="box"> |
|
4 | <div class="box"> | |
5 | <!--[form:message]--> |
|
5 | <!--[form:message]--> | |
6 | <p><label><%= l(:field_subject) %></label><br /> |
|
6 | <p><label><%= l(:field_subject) %></label><br /> | |
7 | <%= f.text_field :subject, :size => 120 %> |
|
7 | <%= f.text_field :subject, :size => 120 %> | |
8 |
|
8 | |||
9 | <% if !replying && User.current.allowed_to?(:edit_messages, @project) %> |
|
9 | <% if !replying && User.current.allowed_to?(:edit_messages, @project) %> | |
10 | <label><%= f.check_box :sticky %><%= l(:label_board_sticky) %></label> |
|
10 | <label><%= f.check_box :sticky %><%= l(:label_board_sticky) %></label> | |
11 | <label><%= f.check_box :locked %><%= l(:label_board_locked) %></label> |
|
11 | <label><%= f.check_box :locked %><%= l(:label_board_locked) %></label> | |
12 | <% end %> |
|
12 | <% end %> | |
13 | </p> |
|
13 | </p> | |
14 |
|
14 | |||
15 | <% if !replying && !@message.new_record? && User.current.allowed_to?(:edit_messages, @project) %> |
|
15 | <% if !replying && !@message.new_record? && User.current.allowed_to?(:edit_messages, @project) %> | |
16 |
|
|
16 | <p><label><%= l(:label_board) %></label><br /> | |
17 | <%= f.select :board_id, @project.boards.collect {|b| [b.name, b.id]} %></p> |
|
17 | <%= f.select :board_id, @project.boards.collect {|b| [b.name, b.id]} %></p> | |
18 | <% end %> |
|
18 | <% end %> | |
19 |
|
19 | |||
20 | <p><%= f.text_area :content, :cols => 80, :rows => 15, :class => 'wiki-edit', :id => 'message_content' %></p> |
|
20 | <p><%= f.text_area :content, :cols => 80, :rows => 15, :class => 'wiki-edit', :id => 'message_content' %></p> | |
21 | <%= wikitoolbar_for 'message_content' %> |
|
21 | <%= wikitoolbar_for 'message_content' %> | |
22 | <!--[eoform:message]--> |
|
22 | <!--[eoform:message]--> | |
23 |
|
23 | |||
24 | <p><%= l(:label_attachment_plural) %><br /> |
|
24 | <p><%= l(:label_attachment_plural) %><br /> | |
25 | <%= render :partial => 'attachments/form' %></p> |
|
25 | <%= render :partial => 'attachments/form' %></p> | |
26 | </div> |
|
26 | </div> |
General Comments 0
You need to be logged in to leave comments.
Login now