_form.rhtml
26 lines
| 901 B
| text/html+ruby
|
RhtmlLexer
|
r526 | <%= error_messages_for 'message' %> | ||
|
r1048 | <% replying ||= false %> | ||
|
r526 | |||
<div class="box"> | ||||
<!--[form:message]--> | ||||
<p><label><%= l(:field_subject) %></label><br /> | ||||
|
r1166 | <%= f.text_field :subject, :size => 120 %> | ||
|
r913 | |||
|
r1048 | <% if !replying && User.current.allowed_to?(:edit_messages, @project) %> | ||
|
r913 | <label><%= f.check_box :sticky %> Sticky</label> | ||
<label><%= f.check_box :locked %> Locked</label> | ||||
<% end %> | ||||
</p> | ||||
|
r526 | |||
|
r2560 | <% 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 %> | ||||
|
r1166 | <p><%= f.text_area :content, :cols => 80, :rows => 15, :class => 'wiki-edit', :id => 'message_content' %></p> | ||
|
r526 | <%= wikitoolbar_for 'message_content' %> | ||
<!--[eoform:message]--> | ||||
|
r1166 | <p><%= l(:label_attachment_plural) %><br /> | ||
<%= render :partial => 'attachments/form' %></p> | ||||
|
r526 | </div> | ||