BugFix: Settings/Studys - Color of input field and fill out by loading site with DB

sortierung
Samuel Zielke 1 year ago
parent 851334846d
commit 500ce91da8

@ -153,6 +153,14 @@ async function getActualDataAndFillView() {
document.getElementById('yearRest').innerText = 600 - parseInt(yearData)
document.getElementById('prBarYear').style.width = `${Math.round((100/600)*parseInt(yearData))}%`
// Settings vor ausfüllen
// DATEN VON SETTINGS ABFRAGEN
getAllEntries('settings')
.then(function(result) {
document.getElementById('studysinput').value = parseInt(result.find(element => element.SettingsID === 1).SettingsValue)
});
} catch (error) {
console.error('Fehler bei der Initialisierung oder Filterung:', error);
}

@ -31,11 +31,11 @@
<div class="settings text-left">
<div class="settings-card container">
<h5 class="pt-3">Einstellungen</h5>
<h4 class="pt-3 text-center" style="margin-top: -1rem;">Einstellungen</h4>
<ul class="list-group" style="color: black;">
<li class="list-group-item d-flex justify-content-between align-items-center">
Bibelstudien:
<input type="number" class="w-25 btn" name="studysinput" id="studysinput" value="0" onfocus="document.getElementById('SETStudySaveButton').classList.remove('d-none')">
<input type="number" class="w-25 btn btn-secondary" name="studysinput" id="studysinput" value="0" onfocus="document.getElementById('SETStudySaveButton').classList.remove('d-none')">
<button class="btn d-none" id="SETStudySaveButton">Sichern</button>
</li>
</ul>

Loading…
Cancel
Save

Powered by TurnKey Linux.