To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / .svn / pristine / 25 / 259870e377324ce9639c6de14a859fead9c01fbd.svn-base @ 1297:0a574315af3e
History | View | Annotate | Download (1.08 KB)
| 1 | 1296:038ba2d95de8 | Chris | <%= form_tag({:controller => 'journals', :action => 'edit', :id => @journal},
|
|---|---|---|---|
| 2 | :remote => true, |
||
| 3 | :id => "journal-#{@journal.id}-form") do %>
|
||
| 4 | <%= label_tag "notes", l(:description_notes), :class => "hidden-for-sighted" %> |
||
| 5 | <%= text_area_tag :notes, @journal.notes, |
||
| 6 | :id => "journal_#{@journal.id}_notes",
|
||
| 7 | :class => 'wiki-edit', |
||
| 8 | :rows => (@journal.notes.blank? ? 10 : [[10, @journal.notes.length / 50].max, 100].min) %> |
||
| 9 | <%= call_hook(:view_journals_notes_form_after_notes, { :journal => @journal}) %>
|
||
| 10 | <p><%= submit_tag l(:button_save) %> |
||
| 11 | <%= preview_link preview_edit_issue_path(:project_id => @project, :id => @journal.issue), |
||
| 12 | "journal-#{@journal.id}-form",
|
||
| 13 | "journal_#{@journal.id}_preview" %> |
|
||
| 14 | <%= link_to l(:button_cancel), '#', :onclick => "$('#journal-#{@journal.id}-form').remove(); $('#journal-#{@journal.id}-notes').show(); return false;" %></p>
|
||
| 15 | |||
| 16 | <div id="journal_<%= @journal.id %>_preview" class="wiki"></div> |
||
| 17 | <% end %> |
||
| 18 | <%= wikitoolbar_for "journal_#{@journal.id}_notes" %> |