diff options
Diffstat (limited to 'web/templates/index.html')
| -rw-r--r-- | web/templates/index.html | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/web/templates/index.html b/web/templates/index.html index b11b557..f58c5e1 100644 --- a/web/templates/index.html +++ b/web/templates/index.html @@ -189,14 +189,14 @@ <form hx-post="/unified-add" hx-swap="none" hx-on::after-request="if(event.detail.successful) { this.reset(); closeActionModal(); htmx.trigger(document.body, 'refresh-tasks'); }"> - <input type="hidden" name="source" value="trello"> + <input type="hidden" name="source" value="shopping"> <input type="text" name="title" placeholder="Item name..." class="w-full bg-input border border-white/20 rounded-lg px-3 py-2 text-sm text-white placeholder-white/50 mb-3" required> - <select name="list_id" - id="shopping-list-select" + <select name="store" + id="shopping-store-select" class="w-full bg-input border border-white/20 rounded-lg px-3 py-2 text-sm text-white mb-3" required> <option value="">Loading stores...</option> @@ -244,9 +244,12 @@ } } function loadShoppingLists() { - var select = document.getElementById('shopping-list-select'); + // Stores, not Trello lists: the Shopping board is no longer a + // shopping source, so an item added to a Trello list would not + // have shown up in the list at all. + var select = document.getElementById('shopping-store-select'); if (select.options.length <= 1) { - fetch('/partials/shopping-lists') + fetch('/partials/shopping-stores') .then(function(r) { return r.text(); }) .then(function(html) { select.innerHTML = html; @@ -254,7 +257,7 @@ select.selectedIndex = 0; } }) - .catch(function(e) { console.error('Failed to load shopping lists:', e); }); + .catch(function(e) { console.error('Failed to load shopping stores:', e); }); } } // Keyboard shortcut: Ctrl+K or Cmd+K |
