diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..8611af1 Binary files /dev/null and b/.DS_Store differ diff --git a/static/.DS_Store b/static/.DS_Store new file mode 100644 index 0000000..75128a9 Binary files /dev/null and b/static/.DS_Store differ diff --git a/static/css/style.css b/static/css/style.css index 727a6e4..84b7e24 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -83,3 +83,45 @@ input[type="file"]::file-selector-button { background-color: #181a1b !important; /* bardzo ciemny */ color: #f8f9fa !important; } + +input[type="checkbox"] { + appearance: none; + -webkit-appearance: none; + -moz-appearance: none; + width: 1.5em; + height: 1.5em; + margin: 0; + padding: 0; + outline: none; + background: none; + cursor: pointer; + position: relative; + vertical-align: middle; +} + +input[type="checkbox"]::before { + content: '✗'; + color: #dc3545; /* Bootstrap danger */ + font-size: 1.5em; + font-weight: bold; + position: absolute; + left: 0; + top: 50%; + transform: translateY(-50%); + line-height: 1; + transition: color 0.2s; +} + +input[type="checkbox"]:checked::before { + content: '✓'; + color: #ffc107; /* Bootstrap warning */ +} + +input[type="checkbox"]:disabled::before { + opacity: 0.5; + cursor: not-allowed; +} +input[type="checkbox"]:disabled { + cursor: not-allowed; +} + diff --git a/static/js/live.js b/static/js/live.js index fe13529..3db10c8 100644 --- a/static/js/live.js +++ b/static/js/live.js @@ -45,7 +45,7 @@ function setupList(listId, username) { setTimeout(() => { suggestionsBox.innerHTML = ''; }, 200); }); - //newItemInput.focus(); + // newItemInput.focus(); newItemInput.addEventListener('keypress', function (e) { if (e.key === 'Enter') { e.preventDefault(); @@ -124,11 +124,15 @@ function setupList(listId, username) { ${data.name} ${quantityBadge}
- - + +
`; +// #### WERSJA Z NAPISAMI #### +// +// + document.getElementById('items').appendChild(li); updateProgressBar(); }); @@ -161,11 +165,13 @@ function setupList(listId, username) { if (itemEl) { let noteEl = itemEl.querySelector('small'); if (noteEl) { - noteEl.innerHTML = `[ Notatka: ${data.note} ]`; + //noteEl.innerHTML = `[ Notatka: ${data.note} ]`; + noteEl.innerHTML = `[ ${data.note} ]`; } else { const newNote = document.createElement('small'); newNote.className = 'text-danger ms-4'; - newNote.innerHTML = `[ Notatka: ${data.note} ]`; + //newNote.innerHTML = `[ Notatka: ${data.note} ]`; + newNote.innerHTML = `[ ${data.note} ]`; const flexColumn = itemEl.querySelector('.d-flex.flex-column'); if (flexColumn) { diff --git a/static/lib/.DS_Store b/static/lib/.DS_Store new file mode 100644 index 0000000..22bdd83 Binary files /dev/null and b/static/lib/.DS_Store differ diff --git a/static/lib/images/close.png b/static/lib/images/close.png new file mode 100644 index 0000000..20baa1d Binary files /dev/null and b/static/lib/images/close.png differ diff --git a/static/lib/images/loading.gif b/static/lib/images/loading.gif new file mode 100644 index 0000000..5087c2a Binary files /dev/null and b/static/lib/images/loading.gif differ diff --git a/static/lib/images/next.png b/static/lib/images/next.png new file mode 100644 index 0000000..08365ac Binary files /dev/null and b/static/lib/images/next.png differ diff --git a/static/lib/images/prev.png b/static/lib/images/prev.png new file mode 100644 index 0000000..329fa98 Binary files /dev/null and b/static/lib/images/prev.png differ diff --git a/templates/base.html b/templates/base.html index 768ea34..7707ff6 100644 --- a/templates/base.html +++ b/templates/base.html @@ -15,13 +15,13 @@