Newer
Older
dmpopidor / app / views / notes / _archive.html.erb
<%= form_for(note,
             url: archive_note_path(note),
             remote: true,
             class: "archive_note_form",
             id: "archive_note_form_#{note.id}") do |f| %>

    <%= f.hidden_field :id, :value => note.id %>
    <%= f.hidden_field :archived_by, :value => current_user.id %>

    <%= render :partial => "/notes/view", locals: {note: note} %>

    <p><%= _('Are you sure you want to remove this note?')%></p>

	  <!-- submit buttons -->
	  <div class="move_2_right">
      <%= f.submit _('Remove'), class: "btn btn-primary archive_comment_submit_button", role:"button" %>
      <%= link_to _('Cancel'), "#", onclick: "dmproadmap.notes.archive.cancel(event,#{note.id})", class: "cancel_archive_comment btn cancel", role:"button" %>
	  </div>
    <br>
<% end %>