Restructure Core management into linkable routes and add common layout navigation
- Renamed person route to people for consistency - Refactored /core dashboard to use standard <a> links - Added common management <nav> to core layout - Replaced goto() with standard links across all list and detail pages - Fixed 500 error caused by broken import path and strict layout data
This commit is contained in:
@@ -117,9 +117,9 @@
|
||||
{/if}
|
||||
</td>
|
||||
<td class="text-right">
|
||||
<button class="btn btn-sm variant-soft-primary" onclick={() => goto(`/core/accounts/${acct.account_id_random}`)}>
|
||||
<a class="btn btn-sm variant-soft-primary" href="/core/accounts/{acct.account_id_random}">
|
||||
Manage
|
||||
</button>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/each}
|
||||
|
||||
@@ -72,9 +72,9 @@
|
||||
<div class="container mx-auto p-4 space-y-6">
|
||||
<header class="flex justify-between items-center">
|
||||
<div class="flex items-center gap-4">
|
||||
<button class="btn btn-sm variant-soft" onclick={() => goto('/core/accounts')}>
|
||||
<a class="btn btn-sm variant-soft" href="/core/accounts">
|
||||
<ArrowLeft size={16} />
|
||||
</button>
|
||||
</a>
|
||||
<div class="flex items-center gap-2">
|
||||
<Building size={24} />
|
||||
<h1 class="h2">{account?.name ?? 'Loading Account...'}</h1>
|
||||
|
||||
Reference in New Issue
Block a user