From 0f0d3cd861ab775941d6b72c8c2d59fc3ddf2425 Mon Sep 17 00:00:00 2001 From: Michael Weimann Date: Mon, 11 Oct 2021 18:55:19 +0200 Subject: [PATCH] implement advanced availability logic --- src/components/profile/Section.vue | 2 +- src/views/profile/Edit.vue | 37 ++++++++++++++++++++++++------ src/views/profile/View.vue | 26 +++++++++++++++++---- 3 files changed, 53 insertions(+), 12 deletions(-) diff --git a/src/components/profile/Section.vue b/src/components/profile/Section.vue index 1056dbc..3a6dad8 100644 --- a/src/components/profile/Section.vue +++ b/src/components/profile/Section.vue @@ -10,7 +10,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later {{ title }}
-
+
diff --git a/src/views/profile/Edit.vue b/src/views/profile/Edit.vue index 85ea3eb..9ef44a1 100644 --- a/src/views/profile/Edit.vue +++ b/src/views/profile/Edit.vue @@ -98,17 +98,36 @@ SPDX-License-Identifier: AGPL-3.0-or-later @update-values="profile.searchtopics = $event" > -
- +
+
+ + +
+
+ + +
+ -
+ -
-
{{ profile.availability }}
+
+
+
+ + ja +
+
+ + nein +
+ + ({{ profile.availability_hours_per_week }} Stunden pro Woche) + +
+
+ +
{{ profile.availability_text }}
+