|
@@ -276,9 +276,7 @@
|
|
|
class="visually-hidden" id="create-reclamation-form">
|
|
class="visually-hidden" id="create-reclamation-form">
|
|
|
@csrf
|
|
@csrf
|
|
|
</form>
|
|
</form>
|
|
|
- <button class="btn btn-primary btn-sm mb-1" data-bs-toggle="modal"
|
|
|
|
|
- data-bs-target="#createTtnModal">ТТН
|
|
|
|
|
- </button>
|
|
|
|
|
|
|
+ <a href="#" class="btn btn-primary btn-sm mb-1" id="ttnBtn">ТТН</a>
|
|
|
</div>
|
|
</div>
|
|
|
@endif
|
|
@endif
|
|
|
</div>
|
|
</div>
|
|
@@ -391,6 +389,15 @@
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+ $('#ttnBtn').on('click', function () {
|
|
|
|
|
+ if ($('input.check-maf:checkbox:checked').length > 0) {
|
|
|
|
|
+ let myModalTtn = new bootstrap.Modal(document.getElementById("createTtnModal"), {});
|
|
|
|
|
+ myModalTtn.show();
|
|
|
|
|
+ } else {
|
|
|
|
|
+ alert('Нужно выбрать МАФ для ТТН!');
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
$('#createTtn').on('click', function () {
|
|
$('#createTtn').on('click', function () {
|
|
|
let ids = Array();
|
|
let ids = Array();
|
|
|
$('.check-maf').each(function () {
|
|
$('.check-maf').each(function () {
|