2007-05-13 21:09:56 +04:00
|
|
|
<%= error_messages_for 'message' %>
|
2008-01-13 21:33:55 +03:00
|
|
|
<% replying ||= false %>
|
2007-05-13 21:09:56 +04:00
|
|
|
|
|
|
|
<div class="box">
|
|
|
|
<!--[form:message]-->
|
|
|
|
<p><label><%= l(:field_subject) %></label><br />
|
2008-02-29 22:46:58 +03:00
|
|
|
<%= f.text_field :subject, :size => 120 %>
|
2007-11-24 15:25:07 +03:00
|
|
|
|
2008-01-13 21:33:55 +03:00
|
|
|
<% if !replying && User.current.allowed_to?(:edit_messages, @project) %>
|
2010-01-25 20:26:02 +03:00
|
|
|
<label><%= f.check_box :sticky %><%= l(:label_board_sticky) %></label>
|
|
|
|
<label><%= f.check_box :locked %><%= l(:label_board_locked) %></label>
|
2007-11-24 15:25:07 +03:00
|
|
|
<% end %>
|
|
|
|
</p>
|
2007-05-13 21:09:56 +04:00
|
|
|
|
2009-04-05 14:08:11 +04:00
|
|
|
<% if !replying && !@message.new_record? && User.current.allowed_to?(:edit_messages, @project) %>
|
2011-09-18 06:44:48 +04:00
|
|
|
<p><label><%= l(:label_board) %></label><br />
|
2009-04-05 14:08:11 +04:00
|
|
|
<%= f.select :board_id, @project.boards.collect {|b| [b.name, b.id]} %></p>
|
|
|
|
<% end %>
|
|
|
|
|
2008-02-29 22:46:58 +03:00
|
|
|
<p><%= f.text_area :content, :cols => 80, :rows => 15, :class => 'wiki-edit', :id => 'message_content' %></p>
|
2007-05-13 21:09:56 +04:00
|
|
|
<%= wikitoolbar_for 'message_content' %>
|
|
|
|
<!--[eoform:message]-->
|
|
|
|
|
2008-02-29 22:46:58 +03:00
|
|
|
<p><%= l(:label_attachment_plural) %><br />
|
|
|
|
<%= render :partial => 'attachments/form' %></p>
|
2007-05-13 21:09:56 +04:00
|
|
|
</div>
|