##// END OF EJS Templates
Prevent mass-assignment when adding/updating a forum message (#10390)....
Prevent mass-assignment when adding/updating a forum message (#10390). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9133 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r8766:84dd4ecbd4a0
r9013:286bda14f14d
Show More
_notes_form.html.erb
22 lines | 1.4 KiB | text/plain | TextLexer
/ app / views / journals / _notes_form.html.erb
Jean-Philippe Lang
Administrators can edit issue notes....
r1091 <% form_remote_tag(:url => {}, :html => { :id => "journal-#{@journal.id}-form" }) do %>
Toshi MARUYAMA
[#9489] added invisible label...
r7574 <%= label_tag "notes", l(:description_notes), :class => "hidden-for-sighted" %>
Jean-Philippe Lang
Adds wiki toolbar to notes editing form (#7899)....
r5120 <%= text_area_tag :notes, @journal.notes,
:id => "journal_#{@journal.id}_notes",
Toshi MARUYAMA
remove trailing white-spaces from app/views/journals/_notes_form.html.erb...
r7120 :class => 'wiki-edit',
Jean-Philippe Lang
Adds wiki toolbar to notes editing form (#7899)....
r5120 :rows => (@journal.notes.blank? ? 10 : [[10, @journal.notes.length / 50].max, 100].min) %>
Eric Davis
Added plugin hooks around Journal editing...
r2119 <%= call_hook(:view_journals_notes_form_after_notes, { :journal => @journal}) %>
Jean-Philippe Lang
Administrators can edit issue notes....
r1091 <p><%= submit_tag l(:button_save) %>
Toshi MARUYAMA
remove trailing white-spaces from app/views/journals/_notes_form.html.erb...
r7120 <%= link_to_remote l(:label_preview),
Toshi MARUYAMA
route: split issue preview route to adding and editing...
r8766 { :url => preview_edit_issue_path(:project_id => @project, :id => @journal.issue),
Jean-Philippe Lang
Adds support for preview when editing an issue note (#5520)....
r5126 :method => 'post',
:update => "journal_#{@journal.id}_preview",
:with => "Form.serialize('journal-#{@journal.id}-form')",
:complete => "Element.scrollTo('journal_#{@journal.id}_preview')"
}, :accesskey => accesskey(:preview) %>
|
Jean-Philippe Lang
Administrators can edit issue notes....
r1091 <%= link_to l(:button_cancel), '#', :onclick => "Element.remove('journal-#{@journal.id}-form'); " +
"Element.show('journal-#{@journal.id}-notes'); return false;" %></p>
Jean-Philippe Lang
Adds support for preview when editing an issue note (#5520)....
r5126
<div id="journal_<%= @journal.id %>_preview" class="wiki"></div>
Jean-Philippe Lang
Administrators can edit issue notes....
r1091 <% end %>
Jean-Philippe Lang
Adds wiki toolbar to notes editing form (#7899)....
r5120 <%= wikitoolbar_for "journal_#{@journal.id}_notes" %>