Project

General

Profile

Feature #1070 » _note_form.rhtml

additional partial form for editing notes - Carl Nygard, 2008-04-16 20:20

 
1
<%= error_messages_for 'issue' %>
2
<div class="box">
3
<h3><% if f.object.new_record? %>
4
<%= l(:label_note_add) %>
5
<% else %>
6
<%= l(:label_note_edit) %>
7
<% end %>
8
</h3>
9

    
10
<p><%= f.text_area :notes, :required => true,
11
                   :cols => 60,
12
                   :rows => (f.object.notes.blank? ? 10 : [[10, f.object.notes.length / 50].max, 100].min),
13
                   :accesskey => accesskey(:edit),
14
                   :class => 'wiki-edit' %></p>
15

    
16
<%= wikitoolbar_for 'journal_notes' %>
17

    
18
<% if f.object.new_record? %>
19
  <%= render :partial => 'attachments/form' %>
20
<% end %>
21
</div>
22

    
23

    
(2-2/2)