Sha256: 4978cfc4461263308a1df3ade5d27b05abb44d5a004130487e9c9e98a8df9a39

Contents?: true

Size: 1.26 KB

Versions: 23

Compression:

Stored size: 1.26 KB

Contents

<tr>
  <td scope="row">Last Queued At</td>
  <td> <%= naf_last_queued_at_link(@record) %> </td>
</tr>
<tr>
  <td>Add Script to Jobs Queue</td>
  <td>
    <%= link_to image_tag('control_play_blue.png',
                          class: 'action',
                          title: "Enqueue application(id: #{@record.id}, title: #{@record.title})"),
                          "#", { class: "enqueue", id: @record.id } %>
  </td>
</tr>

<% content_for :javascripts do %>
  <script type='text/javascript'>
      jQuery(document).ready(function () {
          jQuery('.enqueue').click(function () {
              var postSource = "<%= naf.jobs_path %>";
              var answer = confirm("Adding application as a job on the queue?");
              if (!answer) {
                  return false;
              }
              jQuery.post(postSource, { "job[application_id]":jQuery(this).attr('id') }, function (data) {
                  if (data.success) {
                      jQuery("<p id='notice'>Congratulations, a Job " + data.title + " was added!</p>").
                      appendTo('#flash_message').slideDown().delay(5000).slideUp();
                      setTimeout('window.location.reload()', 5600);
                  }
              });
          });
      });
  </script>
<% end %>

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
naf-2.1.13 app/views/naf/applications/_show.html.erb
naf-2.1.12 app/views/naf/applications/_show.html.erb
naf-2.1.11 app/views/naf/applications/_show.html.erb
naf-2.1.10 app/views/naf/applications/_show.html.erb
naf-2.1.9 app/views/naf/applications/_show.html.erb
naf-2.1.8 app/views/naf/applications/_show.html.erb
naf-2.1.6 app/views/naf/applications/_show.html.erb
naf-2.1.5 app/views/naf/applications/_show.html.erb
naf-2.1.4 app/views/naf/applications/_show.html.erb
naf-2.1.3 app/views/naf/applications/_show.html.erb
naf-2.1.2 app/views/naf/applications/_show.html.erb
naf-2.1.1 app/views/naf/applications/_show.html.erb
naf-2.1.0 app/views/naf/applications/_show.html.erb
naf-2.0.4 app/views/naf/applications/_show.html.erb
naf-2.0.3 app/views/naf/applications/_show.html.erb
naf-2.0.2 app/views/naf/applications/_show.html.erb
naf-2.0.1 app/views/naf/applications/_show.html.erb
naf-2.0.0 app/views/naf/applications/_show.html.erb
naf-1.1.4 app/views/naf/applications/_show.html.erb
naf-1.1.3 app/views/naf/applications/_show.html.erb