annotate app/views/journals/_notes_form.rhtml @ 885:949998e221e9
feature_72
Close obsolete branch feature_72
author |
Chris Cannam |
date |
Tue, 22 Mar 2011 14:40:14 +0000 |
parents |
513646585e45 |
children |
cbce1fd3b1b7 |
rev |
line source |
Chris@0
|
1 <% form_remote_tag(:url => {}, :html => { :id => "journal-#{@journal.id}-form" }) do %>
|
Chris@0
|
2 <%= text_area_tag :notes, @journal.notes, :class => 'wiki-edit',
|
Chris@0
|
3 :rows => (@journal.notes.blank? ? 10 : [[10, @journal.notes.length / 50].max, 100].min) %>
|
Chris@0
|
4 <%= call_hook(:view_journals_notes_form_after_notes, { :journal => @journal}) %>
|
Chris@0
|
5 <p><%= submit_tag l(:button_save) %>
|
Chris@0
|
6 <%= link_to l(:button_cancel), '#', :onclick => "Element.remove('journal-#{@journal.id}-form'); " +
|
Chris@0
|
7 "Element.show('journal-#{@journal.id}-notes'); return false;" %></p>
|
Chris@0
|
8 <% end %>
|