Project

General

Profile

Feature #1725 » add_a_delete_link_to_journal_entries.patch

Adds a delete button to issue journal entries - Felix Schäfer, 2010-07-07 20:00

View differences:

app/helpers/journals_helper.rb
27 27
      links << link_to_in_place_notes_editor(image_tag('edit.png'), "journal-#{journal.id}-notes", 
28 28
                                             { :controller => 'journals', :action => 'edit', :id => journal },
29 29
                                                :title => l(:button_edit)) if editable
30
      links << link_to(image_tag('delete.png'),
31
                       {:controller => 'journals', :action => 'edit', :id => journal, :notes => ""},
32
                       :method => :post, :confirm => l(:text_are_you_sure), 
33
                       :title => l(:button_delete)) if editable
30 34
    end
31 35
    content << content_tag('div', links.join(' '), :class => 'contextual') unless links.empty?
32 36
    content << textilizable(journal, :notes)
(1-1/3)