annotate app/views/journals/_notes_form.rhtml @ 860:e982e4e12aa6
feature_125
Close obsolete branch feature_125
author |
Chris Cannam |
date |
Tue, 28 Jun 2011 12:37:09 +0100 |
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 %>
|