Refactoring, change menu, add many features
This commit is contained in:
@@ -0,0 +1 @@
|
||||
@include('components.form.button', ['class' => 'btn-success ' . ($class ?? ''), 'icon' => 'fa-plus' ])
|
||||
@@ -0,0 +1,13 @@
|
||||
@include('components.form.button', ['class' => 'btn-secondary cancel ' . ($class ?? ''), 'icon' => 'fa-ban', 'txt' => __('cancel')])
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$('.form-buttons .cancel').click(function() {
|
||||
@if (isset($url))
|
||||
window.location = "{{ $url }}";
|
||||
@else
|
||||
window.history.back();
|
||||
@endif
|
||||
})
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1 @@
|
||||
@include('components.form.button', ['class' => 'btn-danger ' . ($class ?? ''), 'icon' => ($icon ?? 'fa-trash)'])
|
||||
@@ -0,0 +1 @@
|
||||
@include('components.form.button', ['class' => 'btn-success save ' . ($class ?? ''), 'icon' => 'fa-save', 'txt' => __('save')])
|
||||
@@ -0,0 +1,3 @@
|
||||
<button type="{{ $type_button ?? 'submit' }}" class="btn btn-success submit {{ $class ?? ''}}" @if (isset($id_name)) id="{{ $id_name }}"@endif>
|
||||
<i class="fa fa-fw fa-save"></i> Envoyer
|
||||
</button>
|
||||
Reference in New Issue
Block a user