To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / messages / _form.rhtml @ 442:753f1380d6bc
History | View | Annotate | Download (945 Bytes)
| 1 |
<%= error_messages_for 'message' %>
|
|---|---|
| 2 |
<% replying ||= false %>
|
| 3 |
|
| 4 |
<div class="box"> |
| 5 |
<!--[form:message]-->
|
| 6 |
<p><label><%= l(:field_subject) %></label><br /> |
| 7 |
<%= f.text_field :subject, :size => 120 %>
|
| 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><%= f.text_area :content, :cols => 80, :rows => 15, :class => 'wiki-edit', :id => 'message_content' %></p> |
| 21 |
<%= wikitoolbar_for 'message_content' %>
|
| 22 |
<!--[eoform:message]-->
|
| 23 |
|
| 24 |
<p><%= l(:label_attachment_plural) %><br /> |
| 25 |
<%= render :partial => 'attachments/form' %></p> |
| 26 |
</div>
|