2008-02-02 13:50:31 +03:00
|
|
|
<% form_remote_tag(:url => {}, :html => { :id => "journal-#{@journal.id}-form" }) do %>
|
|
|
|
<%= text_area_tag :notes, @journal.notes, :class => 'wiki-edit',
|
|
|
|
:rows => (@journal.notes.blank? ? 10 : [[10, @journal.notes.length / 50].max, 100].min) %>
|
2008-12-11 02:44:22 +03:00
|
|
|
<%= call_hook(:view_journals_notes_form_after_notes, { :journal => @journal}) %>
|
2008-02-02 13:50:31 +03:00
|
|
|
<p><%= submit_tag l(:button_save) %>
|
|
|
|
<%= link_to l(:button_cancel), '#', :onclick => "Element.remove('journal-#{@journal.id}-form'); " +
|
|
|
|
"Element.show('journal-#{@journal.id}-notes'); return false;" %></p>
|
|
|
|
<% end %>
|