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