A free open source IT asset/license management system
Fix delete modals
snipea18e90c22af8
diff --git a/resources/views/layouts/default.blade.php b/resources/views/layouts/default.blade.phpindex e18c1bfb8a..015ee092c6 100644--- a/resources/views/layouts/default.blade.php+++ b/resources/views/layouts/default.blade.php@@ -639,8 +639,9 @@<form method="post" id="deleteForm" role="form">{{ csrf_field() }}{{ method_field('DELETE') }}- <button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>- <button type="submit" class="btn btn-outline" id="dataConfirmOK">@lang('general.yes')</button>++ <button type="button" class="btn btn-default pull-left" data-dismiss="modal">{{ trans('general.cancel') }}</button>+ <button type="submit" class="btn btn-outline" id="dataConfirmOK">{{ trans('general.yes') }}</button></form></div></div>diff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.phpindex 6fd62afb94..fcedca3070 100644--- a/resources/views/partials/bootstrap-table.blade.php+++ b/resources/views/partials/bootstrap-table.blade.php@@ -125,9 +125,11 @@ $('.snipe-table').bootstrapTable({}if (row.available_actions.delete === true) {- actions += '<a data-html="false" class="btn delete-asset btn-danger btn-sm" ' +- + 'data-toggle="modal" href="" data-content="Are you sure you wish to delete this?" '- + 'data-title="{{ trans('general.delete') }}?" onClick="return false;">'+ actions += '<a href="{{ url('/') }}/' + destination + '/' + row.id + '" '+ + ' class="btn btn-danger btn-sm delete-asset" '+ + ' data-toggle="modal" '+ + ' data-content="Are you sure you wish to delete ' + row.name + ' (' + row.id + ')?" '+ + ' data-title="{{ trans('general.delete') }}?" onClick="return false;">'+ '<i class="fa fa-trash"></i></a></nobr>';}return actions;