To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / .svn / pristine / 48 / 48b4396c87b793f88c5ab4bc586ea45f81977244.svn-base @ 1297:0a574315af3e

History | View | Annotate | Download (1.07 KB)

1
<%= error_messages_for 'message' %>
2
<% replying ||= false %>
3

    
4
<div class="box">
5
<!--[form:message]-->
6
<p><label for="message_subject"><%= l(:field_subject) %></label><br />
7
<%= f.text_field :subject, :size => 120, :id => "message_subject" %>
8

    
9
<% if !replying && User.current.allowed_to?(:edit_messages, @project) %>
10
    <label><%= f.check_box :sticky %><%= l(:label_board_sticky) %></label>
11
    <label><%= f.check_box :locked %><%= l(:label_board_locked) %></label>
12
<% end %>
13
</p>
14

    
15
<% if !replying && !@message.new_record? && User.current.allowed_to?(:edit_messages, @project) %>
16
  <p><label><%= l(:label_board) %></label><br />
17
  <%= f.select :board_id, @project.boards.collect {|b| [b.name, b.id]} %></p>
18
<% end %>
19

    
20
<p>
21
<%= label_tag "message_content", l(:description_message_content), :class => "hidden-for-sighted" %>
22
<%= f.text_area :content, :cols => 80, :rows => 15, :class => 'wiki-edit', :id => 'message_content' %></p>
23
<%= wikitoolbar_for 'message_content' %>
24
<!--[eoform:message]-->
25

    
26
<p><%= l(:label_attachment_plural) %><br />
27
<%= render :partial => 'attachments/form' %></p>
28
</div>