mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 05:04:07 -08:00
Moved general label button
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
aa86e07cd2
commit
263151658f
|
@ -263,16 +263,12 @@
|
||||||
@if ($user->deleted_at=='')
|
@if ($user->deleted_at=='')
|
||||||
<div class="col-md-12" style="padding-top: 30px;">
|
<div class="col-md-12" style="padding-top: 30px;">
|
||||||
@if ($user->isDeletable())
|
@if ($user->isDeletable())
|
||||||
<form action="{{route('users.destroy',$user->id)}}" method="POST">
|
<a href="#" style="width: 100%;" class="delete-asset btn btn-sm btn-danger btn-social hidden-print" data-toggle="modal" data-title="{{ trans('general.delete') }}" data-content="{{ trans('general.sure_to_delete_var', ['item' => $user->present()->fullName]) }}" data-target="#dataConfirmModal">
|
||||||
{{csrf_field()}}
|
|
||||||
{{ method_field("DELETE")}}
|
|
||||||
<button style="width: 100%;" class="btn btn-sm btn-warning btn-social hidden-print">
|
|
||||||
<x-icon type="delete" />
|
<x-icon type="delete" />
|
||||||
{{ trans('button.delete')}}
|
{{ trans('button.delete')}}
|
||||||
</button>
|
</a>
|
||||||
</form>
|
|
||||||
@else
|
@else
|
||||||
<button style="width: 100%;" class="btn btn-sm btn-warning btn-social hidden-print disabled">
|
<button style="width: 100%;" class="btn btn-sm btn-danger btn-social hidden-print disabled">
|
||||||
<x-icon type="delete" />
|
<x-icon type="delete" />
|
||||||
{{ trans('button.delete')}}
|
{{ trans('button.delete')}}
|
||||||
</button>
|
</button>
|
||||||
|
@ -1201,6 +1197,14 @@
|
||||||
<script nonce="{{ csrf_token() }}">
|
<script nonce="{{ csrf_token() }}">
|
||||||
$(function () {
|
$(function () {
|
||||||
|
|
||||||
|
$('#dataConfirmModal').on('show.bs.modal', function (event) {
|
||||||
|
var content = $(event.relatedTarget).data('content');
|
||||||
|
var title = $(event.relatedTarget).data('title');
|
||||||
|
$(this).find(".modal-body").text(content);
|
||||||
|
$(this).find(".modal-header").text(title);
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
$("#two_factor_reset").click(function(){
|
$("#two_factor_reset").click(function(){
|
||||||
$("#two_factor_resetrow").removeClass('success');
|
$("#two_factor_resetrow").removeClass('success');
|
||||||
$("#two_factor_resetrow").removeClass('danger');
|
$("#two_factor_resetrow").removeClass('danger');
|
||||||
|
|
Loading…
Reference in a new issue