To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / journals / .svn / text-base / _notes_form.rhtml.svn-base @ 442:753f1380d6bc
History | View | Annotate | Download (1.27 KB)
| 1 | 0:513646585e45 | Chris | <% form_remote_tag(:url => {}, :html => { :id => "journal-#{@journal.id}-form" }) do %>
|
|---|---|---|---|
| 2 | 441:cbce1fd3b1b7 | Chris | <%= text_area_tag :notes, @journal.notes, |
| 3 | :id => "journal_#{@journal.id}_notes",
|
||
| 4 | :class => 'wiki-edit', |
||
| 5 | :rows => (@journal.notes.blank? ? 10 : [[10, @journal.notes.length / 50].max, 100].min) %> |
||
| 6 | 0:513646585e45 | Chris | <%= call_hook(:view_journals_notes_form_after_notes, { :journal => @journal}) %>
|
| 7 | <p><%= submit_tag l(:button_save) %> |
||
| 8 | 441:cbce1fd3b1b7 | Chris | <%= 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 | | |
||
| 16 | 0:513646585e45 | Chris | <%= link_to l(:button_cancel), '#', :onclick => "Element.remove('journal-#{@journal.id}-form'); " +
|
| 17 | "Element.show('journal-#{@journal.id}-notes'); return false;" %></p>
|
||
| 18 | 441:cbce1fd3b1b7 | Chris | |
| 19 | <div id="journal_<%= @journal.id %>_preview" class="wiki"></div> |
||
| 20 | 0:513646585e45 | Chris | <% end %> |
| 21 | 441:cbce1fd3b1b7 | Chris | <%= wikitoolbar_for "journal_#{@journal.id}_notes" %> |