Enhance interface
This commit is contained in:
11
resources/views/components/button-cancel.blade.php
Normal file
11
resources/views/components/button-cancel.blade.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<button @if (isset($type))type="{{ $type }}"@else type="button"@endif class="btn btn-secondary cancel @if (isset($class)){{ $class }}@endif" @if (isset($id_name)) id="{{ $id_name }}"@endif>
|
||||
<i class="fa fa-fw fa-ban"></i> {{ __('cancel') }}
|
||||
</button>
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$('.form-buttons .cancel').click(function() {
|
||||
window.history.back();
|
||||
})
|
||||
</script>
|
||||
@endpush
|
||||
Reference in New Issue
Block a user