{{ $tc('components.camp.campPeriods.title', api.get().camps().items.length) }}
-
+
+ :period="period"
+ :disabled="disabled" />
@@ -40,7 +41,8 @@ export default {
name: 'CampPeriods',
components: { ContentGroup, ButtonAdd, PeriodItem, DialogPeriodCreate },
props: {
- camp: { type: Function, required: true }
+ camp: { type: Function, required: true },
+ disabled: { type: Boolean, default: false }
},
data () {
return {}
diff --git a/frontend/src/components/camp/CampPeriodsListItem.vue b/frontend/src/components/camp/CampPeriodsListItem.vue
index 5fe8cd46e42..c587e580357 100644
--- a/frontend/src/components/camp/CampPeriodsListItem.vue
+++ b/frontend/src/components/camp/CampPeriodsListItem.vue
@@ -12,7 +12,7 @@ Displays a single period as a list item including controls to edit and delete it
-
+
@@ -22,7 +22,7 @@ Displays a single period as a list item including controls to edit and delete it
-
+
mdi-dots-vertical
@@ -65,7 +65,8 @@ export default {
name: 'CampPeriods',
components: { DialogEntityDelete, DialogPeriodEdit, ButtonEdit, ButtonDelete },
props: {
- period: { type: Object, required: true }
+ period: { type: Object, required: true },
+ disabled: { type: Boolean, default: false }
},
computed: {
isLastPeriod () {
diff --git a/frontend/src/components/camp/CampSettings.vue b/frontend/src/components/camp/CampSettings.vue
index 6c00fd7c7d9..2d1bb2ad225 100644
--- a/frontend/src/components/camp/CampSettings.vue
+++ b/frontend/src/components/camp/CampSettings.vue
@@ -10,14 +10,17 @@ Displays details on a single camp and allows to edit them.
+ vee-rules="required"
+ :disabled="disabled" />
+ vee-rules="required"
+ :disabled="disabled" />
+ :name="$tc('entity.camp.fields.motto')"
+ :disabled="disabled" />
@@ -35,6 +38,10 @@ export default {
camp: {
type: Function,
required: true
+ },
+ disabled: {
+ type: Boolean,
+ default: false
}
},
data () {
diff --git a/frontend/src/views/camp/Admin.vue b/frontend/src/views/camp/Admin.vue
index d199a1a8c30..8ce6b527345 100644
--- a/frontend/src/views/camp/Admin.vue
+++ b/frontend/src/views/camp/Admin.vue
@@ -7,18 +7,18 @@ Admin screen of a camp: Displays details & periods of a single camp and allows t