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]-->
|
2011-10-29 05:16:48 +04:00
|
|
|
<p><label for="message_subject"><%= l(:field_subject) %></label><br />
|
|
|
|
<%= f.text_field :subject, :size => 120, :id => "message_subject" %>
|
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 %>
|
|
|
|
|
2011-10-29 05:16:48 +04:00
|
|
|
<p>
|
|
|
|
<%= label_tag "message_content", l(:description_message_content), :class => "hidden-for-sighted" %>
|
|
|
|
<%= 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 />
|
2012-02-23 17:02:35 +04:00
|
|
|
<%= render :partial => 'attachments/form', :locals => {:container => @message} %></p>
|
2007-05-13 21:09:56 +04:00
|
|
|
</div>
|