To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / app / views / journals / _notes_form.html.erb @ 1531:ae8145b28b2b

History | View | Annotate | Download (1.08 KB)

1
<%= 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" %>