Sha256: 55a92ab09a63333e9f8cf86f6f1d79ae9356c2c208a94af35d6545933406c971
Contents?: true
Size: 1.87 KB
Versions: 19
Compression:
Stored size: 1.87 KB
Contents
<% content_for :body do %> <%= render partial: 'naf/shared/information_container', locals: { record_name: naf_table_title } %> <br/> <div class="display-inline-block"> <%= label_tag :deleted, 'Show deleted:' %> <%= check_box_tag(:deleted, true, false, { class: 'datatable_variable' }) %> </div> <div id="flash_message"> <% unless notice.blank? %> <script type='text/javascript'> jQuery("<p id='notice'><%= notice %></p>") .appendTo('#flash_message') .slideDown().delay(5000).slideUp(); </script> <% end %> </div> <table id='datatable'> <thead> <tr> <th>Id</th> <th>Type</th> <th>Enabled</th> <th>Model Name</th> <th>Assignment Order</th> </tr> </thead> <tbody> <%= render partial: 'rows' %> </tbody> </table> <% content_for :javascripts do %> <script type='text/javascript'> jQuery(document).ready(function () { jQuery('#deleted').removeAttr('checked'); jQuery('#datatable').addDataTable({ "bProcessing": true }); jQuery('.datatable_variable').click(function () { var url = '/job_system/<%= @params_name.to_s + 's' %>'; jQuery.ajax({ url:url, type:'GET', dataType:'script', data:{ "deleted":jQuery('#deleted').is(':checked') }, success:function() { jQuery('#datatable_processing').css({ visibility: "hidden" }); } }); jQuery('#datatable_processing').css({ visibility: "visible" }); }); }); </script> <% end %> <% end %> <%= render partial: 'naf/shared/application' %>
Version data entries
19 entries across 19 versions & 1 rubygems