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 />
|
2007-11-24 15:25:07 +03:00
|
|
|
<%= f.text_field :subject, :required => true, :size => 120 %>
|
|
|
|
|
2008-01-13 21:33:55 +03:00
|
|
|
<% if !replying && User.current.allowed_to?(:edit_messages, @project) %>
|
2007-11-24 15:25:07 +03:00
|
|
|
<label><%= f.check_box :sticky %> Sticky</label>
|
|
|
|
<label><%= f.check_box :locked %> Locked</label>
|
|
|
|
<% end %>
|
|
|
|
</p>
|
2007-05-13 21:09:56 +04:00
|
|
|
|
2007-11-22 22:19:47 +03:00
|
|
|
<p><%= f.text_area :content, :required => true, :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]-->
|
|
|
|
|
|
|
|
<span class="tabular">
|
2007-05-26 19:42:37 +04:00
|
|
|
<%= render :partial => 'attachments/form' %>
|
2007-11-22 22:19:47 +03:00
|
|
|
</span>
|
2007-05-13 21:09:56 +04:00
|
|
|
</div>
|