FIX formate currency
This commit is contained in:
@ -8,6 +8,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}" />
|
||||
|
||||
|
||||
<style>
|
||||
.bd-example-modal-lg .modal-dialog{
|
||||
display: table;
|
||||
@ -67,7 +68,7 @@
|
||||
<div class="col-sm-10">
|
||||
<input type="hidden" id="pastYear" value="{{$data['pastYear']}}">
|
||||
<input type="hidden" id="currentYear" value="{{$data['currentYear']}}">
|
||||
<input type="text" class="form-control form-control-sm datepicker" name="startDate" clear id="startDate" placeholder="DD/MM/YYYY">
|
||||
<input type="text" class="form-control form-control-sm datepicker" name="startDate" placeholder="DD/MM/YYYY">
|
||||
</div>
|
||||
{{-- <div class="col-sm-1">
|
||||
<label for="colFormLabelSm" class="col-form-label col-form-label-sm">S/D</label>
|
||||
@ -260,7 +261,7 @@
|
||||
<div class="form-group row">
|
||||
<label for="inputName" class="col-sm-4 col-form-label">Tgl Req Surat</label>
|
||||
<div class="col-sm-8">
|
||||
<input type="text" class="form-control form-control-sm datepicker" name="tgl_req_surat" placeholder="DD/MM/YYYY" onfocus="this.type='date'" onblur="this.type='text'" required>
|
||||
<input type="text" class="form-control form-control-sm datepicker" name="tgl_req_surat" placeholder="DD/MM/YYYY" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
@ -328,8 +329,8 @@
|
||||
var pasYear = $('#pastYear').val();
|
||||
var currentYear = $('#currentYear').val();
|
||||
|
||||
|
||||
$('.datepicker').flatpickr({
|
||||
enableTime: !0,
|
||||
dateFormat: "d-m-Y",
|
||||
minDate: pasYear,
|
||||
maxDate: currentYear
|
||||
@ -567,6 +568,7 @@
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
@endpush
|
||||
</x-default-layout>
|
||||
|
@ -132,7 +132,7 @@
|
||||
<div class="form-group row">
|
||||
<label for="inputName" class="col-sm-3 col-form-label">Balance</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="number" class="form-control form-control-sm " name="saldo" placeholder="Balance">
|
||||
<input type="text" class="form-control form-control-sm " name="saldo" placeholder="Balance">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
@ -265,7 +265,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="inputName" class="col-sm-3 col-form-label">Saldo</label>
|
||||
<label for="inputName" class="col-sm-3 col-form-label">Balance</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="form-control form-control-sm " id="saldo" name="saldo_edit"
|
||||
placeholder="Saldo">
|
||||
@ -275,14 +275,14 @@
|
||||
<label for="inputName" class="col-sm-3 col-form-label">Start Date</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="form-control form-control-sm datepicker" id="startDate" name="start_date_edit"
|
||||
placeholder="DD/MM/YYYY">>
|
||||
placeholder="DD/MM/YYYY">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="inputName" class="col-sm-3 col-form-label">End Date</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="form-control form-control-sm datepicker" id="dueDatae" name="due_date_edit"
|
||||
placeholder="DD/MM/YYYY" onfocus="this.type='date'" onblur="this.type='text'">>
|
||||
placeholder="DD/MM/YYYY">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
@ -317,9 +317,7 @@
|
||||
@push('customscript')
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
$('.datepicker').flatpickr({
|
||||
enableTime: !0,
|
||||
dateFormat: "d-m-Y"
|
||||
})
|
||||
// Open the modal when the "Open Modal" button is clicked
|
||||
|
@ -55,13 +55,14 @@
|
||||
<div class="form-group row">
|
||||
<label for="inputName" class="col-sm-4 col-form-label">Deputy Director</label>
|
||||
<div class="col-sm-8">
|
||||
<input type="text" class="form-control form-control-sm " name="deputy_director" placeholder="Nama Deputy Director">
|
||||
<input type="text" class="form-control form-control-sm " name="deputy_director" placeholder="Nama Deputy Director" style="text-transform:uppercase">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="inputName" class="col-sm-4 col-form-label">Executive Officer</label>
|
||||
<div class="col-sm-8">
|
||||
<input type="text" class="form-control form-control-sm " name="executive_officer" placeholder="Nama Executive Officer">
|
||||
<input type="text" class="form-control form-control-sm " name="executive_officer" placeholder="Nama Executive Officer" id="executive_officer" style="text-transform:uppercase">
|
||||
<span id="note" style="color:darkred;display:none" ><small>Nama Tidak Boleh Sama .. !</small></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
@ -105,13 +106,14 @@
|
||||
<label for="inputName" class="col-sm-4 col-form-label">Deputy Director</label>
|
||||
<div class="col-sm-8">
|
||||
<input type="hidden" class="form-control form-control-sm " name="id" placeholder="Nama Deputy Director">
|
||||
<input type="text" class="form-control form-control-sm " name="deputy_director" placeholder="Nama Deputy Director">
|
||||
<input type="text" class="form-control form-control-sm " name="deputy_director" placeholder="Nama Deputy Director" style="text-transform:uppercase">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="inputName" class="col-sm-4 col-form-label">Executive Officer</label>
|
||||
<div class="col-sm-8">
|
||||
<input type="text" class="form-control form-control-sm " name="executive_officer" placeholder="Nama Executive Officer">
|
||||
<input type="text" class="form-control form-control-sm " id="executive_officer2" name="executive_officer" placeholder="Nama Executive Officer" style="text-transform:uppercase">
|
||||
<span id="note2" style="color:darkred;display:none" ><small>Nama Tidak Boleh Sama .. !</small></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
@ -146,12 +148,45 @@
|
||||
$("#myModalEditSigner").modal("hide");
|
||||
});
|
||||
|
||||
$('#executive_officer').on('keyup', function() {
|
||||
let deputy_eirector = $('input[name="deputy_director"]').val();
|
||||
let executive_officer = $(this).val();
|
||||
if (executive_officer == deputy_eirector ) {
|
||||
// alert('Penandatangan Tidak Boleh Sama');
|
||||
$('#executive_officer').css('border-color', 'red');
|
||||
$('#submitSigner').attr('disabled', 'disabled');
|
||||
$('#note').show();
|
||||
}else{
|
||||
$('#executive_officer').css('border-color', '');
|
||||
$('#submitSigner').attr('disabled', false);
|
||||
$('#note').hide();
|
||||
}
|
||||
});
|
||||
|
||||
$('#executive_officer2').on('keyup', function() {
|
||||
let deputy_eirector = $('input[name="deputy_director"]').val().toUpperCase();
|
||||
let executive_officer = $(this).val();
|
||||
if (executive_officer == deputy_eirector ) {
|
||||
$('#executive_officer2').css('border-color', 'red');
|
||||
$('#submitFormUpdateSigner').attr('disabled', 'disabled');
|
||||
$('#note2').show();
|
||||
}else{
|
||||
$('#executive_officer2').css('border-color', '');
|
||||
$('#submitFormUpdateSigner').attr('disabled', false);
|
||||
$('#note2').hide();
|
||||
}
|
||||
});
|
||||
|
||||
// Handle form submission when the "Submit" button inside the modal is clicked
|
||||
$("#submitSigner").click(function(e) {
|
||||
// Serialize the form data
|
||||
e.preventDefault();
|
||||
var formData = $("#formSigner").serialize();
|
||||
|
||||
var formData = $("#formSigner").serialize();
|
||||
// var executive_officer = $('input[name="executive_officer"]').val();
|
||||
// var deputy_director = $('input[name="executive_officer"]').val();
|
||||
// if(executive_officer == deputy_director){
|
||||
// alert();
|
||||
// }
|
||||
// Send an AJAX request to the form submission route
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
|
Reference in New Issue
Block a user