diff options
Diffstat (limited to 'web/templates')
| -rw-r--r-- | web/templates/index.html | 34 | ||||
| -rw-r--r-- | web/templates/partials/bugs.html | 12 |
2 files changed, 0 insertions, 46 deletions
diff --git a/web/templates/index.html b/web/templates/index.html index 2a07a32..87be542 100644 --- a/web/templates/index.html +++ b/web/templates/index.html @@ -135,10 +135,6 @@ class="px-3 py-1 rounded-lg text-sm font-medium text-white/60 hover:bg-white/10"> 🛒 Shopping </button> - <button onclick="switchActionTab('bug')" id="tab-bug" - class="px-3 py-1 rounded-lg text-sm font-medium text-white/60 hover:bg-white/10"> - 🐛 Bug - </button> </div> <button onclick="closeActionModal()" class="text-white/40 hover:text-white">✕</button> </div> @@ -195,31 +191,6 @@ </form> </div> - <!-- Bug Report Tab --> - <div id="panel-bug" class="p-4 hidden"> - <form hx-post="/bugs" - hx-target="#bug-list" - hx-swap="innerHTML" - hx-on::after-request="if(event.detail.successful) { this.reset(); closeActionModal(); }"> - <textarea name="description" - placeholder="Describe the bug..." - class="w-full bg-input border border-white/20 rounded-lg px-3 py-2 text-sm text-white placeholder-white/50 mb-3 h-24" - required></textarea> - <button type="submit" - class="w-full bg-red-900/50 hover:bg-red-900/70 text-red-300 px-4 py-2 rounded-lg text-sm font-medium"> - Submit Bug Report - </button> - </form> - <div class="mt-4 border-t border-white/10 pt-4"> - <h3 class="text-sm font-medium text-white/70 mb-2">Recent Reports</h3> - <div id="bug-list" - class="max-h-32 overflow-y-auto" - hx-get="/bugs" - hx-trigger="load"> - <p class="text-white/40 text-sm">Loading...</p> - </div> - </div> - </div> </div> </div> @@ -242,7 +213,6 @@ function switchActionTab(tab) { document.getElementById('panel-add').classList.toggle('hidden', tab !== 'add'); document.getElementById('panel-shopping').classList.toggle('hidden', tab !== 'shopping'); - document.getElementById('panel-bug').classList.toggle('hidden', tab !== 'bug'); // Task tab styling document.getElementById('tab-add').classList.toggle('bg-white/20', tab === 'add'); document.getElementById('tab-add').classList.toggle('text-white', tab === 'add'); @@ -251,10 +221,6 @@ document.getElementById('tab-shopping').classList.toggle('bg-green-900/50', tab === 'shopping'); document.getElementById('tab-shopping').classList.toggle('text-green-300', tab === 'shopping'); document.getElementById('tab-shopping').classList.toggle('text-white/60', tab !== 'shopping'); - // Bug tab styling - document.getElementById('tab-bug').classList.toggle('bg-red-900/50', tab === 'bug'); - document.getElementById('tab-bug').classList.toggle('text-red-300', tab === 'bug'); - document.getElementById('tab-bug').classList.toggle('text-white/60', tab !== 'bug'); // Load shopping lists when switching to shopping tab if (tab === 'shopping') { loadShoppingLists(); diff --git a/web/templates/partials/bugs.html b/web/templates/partials/bugs.html deleted file mode 100644 index cb5ba25..0000000 --- a/web/templates/partials/bugs.html +++ /dev/null @@ -1,12 +0,0 @@ -{{define "bugs"}} -{{if .}} -{{range .}} -<div class="text-sm border-b border-gray-100 py-2"> - <p class="text-gray-900">{{.Description}}</p> - <p class="text-gray-400 text-xs">{{.CreatedAt.Format "Jan 2, 3:04 PM"}}</p> -</div> -{{end}} -{{else}} -<p class="text-gray-500 text-sm">No bugs reported yet.</p> -{{end}} -{{end}} |
