diff --git a/frontend/src/App.svelte b/frontend/src/App.svelte index 30c765b..f1af314 100644 --- a/frontend/src/App.svelte +++ b/frontend/src/App.svelte @@ -28,6 +28,7 @@ import ResetPw from "./routes/user/ResetPw.svelte"; import Search from "./routes/search/Search.svelte"; import SendDoc from "./routes/document/Send.svelte"; + import Stock from './routes/stock/Index.svelte'; import TagUses from "./routes/tags/TagUses.svelte"; import TaskList from "./routes/task/Index.svelte"; import Times from "./routes/time/Index.svelte"; @@ -96,6 +97,7 @@ + diff --git a/frontend/src/Components/Menu.svelte b/frontend/src/Components/Menu.svelte index f4817db..4a7cca0 100644 --- a/frontend/src/Components/Menu.svelte +++ b/frontend/src/Components/Menu.svelte @@ -63,6 +63,7 @@ onMount(fetchModules); {t('timetracking')} {t('wiki')} {t('contacts')} + {t('stock')} {#if user.id == 2} {t('tutorial')} {/if} diff --git a/frontend/src/routes/stock/Index.svelte b/frontend/src/routes/stock/Index.svelte new file mode 100644 index 0000000..e7db7a5 --- /dev/null +++ b/frontend/src/routes/stock/Index.svelte @@ -0,0 +1,66 @@ + + +

{t('Stock')}

+ + + + + + + + +
+ {#each companies as company} +

{company.name}

+ + + {/each} +
+ + + +
\ No newline at end of file diff --git a/frontend/src/routes/stock/ItemList.svelte b/frontend/src/routes/stock/ItemList.svelte new file mode 100644 index 0000000..dbef8b9 --- /dev/null +++ b/frontend/src/routes/stock/ItemList.svelte @@ -0,0 +1,14 @@ + +
    +
  • + +
  • +
  • Item 1
  • +
  • Item 2
  • +
  • Item 3
  • +
\ No newline at end of file diff --git a/frontend/src/routes/stock/ItemProps.svelte b/frontend/src/routes/stock/ItemProps.svelte new file mode 100644 index 0000000..0aad2c2 --- /dev/null +++ b/frontend/src/routes/stock/ItemProps.svelte @@ -0,0 +1,5 @@ +
    +
  • Prop 1
  • +
  • Prop 2
  • +
  • Prop 3
  • +
\ No newline at end of file diff --git a/frontend/src/routes/stock/Locations.svelte b/frontend/src/routes/stock/Locations.svelte new file mode 100644 index 0000000..457a3f4 --- /dev/null +++ b/frontend/src/routes/stock/Locations.svelte @@ -0,0 +1,12 @@ + + +
    + {#each Object.entries(locations) as [k,v]} +
  • + {k} + +
  • + {/each} +
\ No newline at end of file diff --git a/translations/src/main/resources/de.json b/translations/src/main/resources/de.json index d8c732a..d1260c2 100644 --- a/translations/src/main/resources/de.json +++ b/translations/src/main/resources/de.json @@ -116,6 +116,7 @@ "IMPERSONATE": "Nutzer wechseln", "index_page": "Aufgabenübersicht", "invoice": "Rechnung", + "item": "Artikel", "items": "Artikel", "join_objects" : "{objects} zusammenführen",