diff --git a/api_query/src/building.ts b/api_query/src/building.ts index d2819d39..bd5ec1b2 100644 --- a/api_query/src/building.ts +++ b/api_query/src/building.ts @@ -27,7 +27,9 @@ type Element = Prisma.BuildingGetPayload<{ expected_time: true; deleted: true; hash: boolean; - address: true; + address_id: true; + syndicus_id: true; + manual_id: true; }; }>; diff --git a/web/src/components/images/AddImage.vue b/web/src/components/images/AddImage.vue deleted file mode 100644 index a1990418..00000000 --- a/web/src/components/images/AddImage.vue +++ /dev/null @@ -1,93 +0,0 @@ - - - - - diff --git a/web/src/components/images/MultiAddImage.vue b/web/src/components/images/MultiAddImage.vue deleted file mode 100644 index 53374311..00000000 --- a/web/src/components/images/MultiAddImage.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - diff --git a/web/src/router/index.ts b/web/src/router/index.ts index 04b54611..23bc19a4 100644 --- a/web/src/router/index.ts +++ b/web/src/router/index.ts @@ -159,9 +159,10 @@ const routes: any[] = [ }, }, { - path: "/gebouw/nieuw", + path: "/gebouw/nieuw/:id?", name: "building_new", component: BuildingMaker, + props: true, meta: { title: "Nieuw gebouw", auth: ( diff --git a/web/src/views/building/BuildingMaker.vue b/web/src/views/building/BuildingMaker.vue index 5bb325cd..1c8fa662 100644 --- a/web/src/views/building/BuildingMaker.vue +++ b/web/src/views/building/BuildingMaker.vue @@ -14,37 +14,74 @@ v-model="building.ivago_id" label="Ivago ID" > + + :items="possibleUsers" + v-model="building.syndicus" + prepend-inner-icon="mdi-account" + > + + + + + + + + + + - - - - - - - + + + + + + + {{ building.name }} + + + +
@@ -52,89 +89,406 @@ - + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + Voeg afbeelding toe + + + + + + + Maak gebouw{{ edit ? "Pas wijzigingen toe" : "Maak gebouw" }} diff --git a/web/src/views/building/BuildingScreen.vue b/web/src/views/building/BuildingScreen.vue index 1e6edd03..fbb89b78 100644 --- a/web/src/views/building/BuildingScreen.vue +++ b/web/src/views/building/BuildingScreen.vue @@ -69,6 +69,15 @@ Handleiding + + Pas aan +