menu import export update
This commit is contained in:
@@ -62,7 +62,7 @@
|
||||
<!-- <td><%= settings_menu.created_at.utc.getlocal.strftime("%Y-%m-%d/%I:%M %p") %></td> -->
|
||||
<td>
|
||||
<%= link_to t("views.btn.edit"), edit_settings_menu_path(settings_menu),:class => 'btn btn-info btn-sm waves-effect' %>
|
||||
<a href="#" id="export-xlsx" data-attr="<%= settings_menu.id %>" class="btn btn-primary btn-sm waves-effect" style="height: 33px;">
|
||||
<a href="#" id="export-xlsx" data-attr="<%= settings_menu.id %>" class="export-xlsx btn btn-primary btn-sm waves-effect" style="height: 33px;">
|
||||
<i class="material-icons" style="top: 0px;">backup</i>
|
||||
</a>
|
||||
</td>
|
||||
@@ -107,9 +107,9 @@
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
$("#export-xlsx").on('click', function(){
|
||||
$(".export-xlsx").on('click', function(){
|
||||
var menu_id= $(this).attr('data-attr');
|
||||
console.log(menu_id);
|
||||
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "/settings/menus/" + menu_id + "/export",
|
||||
|
||||
Reference in New Issue
Block a user