Mercurial > hg > soundsoftware-site
view app/views/messages/_form.rhtml @ 22:40f7cfd4df19
* Update to SVN trunk rev 4173
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Fri, 24 Sep 2010 14:06:04 +0100 |
parents | 513646585e45 |
children |
line wrap: on
line source
<%= error_messages_for 'message' %> <% replying ||= false %> <div class="box"> <!--[form:message]--> <p><label><%= l(:field_subject) %></label><br /> <%= f.text_field :subject, :size => 120 %> <% if !replying && User.current.allowed_to?(:edit_messages, @project) %> <label><%= f.check_box :sticky %><%= l(:label_board_sticky) %></label> <label><%= f.check_box :locked %><%= l(:label_board_locked) %></label> <% end %> </p> <% if !replying && !@message.new_record? && User.current.allowed_to?(:edit_messages, @project) %> <p><label><%= l(:label_board) %></label><br /> <%= f.select :board_id, @project.boards.collect {|b| [b.name, b.id]} %></p> <% end %> <p><%= f.text_area :content, :cols => 80, :rows => 15, :class => 'wiki-edit', :id => 'message_content' %></p> <%= wikitoolbar_for 'message_content' %> <!--[eoform:message]--> <p><%= l(:label_attachment_plural) %><br /> <%= render :partial => 'attachments/form' %></p> </div>