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.html.erb @ 912:5e80956cc792
History | View | Annotate | Download (1.07 KB)
| 1 | 0:513646585e45 | Chris | <%= error_messages_for 'message' %>
|
|---|---|---|---|
| 2 | <% replying ||= false %>
|
||
| 3 | |||
| 4 | <div class="box"> |
||
| 5 | <!--[form:message]-->
|
||
| 6 | 909:cbb26bc654de | Chris | <p><label for="message_subject"><%= l(:field_subject) %></label><br /> |
| 7 | <%= f.text_field :subject, :size => 120, :id => "message_subject" %>
|
||
| 8 | 0:513646585e45 | Chris | |
| 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 | 909:cbb26bc654de | Chris | <p><label><%= l(:label_board) %></label><br /> |
| 17 | 0:513646585e45 | Chris | <%= f.select :board_id, @project.boards.collect {|b| [b.name, b.id]} %></p> |
| 18 | <% end %>
|
||
| 19 | |||
| 20 | 909:cbb26bc654de | Chris | <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 | 0:513646585e45 | Chris | <%= wikitoolbar_for 'message_content' %>
|
| 24 | <!--[eoform:message]-->
|
||
| 25 | |||
| 26 | <p><%= l(:label_attachment_plural) %><br /> |
||
| 27 | <%= render :partial => 'attachments/form' %></p> |
||
| 28 | </div> |