add create table log_pegawai_survey
This commit is contained in:
parent
d98c87bc08
commit
8e3a178b4a
@ -220,6 +220,17 @@ class SoalController extends Controller
|
||||
}
|
||||
});
|
||||
|
||||
if(session()->has('pegawai')){
|
||||
DB::connection('dbSmartv1')->table('log_pegawai_survey')->insert([
|
||||
'tgl_isi' => Carbon::now(),
|
||||
'objectpegawaifk' => session('pegawai')['id'],
|
||||
// 'objectpegawaifk' => 23521,
|
||||
'objectsurveyfk' => 1,
|
||||
'mengisi_ya' => 1,
|
||||
'mengisi_tidak' => 0,
|
||||
]);
|
||||
}
|
||||
|
||||
return redirect()->route('soal.thankyou')
|
||||
->with('success', 'Jawaban berhasil disimpan.');
|
||||
}
|
||||
|
||||
40
composer.lock
generated
40
composer.lock
generated
@ -2312,22 +2312,22 @@
|
||||
},
|
||||
{
|
||||
"name": "maennchen/zipstream-php",
|
||||
"version": "3.1.2",
|
||||
"version": "3.2.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/maennchen/ZipStream-PHP.git",
|
||||
"reference": "aeadcf5c412332eb426c0f9b4485f6accba2a99f"
|
||||
"reference": "9712d8fa4cdf9240380b01eb4be55ad8dcf71416"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/maennchen/ZipStream-PHP/zipball/aeadcf5c412332eb426c0f9b4485f6accba2a99f",
|
||||
"reference": "aeadcf5c412332eb426c0f9b4485f6accba2a99f",
|
||||
"url": "https://api.github.com/repos/maennchen/ZipStream-PHP/zipball/9712d8fa4cdf9240380b01eb4be55ad8dcf71416",
|
||||
"reference": "9712d8fa4cdf9240380b01eb4be55ad8dcf71416",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-mbstring": "*",
|
||||
"ext-zlib": "*",
|
||||
"php-64bit": "^8.2"
|
||||
"php-64bit": "^8.3"
|
||||
},
|
||||
"require-dev": {
|
||||
"brianium/paratest": "^7.7",
|
||||
@ -2336,7 +2336,7 @@
|
||||
"guzzlehttp/guzzle": "^7.5",
|
||||
"mikey179/vfsstream": "^1.6",
|
||||
"php-coveralls/php-coveralls": "^2.5",
|
||||
"phpunit/phpunit": "^11.0",
|
||||
"phpunit/phpunit": "^12.0",
|
||||
"vimeo/psalm": "^6.0"
|
||||
},
|
||||
"suggest": {
|
||||
@ -2378,7 +2378,7 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/maennchen/ZipStream-PHP/issues",
|
||||
"source": "https://github.com/maennchen/ZipStream-PHP/tree/3.1.2"
|
||||
"source": "https://github.com/maennchen/ZipStream-PHP/tree/3.2.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@ -2386,7 +2386,7 @@
|
||||
"type": "github"
|
||||
}
|
||||
],
|
||||
"time": "2025-01-27T12:07:53+00:00"
|
||||
"time": "2025-07-17T11:15:13+00:00"
|
||||
},
|
||||
{
|
||||
"name": "markbaker/complex",
|
||||
@ -2859,16 +2859,16 @@
|
||||
},
|
||||
{
|
||||
"name": "nikic/php-parser",
|
||||
"version": "v5.6.2",
|
||||
"version": "v5.7.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/nikic/PHP-Parser.git",
|
||||
"reference": "3a454ca033b9e06b63282ce19562e892747449bb"
|
||||
"reference": "dca41cd15c2ac9d055ad70dbfd011130757d1f82"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/3a454ca033b9e06b63282ce19562e892747449bb",
|
||||
"reference": "3a454ca033b9e06b63282ce19562e892747449bb",
|
||||
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/dca41cd15c2ac9d055ad70dbfd011130757d1f82",
|
||||
"reference": "dca41cd15c2ac9d055ad70dbfd011130757d1f82",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -2911,9 +2911,9 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/nikic/PHP-Parser/issues",
|
||||
"source": "https://github.com/nikic/PHP-Parser/tree/v5.6.2"
|
||||
"source": "https://github.com/nikic/PHP-Parser/tree/v5.7.0"
|
||||
},
|
||||
"time": "2025-10-21T19:32:17+00:00"
|
||||
"time": "2025-12-06T11:56:16+00:00"
|
||||
},
|
||||
{
|
||||
"name": "nunomaduro/termwind",
|
||||
@ -7688,16 +7688,16 @@
|
||||
},
|
||||
{
|
||||
"name": "phpunit/phpunit",
|
||||
"version": "11.5.45",
|
||||
"version": "11.5.46",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/sebastianbergmann/phpunit.git",
|
||||
"reference": "faf5fff4fb9beb290affa53f812b05380819c51a"
|
||||
"reference": "75dfe79a2aa30085b7132bb84377c24062193f33"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/faf5fff4fb9beb290affa53f812b05380819c51a",
|
||||
"reference": "faf5fff4fb9beb290affa53f812b05380819c51a",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/75dfe79a2aa30085b7132bb84377c24062193f33",
|
||||
"reference": "75dfe79a2aa30085b7132bb84377c24062193f33",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -7769,7 +7769,7 @@
|
||||
"support": {
|
||||
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
|
||||
"security": "https://github.com/sebastianbergmann/phpunit/security/policy",
|
||||
"source": "https://github.com/sebastianbergmann/phpunit/tree/11.5.45"
|
||||
"source": "https://github.com/sebastianbergmann/phpunit/tree/11.5.46"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@ -7793,7 +7793,7 @@
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2025-12-01T07:38:43+00:00"
|
||||
"time": "2025-12-06T08:01:15+00:00"
|
||||
},
|
||||
{
|
||||
"name": "sebastian/cli-parser",
|
||||
|
||||
@ -130,6 +130,25 @@ return [
|
||||
'sslmode' => 'prefer',
|
||||
'timezone' => env('APP_TIMEZONE', 'utc' ),
|
||||
],
|
||||
'dbSmartv1' => [
|
||||
'driver' => 'pgsql',
|
||||
'url' => env('DB_URL'),
|
||||
'host' => env('DB_HOST_SMARTV1', '127.0.0.1'),
|
||||
'port' => env('DB_PORT_SMARTV1', '3306'),
|
||||
'database' => env('DB_DATABASE_SMARTV1', 'laravel'),
|
||||
'username' => env('DB_USERNAME_SMARTV1', 'root'),
|
||||
'password' => env('DB_PASSWORD_SMARTV1', ''),
|
||||
'charset' => env('DB_CHARSET', 'utf8'),
|
||||
'prefix' => '',
|
||||
'prefix_indexes' => true,
|
||||
'search_path' => 'public',
|
||||
'sslmode' => 'prefer',
|
||||
'prefix' => '',
|
||||
'prefix_indexes' => true,
|
||||
'search_path' => 'public',
|
||||
'sslmode' => 'prefer',
|
||||
'timezone' => env('APP_TIMEZONE', 'utc' ),
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
|
||||
@ -809,6 +809,7 @@
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary ms-md-auto"
|
||||
data-final-submit="true"
|
||||
data-loading-label="Menyimpan..."
|
||||
style="{{ (!$isHalTerakhir || $formLocked) ? 'display: none;' : '' }}"
|
||||
{{ $soal->soalDetail->isEmpty() || $formLocked ? 'disabled' : '' }}>
|
||||
Simpan Jawaban
|
||||
@ -850,6 +851,7 @@
|
||||
const prevButton = document.querySelector('.btn-prev-hal');
|
||||
const nextButton = document.querySelector('.btn-next-hal');
|
||||
const finalSubmitButton = document.querySelector('[data-final-submit="true"]');
|
||||
let isSubmitting = false;
|
||||
const badgeHal = document.getElementById('badge-hal');
|
||||
const progressBar = document.getElementById('progress-bar');
|
||||
const progressText = document.getElementById('progress-text');
|
||||
@ -953,6 +955,12 @@
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
if (isSubmitting) {
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
isSubmitting = true;
|
||||
toggleSubmitButtonLoading(true);
|
||||
if (!immediateSubmitActive) {
|
||||
return;
|
||||
}
|
||||
@ -1083,7 +1091,9 @@
|
||||
if (finalSubmitButton) {
|
||||
const canShowFinalButton = !formLocked && (isLast || immediateSubmitActive);
|
||||
finalSubmitButton.style.display = canShowFinalButton ? '' : 'none';
|
||||
finalSubmitButton.disabled = !canShowFinalButton;
|
||||
if (!isSubmitting) {
|
||||
finalSubmitButton.disabled = !canShowFinalButton;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1100,6 +1110,27 @@
|
||||
groupInfoCard.classList.toggle('d-none', shouldHide);
|
||||
}
|
||||
|
||||
function toggleSubmitButtonLoading(state) {
|
||||
if (!finalSubmitButton) {
|
||||
return;
|
||||
}
|
||||
if (state) {
|
||||
if (!finalSubmitButton.dataset.originalContent) {
|
||||
finalSubmitButton.dataset.originalContent = finalSubmitButton.innerHTML;
|
||||
}
|
||||
finalSubmitButton.disabled = true;
|
||||
const loadingLabel = finalSubmitButton.dataset.loadingLabel || 'Menyimpan...';
|
||||
finalSubmitButton.innerHTML =
|
||||
'<span class="spinner-border spinner-border-sm me-2" role="status" aria-hidden="true"></span>' +
|
||||
loadingLabel;
|
||||
} else {
|
||||
finalSubmitButton.disabled = false;
|
||||
if (finalSubmitButton.dataset.originalContent) {
|
||||
finalSubmitButton.innerHTML = finalSubmitButton.dataset.originalContent;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function setupLainnyaInputs() {
|
||||
const radios = form.querySelectorAll('input[type="radio"][name^="jawaban["]');
|
||||
radios.forEach(function (radio) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user