19 lines
530 B
Plaintext
19 lines
530 B
Plaintext
<%= render_filter @filter_fields, "index_table" %>
|
|
<span id="index_table">
|
|
<%= render 'index'%>
|
|
</span>
|
|
|
|
<%= render 'layouts/delete_modal', delete_options: @delete_options %>
|
|
|
|
<%= render :partial=> "approval_modal" %>
|
|
|
|
<script type="text/javascript">
|
|
$(".appoval_button").on("click",function(){
|
|
var url = $(this).data("approve-link"),
|
|
modal = $("#approvalModal");
|
|
modal.find("iframe").attr("src", url);
|
|
modal.find("#object_id").val($(this).data("id"));
|
|
modal.modal("show");
|
|
return false;
|
|
})
|
|
</script> |