+
+ Du kannst dich nicht zum Bardienst eintragen, da der Tag gesperrt ist.
+
+
+ Du kannst dich nicht Bardienst eintragen, da mehr als 2 Personen schon eingetragen sind.
+
+ Hier kannst du dich zum Bardienst eintragen.
+
+ Monat sperren
+ Monat freigeben
+
-
+
Woche vom {{ week.startDate.getDate() }}.{{
week.startDate.getMonth() + 1
@@ -81,7 +85,8 @@ export default {
methods: {
...mapActions({
createMonth: 'sm/createMonth',
- getAllUsers: 'sm/getAllUsers'
+ getAllUsers: 'sm/getAllUsers',
+ lockDay: 'sm/lockDay'
}),
changeMonth(value) {
if (value === -1) {
@@ -90,6 +95,14 @@ export default {
this.date = new Date(this.date.getFullYear(), this.date.getMonth() + 1)
}
this.createMonth(this.date)
+ },
+ lockDays(value) {
+ for (var week in this.month) {
+ for (var dayint in this.month[week].days) {
+ var day = this.month[week].days[dayint]
+ this.lockDay({year: day.date.getFullYear(), month: day.date.getMonth() + 1, day: day.date.getDate(), locked: value})
+ }
+ }
}
},
computed: {
diff --git a/src/components/vorstand/ServiceManagementComponents/Day.vue b/src/components/vorstand/ServiceManagementComponents/Day.vue
index 264cfaa..5d9440c 100644
--- a/src/components/vorstand/ServiceManagementComponents/Day.vue
+++ b/src/components/vorstand/ServiceManagementComponents/Day.vue
@@ -24,14 +24,13 @@
label="Dienste"
filled
color="green"
- @input="searchInput=null"
+ @input="searchInput = null"
:search-input.sync="searchInput"
- @blur="focused=false"
- @focus="focused=true"
-
+ @blur="focused = false"
+ @focus="focused = true"
>
- {{account_add}}
+ {{ account_add }}
+
+ {{ lockedText }}
+
+ {{lockedTextBtn}}
+