Mercurial > hg > soundsoftware-site
comparison app/views/journals/.svn/text-base/_notes_form.rhtml.svn-base @ 441:cbce1fd3b1b7 redmine-1.2
Update to Redmine 1.2-stable branch (Redmine SVN rev 6000)
author | Chris Cannam |
---|---|
date | Mon, 06 Jun 2011 14:24:13 +0100 |
parents | 513646585e45 |
children |
comparison
equal
deleted
inserted
replaced
245:051f544170fe | 441:cbce1fd3b1b7 |
---|---|
1 <% form_remote_tag(:url => {}, :html => { :id => "journal-#{@journal.id}-form" }) do %> | 1 <% form_remote_tag(:url => {}, :html => { :id => "journal-#{@journal.id}-form" }) do %> |
2 <%= text_area_tag :notes, @journal.notes, :class => 'wiki-edit', | 2 <%= text_area_tag :notes, @journal.notes, |
3 :rows => (@journal.notes.blank? ? 10 : [[10, @journal.notes.length / 50].max, 100].min) %> | 3 :id => "journal_#{@journal.id}_notes", |
4 :class => 'wiki-edit', | |
5 :rows => (@journal.notes.blank? ? 10 : [[10, @journal.notes.length / 50].max, 100].min) %> | |
4 <%= call_hook(:view_journals_notes_form_after_notes, { :journal => @journal}) %> | 6 <%= call_hook(:view_journals_notes_form_after_notes, { :journal => @journal}) %> |
5 <p><%= submit_tag l(:button_save) %> | 7 <p><%= submit_tag l(:button_save) %> |
8 <%= link_to_remote l(:label_preview), | |
9 { :url => preview_issue_path(:project_id => @project, :id => @journal.issue), | |
10 :method => 'post', | |
11 :update => "journal_#{@journal.id}_preview", | |
12 :with => "Form.serialize('journal-#{@journal.id}-form')", | |
13 :complete => "Element.scrollTo('journal_#{@journal.id}_preview')" | |
14 }, :accesskey => accesskey(:preview) %> | |
15 | | |
6 <%= link_to l(:button_cancel), '#', :onclick => "Element.remove('journal-#{@journal.id}-form'); " + | 16 <%= link_to l(:button_cancel), '#', :onclick => "Element.remove('journal-#{@journal.id}-form'); " + |
7 "Element.show('journal-#{@journal.id}-notes'); return false;" %></p> | 17 "Element.show('journal-#{@journal.id}-notes'); return false;" %></p> |
18 | |
19 <div id="journal_<%= @journal.id %>_preview" class="wiki"></div> | |
8 <% end %> | 20 <% end %> |
21 <%= wikitoolbar_for "journal_#{@journal.id}_notes" %> |