From a3e8d30b6ccf6519b50233250ed27e94bebbbcb8 Mon Sep 17 00:00:00 2001 From: Tobias Zoghaib Date: Mon, 4 Nov 2024 12:04:15 +0100 Subject: [PATCH] Small improvements on account pages, added payment info card --- software/src/components/basics/cardView.vue | 1 - .../basics/circularProgressIndeterminate.vue | 11 ++ software/src/layouts/accountSubPageLayout.vue | 21 ++++ software/src/locales/de.json | 3 +- software/src/locales/en.json | 3 +- .../pages/account/accountDataPage/index.vue | 14 +-- .../account/accountDataPage/paymentsCard.vue | 111 ++++++++++-------- .../src/pages/account/ordersPage/index.vue | 24 ++-- .../pages/account/ordersPage/orderItem.vue | 8 +- .../concerts/concertBookingPage/index.vue | 8 +- .../locations/locationDetailPage/index.vue | 5 +- .../pages/locations/locationsPage/index.vue | 5 +- 12 files changed, 123 insertions(+), 91 deletions(-) create mode 100644 software/src/components/basics/circularProgressIndeterminate.vue create mode 100644 software/src/layouts/accountSubPageLayout.vue diff --git a/software/src/components/basics/cardView.vue b/software/src/components/basics/cardView.vue index 2fc5899..7b2abb3 100644 --- a/software/src/components/basics/cardView.vue +++ b/software/src/components/basics/cardView.vue @@ -1,5 +1,4 @@ + + \ No newline at end of file diff --git a/software/src/layouts/accountSubPageLayout.vue b/software/src/layouts/accountSubPageLayout.vue new file mode 100644 index 0000000..a75141f --- /dev/null +++ b/software/src/layouts/accountSubPageLayout.vue @@ -0,0 +1,21 @@ + + + \ No newline at end of file diff --git a/software/src/locales/de.json b/software/src/locales/de.json index 55ca551..44b1249 100644 --- a/software/src/locales/de.json +++ b/software/src/locales/de.json @@ -106,7 +106,8 @@ } }, "addNewAccount": "Neuen Account hinzufügen", - "accountRole": "Account Rolle" + "accountRole": "Account Rolle", + "noRealPaymentsNeeded": "Keine echten Kontodaten nötig!" }, "order": { "orders": "Bestellung | Bestellungen", diff --git a/software/src/locales/en.json b/software/src/locales/en.json index 3e8ca12..23c92f7 100644 --- a/software/src/locales/en.json +++ b/software/src/locales/en.json @@ -106,7 +106,8 @@ } }, "addNewAccount": "Add new account", - "accountRole": "Account Role" + "accountRole": "Account Role", + "noRealPaymentsNeeded": "No real payment data required!" }, "order": { "orders": "Order | Orders", diff --git a/software/src/pages/account/accountDataPage/index.vue b/software/src/pages/account/accountDataPage/index.vue index 4810733..2155b2a 100644 --- a/software/src/pages/account/accountDataPage/index.vue +++ b/software/src/pages/account/accountDataPage/index.vue @@ -3,22 +3,14 @@ import accountDataCard from './accountDataCard.vue'; import accountManagingCard from './accountManagingCard.vue'; import addressesCard from './addressesCard.vue'; import paymentsCard from './paymentsCard.vue'; -import OutlinedButton from '@/components/basics/outlinedButton.vue'; import { useRouter } from 'vue-router'; +import accountSubPageLayout from '@/layouts/accountSubPageLayout.vue'; const router = useRouter() \ No newline at end of file diff --git a/software/src/pages/account/accountDataPage/paymentsCard.vue b/software/src/pages/account/accountDataPage/paymentsCard.vue index 6ce3f22..6a13c35 100644 --- a/software/src/pages/account/accountDataPage/paymentsCard.vue +++ b/software/src/pages/account/accountDataPage/paymentsCard.vue @@ -4,9 +4,9 @@ import { useAccountStore } from '@/stores/account.store'; import outlinedButton from '@/components/basics/outlinedButton.vue'; import { PaymentModel } from '@/data/models/user/paymentModel'; import { getIbanRules, getStringRules } from '@/scripts/validationRules'; +import cardViewOneLine from '@/components/basics/cardViewOneLine.vue'; const accountStore = useAccountStore() -