Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0ff79c5499 | |||
| d28e7da4b7 | |||
| 42a1dbc706 | |||
| 0badf961a0 | |||
| 05598c78da | |||
| 0e1575ac62 | |||
| 597e5fe5b6 |
@@ -41,8 +41,9 @@ class P2Controller extends Controller
|
|||||||
$periodes = Periode::orderBy('id_periode', 'desc')->get();
|
$periodes = Periode::orderBy('id_periode', 'desc')->get();
|
||||||
$periodeNow = Periode::where('status', true)->first()?->id_periode;
|
$periodeNow = Periode::where('status', true)->first()?->id_periode;
|
||||||
$jenjangPendidikanList = JenjangPendidikanHelper::options();
|
$jenjangPendidikanList = JenjangPendidikanHelper::options();
|
||||||
|
$selisihMessage = 'Coming Soon!';
|
||||||
|
|
||||||
return view('perhitungan.remunerasi.p2.index', compact('title', 'team', 'periodes', 'periodeNow', 'jenjangPendidikanList'));
|
return view('perhitungan.remunerasi.p2.index', compact('title', 'team', 'periodes', 'periodeNow', 'jenjangPendidikanList', 'selisihMessage'));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function data(Request $request): JsonResponse
|
public function data(Request $request): JsonResponse
|
||||||
|
|||||||
@@ -96,6 +96,19 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<ul class="nav nav-pills bg-nav-pills nav-justified mb-3" id="p2Tabs" role="tablist">
|
||||||
|
<li class="nav-item" role="presentation">
|
||||||
|
<button class="nav-link rounded-0 active" id="main-tab" data-bs-toggle="tab"
|
||||||
|
data-bs-target="#main-tab-pane" type="button" role="tab">Main</button>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item" role="presentation">
|
||||||
|
<button class="nav-link rounded-0" id="selisih-tab" data-bs-toggle="tab"
|
||||||
|
data-bs-target="#selisih-tab-pane" type="button" role="tab">Selisih</button>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<div class="tab-content" id="p2TabsContent">
|
||||||
|
<div class="tab-pane fade show active" id="main-tab-pane" role="tabpanel" tabindex="0">
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table table-bordered w-100 dt-styled" id="p2">
|
<table class="table table-bordered w-100 dt-styled" id="p2">
|
||||||
<thead>
|
<thead>
|
||||||
@@ -109,6 +122,15 @@
|
|||||||
</thead>
|
</thead>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="tab-pane fade" id="selisih-tab-pane" role="tabpanel" tabindex="0">
|
||||||
|
<div class="text-center py-5">
|
||||||
|
<i class="uil-clock-three display-4 text-muted"></i>
|
||||||
|
<h4 class="mt-2">{{ $selisihMessage }}</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -73,23 +73,33 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.btn-setujui {
|
.btn-setujui {
|
||||||
background: #16a34a;
|
--bs-btn-color: #fff;
|
||||||
border-color: #16a34a;
|
--bs-btn-bg: #16a34a;
|
||||||
}
|
--bs-btn-border-color: #16a34a;
|
||||||
|
--bs-btn-hover-color: #fff;
|
||||||
.btn-setujui:hover {
|
--bs-btn-hover-bg: #15803d;
|
||||||
background: #15803d;
|
--bs-btn-hover-border-color: #15803d;
|
||||||
border-color: #15803d;
|
--bs-btn-active-color: #fff;
|
||||||
|
--bs-btn-active-bg: #15803d;
|
||||||
|
--bs-btn-active-border-color: #15803d;
|
||||||
|
--bs-btn-disabled-color: #fff;
|
||||||
|
--bs-btn-disabled-bg: #16a34a;
|
||||||
|
--bs-btn-disabled-border-color: #16a34a;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-tolak {
|
.btn-tolak {
|
||||||
background: #dc2626;
|
--bs-btn-color: #fff;
|
||||||
border-color: #dc2626;
|
--bs-btn-bg: #dc2626;
|
||||||
}
|
--bs-btn-border-color: #dc2626;
|
||||||
|
--bs-btn-hover-color: #fff;
|
||||||
.btn-tolak:hover {
|
--bs-btn-hover-bg: #b91c1c;
|
||||||
background: #b91c1c;
|
--bs-btn-hover-border-color: #b91c1c;
|
||||||
border-color: #b91c1c;
|
--bs-btn-active-color: #fff;
|
||||||
|
--bs-btn-active-bg: #b91c1c;
|
||||||
|
--bs-btn-active-border-color: #b91c1c;
|
||||||
|
--bs-btn-disabled-color: #fff;
|
||||||
|
--bs-btn-disabled-bg: #dc2626;
|
||||||
|
--bs-btn-disabled-border-color: #dc2626;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-setujui:disabled,
|
.btn-setujui:disabled,
|
||||||
@@ -156,7 +166,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="timerSesi" class="alert alert-info py-2 small d-none">
|
<div id="timerSesi" class="alert alert-info py-2 small d-none">
|
||||||
<i class="fas fa-clock"></i> Sesi berakhir dalam <strong id="timerSisa">--:--</strong>
|
<i class="fas fa-clock"></i> Sesi berakhir dalam <strong id="timerSisa">--:--:--</strong>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<dl class="row mb-0">
|
<dl class="row mb-0">
|
||||||
@@ -207,7 +217,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label class="form-label">Passphrase</label>
|
<label class="form-label">Passphrase</label>
|
||||||
|
<div class="input-group">
|
||||||
<input type="password" class="form-control" name="passphrase" required>
|
<input type="password" class="form-control" name="passphrase" required>
|
||||||
|
<button type="button" class="btn btn-outline-secondary" id="togglePassphrase" aria-label="Tampilkan passphrase">
|
||||||
|
<i class="fas fa-eye"></i>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="d-flex gap-2">
|
<div class="d-flex gap-2">
|
||||||
<button type="submit" class="btn btn-setujui text-white flex-fill">Kirim Persetujuan</button>
|
<button type="submit" class="btn btn-setujui text-white flex-fill">Kirim Persetujuan</button>
|
||||||
@@ -328,9 +343,10 @@
|
|||||||
let timerInterval = null;
|
let timerInterval = null;
|
||||||
|
|
||||||
function formatWaktu(detik) {
|
function formatWaktu(detik) {
|
||||||
const m = String(Math.floor(detik / 60)).padStart(2, '0');
|
const j = String(Math.floor(detik / 3600)).padStart(2, '0');
|
||||||
|
const m = String(Math.floor((detik % 3600) / 60)).padStart(2, '0');
|
||||||
const s = String(detik % 60).padStart(2, '0');
|
const s = String(detik % 60).padStart(2, '0');
|
||||||
return `${m}:${s}`;
|
return `${j}:${m}:${s}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
function hentikanTimer() {
|
function hentikanTimer() {
|
||||||
@@ -445,6 +461,14 @@
|
|||||||
|
|
||||||
$('.batal-aksi').on('click', tutupForm);
|
$('.batal-aksi').on('click', tutupForm);
|
||||||
|
|
||||||
|
$('#togglePassphrase').on('click', function () {
|
||||||
|
const $input = $('#formSetujui [name=passphrase]');
|
||||||
|
const tampil = $input.attr('type') === 'password';
|
||||||
|
$input.attr('type', tampil ? 'text' : 'password');
|
||||||
|
$(this).attr('aria-label', tampil ? 'Sembunyikan passphrase' : 'Tampilkan passphrase')
|
||||||
|
.find('i').toggleClass('fa-eye', !tampil).toggleClass('fa-eye-slash', tampil);
|
||||||
|
});
|
||||||
|
|
||||||
$('#formSetujui').on('submit', function (e) {
|
$('#formSetujui').on('submit', function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
const $btn = $(this).find('button[type=submit]');
|
const $btn = $(this).find('button[type=submit]');
|
||||||
|
|||||||
Reference in New Issue
Block a user