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 / _notes_form.html.erb @ 912:5e80956cc792
History | View | Annotate | Download (1.35 KB)
| 1 | 0:513646585e45 | Chris | <% form_remote_tag(:url => {}, :html => { :id => "journal-#{@journal.id}-form" }) do %>
|
|---|---|---|---|
| 2 | 909:cbb26bc654de | Chris | <%= label_tag "notes", l(:description_notes), :class => "hidden-for-sighted" %>
|
| 3 | 441:cbce1fd3b1b7 | Chris | <%= text_area_tag :notes, @journal.notes,
|
| 4 | :id => "journal_#{@journal.id}_notes",
|
||
| 5 | 909:cbb26bc654de | Chris | :class => 'wiki-edit',
|
| 6 | 441:cbce1fd3b1b7 | Chris | :rows => (@journal.notes.blank? ? 10 : [[10, @journal.notes.length / 50].max, 100].min) %>
|
| 7 | 0:513646585e45 | Chris | <%= call_hook(:view_journals_notes_form_after_notes, { :journal => @journal}) %>
|
| 8 | <p><%= submit_tag l(:button_save) %> |
||
| 9 | 909:cbb26bc654de | Chris | <%= link_to_remote l(:label_preview),
|
| 10 | 441:cbce1fd3b1b7 | Chris | { :url => preview_issue_path(:project_id => @project, :id => @journal.issue),
|
| 11 | :method => 'post',
|
||
| 12 | :update => "journal_#{@journal.id}_preview",
|
||
| 13 | :with => "Form.serialize('journal-#{@journal.id}-form')",
|
||
| 14 | :complete => "Element.scrollTo('journal_#{@journal.id}_preview')"
|
||
| 15 | }, :accesskey => accesskey(:preview) %>
|
||
| 16 | | |
||
| 17 | 0:513646585e45 | Chris | <%= link_to l(:button_cancel), '#', :onclick => "Element.remove('journal-#{@journal.id}-form'); " +
|
| 18 | "Element.show('journal-#{@journal.id}-notes'); return false;" %></p> |
||
| 19 | 441:cbce1fd3b1b7 | Chris | |
| 20 | <div id="journal_<%= @journal.id %>_preview" class="wiki"></div> |
||
| 21 | 0:513646585e45 | Chris | <% end %>
|
| 22 | 441:cbce1fd3b1b7 | Chris | <%= wikitoolbar_for "journal_#{@journal.id}_notes" %> |