Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
390c4fb4ea | ||
|
|
1e91de5a0e |
@@ -1,4 +1,4 @@
|
||||
-- Seed data for AvtoAmbor. Prices are in dirams (1 TJS = 100 dirams).
|
||||
/* -- Seed data for AvtoAmbor. Prices are in dirams (1 TJS = 100 dirams).
|
||||
-- Names are biased toward Lada / Daewoo Nexia / Opel / Toyota, which are
|
||||
-- common in Tajikistan.
|
||||
|
||||
@@ -188,3 +188,4 @@ VALUES
|
||||
INSERT INTO stock_movements (part_id, movement_type, quantity, unit_price, supplier_id, reference, notes)
|
||||
SELECT id, 'in', quantity_on_hand, cost_price, 1, 'OPENING', 'Initial seeded stock'
|
||||
FROM parts WHERE quantity_on_hand > 0;
|
||||
*/
|
||||
@@ -4,21 +4,15 @@
|
||||
|
||||
const tabs = [
|
||||
{ href: '/admin/reports', key: 'admin.tabs.reports' },
|
||||
{ href: '/admin/categories', key: 'admin.tabs.categories' },
|
||||
{ href: '/admin/backups', key: 'admin.tabs.backups' }
|
||||
{ href: '/admin/categories', key: 'admin.tabs.categories' }
|
||||
];
|
||||
|
||||
$: current = $page.url.pathname;
|
||||
function isActive(href) {
|
||||
return current === href || current.startsWith(href + '/');
|
||||
}
|
||||
</script>
|
||||
|
||||
<h1>{$t('admin.title')}</h1>
|
||||
|
||||
<nav class="tabs" aria-label="Admin sections">
|
||||
{#each tabs as tab}
|
||||
<a href={tab.href} class:active={isActive(tab.href)} aria-current={isActive(tab.href) ? 'page' : undefined}>
|
||||
<a href={tab.href}>
|
||||
{$t(tab.key)}
|
||||
</a>
|
||||
{/each}
|
||||
|
||||
Reference in New Issue
Block a user