|
|
@@ -4,7 +4,7 @@
|
|
|
<div class="container-fluid">
|
|
|
<div class="row">
|
|
|
<div class="col-md-6">
|
|
|
- <h2>{{ $spare_part_order ? 'Заказ детали #' . $spare_part_order->id : 'Новый заказ детали' }}</h2>
|
|
|
+ <h3>{{ $spare_part_order ? 'Заказ детали #' . $spare_part_order->id : 'Новый заказ детали' }}</h3>
|
|
|
|
|
|
<form action="{{ $spare_part_order ? route('spare_part_orders.update', $spare_part_order) : route('spare_part_orders.store') }}"
|
|
|
method="POST">
|
|
|
@@ -97,18 +97,18 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="mb-3 d-flex flex-wrap gap-1 align-items-start">
|
|
|
- <button type="submit" class="btn btn-success">Сохранить</button>
|
|
|
- <a href="{{ $previous_url ?? route('spare_part_orders.index') }}" class="btn btn-secondary">Назад</a>
|
|
|
+ <button type="submit" class="btn btn-sm btn-success">Сохранить</button>
|
|
|
+ <a href="{{ $previous_url ?? route('spare_part_orders.index') }}" class="btn btn-sm btn-secondary">Назад</a>
|
|
|
|
|
|
@if($spare_part_order && $spare_part_order->status === 'ordered' && hasRole('admin,manager'))
|
|
|
<form action="{{ route('spare_part_orders.set_in_stock', $spare_part_order) }}" method="POST" class="d-inline">
|
|
|
@csrf
|
|
|
- <button type="submit" class="btn btn-info">Поступило на склад</button>
|
|
|
+ <button type="submit" class="btn btn-sm btn-info">Поступило на склад</button>
|
|
|
</form>
|
|
|
@endif
|
|
|
|
|
|
@if($spare_part_order && hasRole('admin'))
|
|
|
- <button type="button" class="btn btn-danger" data-bs-toggle="modal" data-bs-target="#deleteModal">
|
|
|
+ <button type="button" class="btn btn-sm btn-danger" data-bs-toggle="modal" data-bs-target="#deleteModal">
|
|
|
Удалить
|
|
|
</button>
|
|
|
@endif
|
|
|
@@ -170,11 +170,11 @@
|
|
|
<h3>История движений</h3>
|
|
|
|
|
|
@if($spare_part_order->status === 'in_stock' && $spare_part_order->free_qty > 0 && hasRole('admin,manager'))
|
|
|
- <button type="button" class="btn btn-warning mb-3" data-bs-toggle="modal" data-bs-target="#shipModal">
|
|
|
+ <button type="button" class="btn btn-sm btn-warning mb-3" data-bs-toggle="modal" data-bs-target="#shipModal">
|
|
|
Отгрузить
|
|
|
</button>
|
|
|
@if(hasRole('admin'))
|
|
|
- <button type="button" class="btn btn-secondary mb-3" data-bs-toggle="modal" data-bs-target="#correctModal">
|
|
|
+ <button type="button" class="btn btn-sm btn-secondary mb-3" data-bs-toggle="modal" data-bs-target="#correctModal">
|
|
|
Коррекция
|
|
|
</button>
|
|
|
@endif
|
|
|
@@ -220,13 +220,13 @@
|
|
|
|
|
|
@if($spare_part_order && hasRole('admin,manager'))
|
|
|
{{-- Модальное окно отгрузки --}}
|
|
|
- <div class="modal fade" id="shipModal" tabindex="-1">
|
|
|
+ <div class="modal fade" id="shipModal" tabindex="-1" aria-labelledby="shipModalLabel" aria-hidden="true">
|
|
|
<div class="modal-dialog">
|
|
|
<div class="modal-content">
|
|
|
<form action="{{ route('spare_part_orders.ship', $spare_part_order) }}" method="POST">
|
|
|
@csrf
|
|
|
<div class="modal-header">
|
|
|
- <h5 class="modal-title">Отгрузка</h5>
|
|
|
+ <h1 class="modal-title fs-5" id="shipModalLabel">Отгрузка</h1>
|
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
|
|
|
</div>
|
|
|
<div class="modal-body">
|
|
|
@@ -261,13 +261,13 @@
|
|
|
|
|
|
@if($spare_part_order && hasRole('admin'))
|
|
|
{{-- Модальное окно коррекции --}}
|
|
|
- <div class="modal fade" id="correctModal" tabindex="-1">
|
|
|
+ <div class="modal fade" id="correctModal" tabindex="-1" aria-labelledby="correctModalLabel" aria-hidden="true">
|
|
|
<div class="modal-dialog">
|
|
|
<div class="modal-content">
|
|
|
<form action="{{ route('spare_part_orders.correct', $spare_part_order) }}" method="POST">
|
|
|
@csrf
|
|
|
<div class="modal-header">
|
|
|
- <h5 class="modal-title">Коррекция остатка</h5>
|
|
|
+ <h1 class="modal-title fs-5" id="correctModalLabel">Коррекция остатка</h1>
|
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
|
|
|
</div>
|
|
|
<div class="modal-body">
|
|
|
@@ -297,11 +297,11 @@
|
|
|
</div>
|
|
|
|
|
|
{{-- Модальное окно удаления --}}
|
|
|
- <div class="modal fade" id="deleteModal" tabindex="-1">
|
|
|
+ <div class="modal fade" id="deleteModal" tabindex="-1" aria-labelledby="deleteModalLabel" aria-hidden="true">
|
|
|
<div class="modal-dialog">
|
|
|
<div class="modal-content">
|
|
|
<div class="modal-header">
|
|
|
- <h5 class="modal-title">Подтверждение удаления</h5>
|
|
|
+ <h1 class="modal-title fs-5" id="deleteModalLabel">Подтверждение удаления</h1>
|
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
|
|
|
</div>
|
|
|
<div class="modal-body">
|