You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_form.rhtml 945B

1234567891011121314151617181920212223242526
  1. <%= error_messages_for 'message' %>
  2. <% replying ||= false %>
  3. <div class="box">
  4. <!--[form:message]-->
  5. <p><label><%= l(:field_subject) %></label><br />
  6. <%= f.text_field :subject, :size => 120 %>
  7. <% if !replying && User.current.allowed_to?(:edit_messages, @project) %>
  8. <label><%= f.check_box :sticky %><%= l(:label_board_sticky) %></label>
  9. <label><%= f.check_box :locked %><%= l(:label_board_locked) %></label>
  10. <% end %>
  11. </p>
  12. <% if !replying && !@message.new_record? && User.current.allowed_to?(:edit_messages, @project) %>
  13. <p><label><%= l(:label_board) %></label><br />
  14. <%= f.select :board_id, @project.boards.collect {|b| [b.name, b.id]} %></p>
  15. <% end %>
  16. <p><%= f.text_area :content, :cols => 80, :rows => 15, :class => 'wiki-edit', :id => 'message_content' %></p>
  17. <%= wikitoolbar_for 'message_content' %>
  18. <!--[eoform:message]-->
  19. <p><%= l(:label_attachment_plural) %><br />
  20. <%= render :partial => 'attachments/form' %></p>
  21. </div>