mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Fix delete modals
This commit is contained in:
parent
d9fe39c00e
commit
a18e90c22a
|
@ -639,8 +639,9 @@
|
||||||
<form method="post" id="deleteForm" role="form">
|
<form method="post" id="deleteForm" role="form">
|
||||||
{{ csrf_field() }}
|
{{ csrf_field() }}
|
||||||
{{ method_field('DELETE') }}
|
{{ 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>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -125,9 +125,11 @@ $('.snipe-table').bootstrapTable({
|
||||||
}
|
}
|
||||||
|
|
||||||
if (row.available_actions.delete === true) {
|
if (row.available_actions.delete === true) {
|
||||||
actions += '<a data-html="false" class="btn delete-asset btn-danger btn-sm" ' +
|
actions += '<a href="{{ url('/') }}/' + destination + '/' + row.id + '" '
|
||||||
+ 'data-toggle="modal" href="" data-content="Are you sure you wish to delete this?" '
|
+ ' class="btn btn-danger btn-sm delete-asset" '
|
||||||
+ 'data-title="{{ trans('general.delete') }}?" onClick="return false;">'
|
+ ' 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>';
|
+ '<i class="fa fa-trash"></i></a></nobr>';
|
||||||
}
|
}
|
||||||
return actions;
|
return actions;
|
||||||
|
|
Loading…
Reference in a new issue