Skip to content
Snippets Groups Projects
Commit 42c78ff7 authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala:
Browse files

fix: instruct users to create show types and funding categories in admin interface

This is a stopgap measure until we’ve worked on #17 [1] and added a
management interface for simple models like funding categories and show
types.

refs #97

[1] #17
parent b650844b
No related branches found
No related tags found
No related merge requests found
......@@ -45,6 +45,10 @@
</div>
<div v-else>
<b-form-select v-model="newShow.type" :options="showTypeSelector" />
<p
v-if="showTypeSelector.length === 0"
v-html="$t('showCreator.missingShowTypes', { adminUrl })"
/>
</div>
</b-col>
</b-row>
......@@ -61,6 +65,10 @@
v-model="newShow.fundingcategory"
:options="showFundingCategorySelector"
/>
<p
v-if="showFundingCategorySelector.length === 0"
v-html="$t('showCreator.missingShowFundingCategories', { adminUrl })"
/>
</div>
</b-col>
</b-row>
......@@ -80,6 +88,7 @@ export default {
},
data() {
return {
adminUrl: `${import.meta.env.VUE_APP_BASEURI_STEERING}/admin`,
newShow: {
name: '',
slug: '',
......
......@@ -337,6 +337,10 @@ export default {
showCreator: {
title: 'Neue Sendereihe erstellen',
missingShowTypes:
'Es wurden noch keine Arten von Sendereihen angelegt. Du kannst das im <a href="%{adminUrl}/program/type/add/" target="_blank">Administrationsbereich</a> nachholen.',
missingShowFundingCategories:
'Es wurden noch keine Förderkategorien angelegt. Du kannst das im <a href="%{adminUrl}/program/fundingcategory/add/" target="_blank">Administrationsbereich</a> nachholen.',
},
conflictResolution: {
......
......@@ -336,6 +336,10 @@ export default {
showCreator: {
title: 'Create new show',
missingShowTypes:
'No show types have been created yet. You can add them in the <a href="%{adminUrl}/program/type/add/" target="_blank">administration interface</a>.',
missingShowFundingCategories:
'No funding categories have been created yet. You can add them in the <a href="%{adminUrl}/program/fundingcategory/add/" target="_blank">administration interface</a>.',
},
conflictResolution: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment