perbaikan hasil sit
This commit is contained in:
@ -21,11 +21,11 @@
|
||||
</div>
|
||||
<div class="d-flex justify-content-end ">
|
||||
|
||||
<a href="{{ route($route[0] . '.index') }}" type="button" class="btn btn-danger btn-sm redirectButton" style="margin-top:10px">
|
||||
<button type="button" class="btn btn-danger btn-sm redirectButton" style="margin-top:10px">
|
||||
<i class="ki-duotone ki-exit-left fs-2"><span class="path1"></span><span
|
||||
class="path2"></span></i>
|
||||
Kembali
|
||||
</a>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -57,13 +57,14 @@
|
||||
<input type="text" class="form-control form-control-sm " name="nomor_rekening" placeholder="Nomor Rekening">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="inputName" class="col-sm-3 col-form-label">Company</label>
|
||||
<div class="col-sm-9">
|
||||
<select class="form-select form-select-sm optionSelectCompany" aria-label="Small select example" name="cabang">
|
||||
<select class="form-select form-select-sm " id="cabang" aria-label="Small select example" name="cabang">
|
||||
<option selected>Select Company</option>
|
||||
@foreach ($data['Company'] as $item)
|
||||
<option value="{{$item->COMPANY_NAME}}">{{$item->COMPANY_NAME}}</option>
|
||||
@foreach ($data['Company'] as $item1)
|
||||
<option value="{{$item1->COMPANY_NAME}}">{{$item1->COMPANY_NAME}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
@ -71,23 +72,22 @@
|
||||
<div class="form-group row">
|
||||
<label for="inputName" class="col-sm-3 col-form-label">Limit Type</label>
|
||||
<div class="col-sm-9">
|
||||
<select class="form-select form-select-sm optionSelectlimit" aria-label="Small select example" name="jenis_fasilitas">
|
||||
<select class="form-select form-select-sm " aria-label="Small select example" name="jenis_fasilitas">
|
||||
<option selected>Select Limit Type</option>
|
||||
@foreach ($data['limitReference'] as $item)
|
||||
<option value="{{$item->SHORT_NAME}}">{{$item->SHORT_NAME}}</option>
|
||||
@foreach ($data['limitReference'] as $item2)
|
||||
<option value="{{$item2->SHORT_NAME}}">{{$item2->SHORT_NAME}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="inputName" class="col-sm-3 col-form-label">Account Type</label>
|
||||
<div class="col-sm-9">
|
||||
{{-- <input type="text" class="form-control form-control-sm " id="jnsFasilitas" name="jenis_fasilitas" placeholder="Jenis Fasilitas"> --}}
|
||||
<select class="form-select form-select-sm optionSelectRek" aria-label="Small select example"
|
||||
id="jnsRekening-select" name="jenis_rekening">
|
||||
<select class="form-select form-select-sm " aria-label="Small select example" name="jenis_rekening">
|
||||
<option selected>Select Account Type</option>
|
||||
@foreach ($data['Category'] as $item)
|
||||
<option value="{{$item->SHORT_NAME}}">{{$item->SHORT_NAME}}</option>
|
||||
@foreach ($data['Category'] as $item3)
|
||||
<option value="{{$item3->SHORT_NAME}}">{{$item3->SHORT_NAME}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
@ -194,10 +194,9 @@
|
||||
<div class="form-group row">
|
||||
<label for="inputName" class="col-sm-3 col-form-label">Company</label>
|
||||
<div class="col-sm-9">
|
||||
{{-- <input type="text" class="form-control form-control-sm " id="jnsFasilitas" name="jenis_fasilitas" placeholder="Jenis Fasilitas"> --}}
|
||||
<select class="form-select form-select-sm optionSelectCompany" aria-label="Small select example"
|
||||
id="cabangEdit-select" name="cabang_edit">
|
||||
<option selected>Select Company</option>
|
||||
<option >Select Company</option>
|
||||
@foreach ($data['Company'] as $item)
|
||||
<option value="{{$item->COMPANY_NAME}}">{{$item->COMPANY_NAME}}</option>
|
||||
@endforeach
|
||||
@ -207,7 +206,6 @@
|
||||
<div class="form-group row">
|
||||
<label for="inputName" class="col-sm-3 col-form-label">Limit Type</label>
|
||||
<div class="col-sm-9">
|
||||
{{-- <input type="text" class="form-control form-control-sm " id="jnsFasilitas" name="jenis_fasilitas" placeholder="Jenis Fasilitas"> --}}
|
||||
<select class="form-select form-select-sm optionSelectLimit" aria-label="Small select example"
|
||||
id="jnsFaasilitasEdit-select" name="jenis_fasilitas_edit">
|
||||
<option selected>Select Limit Type</option>
|
||||
@ -220,10 +218,9 @@
|
||||
<div class="form-group row">
|
||||
<label for="inputName" class="col-sm-3 col-form-label">Account Type</label>
|
||||
<div class="col-sm-9">
|
||||
{{-- <input type="text" class="form-control form-control-sm " id="jnsFasilitas" name="jenis_fasilitas" placeholder="Jenis Fasilitas"> --}}
|
||||
<select class="form-select form-select-sm optionSelectRek" aria-label="Small select example"
|
||||
id="jnsRekeningEdit-select" name="jenis_rekening_edit">
|
||||
<option selected>Pilih Jenis Rekening</option>
|
||||
<option selected>Select Account Type</option>
|
||||
@foreach ($data['Category'] as $item)
|
||||
<option value="{{$item->SHORT_NAME}}">{{$item->SHORT_NAME}}</option>
|
||||
@endforeach
|
||||
@ -233,7 +230,6 @@
|
||||
<div class="form-group row">
|
||||
<label for="inputName" class="col-sm-3 col-form-label">Signer</label>
|
||||
<div class="col-sm-9">
|
||||
{{-- <input type="text" class="form-control form-control-sm " id="jnsFasilitas" name="jenis_fasilitas" placeholder="Jenis Fasilitas"> --}}
|
||||
<select class="form-select form-select-sm" aria-label="Small select example"
|
||||
id="signerTypeEdit-select" name="signer_id_edit">
|
||||
<option selected>Pilih Penandatangan</option>
|
||||
@ -310,17 +306,19 @@
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
$(".optionSelectCompany").on("change", function() {
|
||||
$(".optionSelectCompany").val($(".optionSelectCompany option:first").val());
|
||||
});
|
||||
|
||||
$(".optionSelectLimit").on("change", function() {
|
||||
$(".optionSelectLimit").val($(".optionSelectLimit option:first").val());
|
||||
});
|
||||
// $(".optionSelectCompany").on("change", function() {
|
||||
// $(".optionSelectCompany").val($(".optionSelectCompany option:first").val());
|
||||
// });
|
||||
|
||||
// $(".optionSelectLimit").on("change", function() {
|
||||
// $(".optionSelectLimit").val($(".optionSelectLimit option:first").val());
|
||||
// });
|
||||
|
||||
// $(".optionSelectRek").on("change", function() {
|
||||
// $(".optionSelectRek").val($(".optionSelectRek option:first").val());
|
||||
// });
|
||||
|
||||
$(".optionSelectRek").on("change", function() {
|
||||
$(".optionSelectRek").val($(".optionSelectRek option:first").val());
|
||||
});
|
||||
// Open the modal when the "Open Modal" button is clicked
|
||||
$("#openModalBtn").click(function() {
|
||||
$("#myModal").modal('show');
|
||||
@ -345,8 +343,8 @@
|
||||
data: formData,
|
||||
success: function(data) {
|
||||
$("#myModal").modal('hide');
|
||||
var _data = JSON.parse(data);
|
||||
toastr.success(_data.message);
|
||||
// var _data = JSON.parse(data);
|
||||
toastr.success(data.message);
|
||||
location.reload();
|
||||
|
||||
},
|
||||
@ -470,6 +468,10 @@
|
||||
})
|
||||
})
|
||||
|
||||
$(".redirectButton").click(function () {
|
||||
history.back();
|
||||
})
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user