Add prevention_text field
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
3dacfb3e54
commit
b2e85211a7
|
@ -8,18 +8,22 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ui-popup v-if="condition !== null" heading="Bedingungen" @close="
|
<ui-popup
|
||||||
|
v-if="condition !== null"
|
||||||
|
heading="Bedingungen"
|
||||||
|
@close="
|
||||||
condition.resolve(condition.data);
|
condition.resolve(condition.data);
|
||||||
condition = null;
|
condition = null;
|
||||||
">
|
"
|
||||||
|
>
|
||||||
<slot name="conditions" :data="condition.data" :resolve="condition.resolve" :reject="condition.reject"></slot>
|
<slot name="conditions" :data="condition.data" :resolve="condition.resolve" :reject="condition.reject"></slot>
|
||||||
</ui-popup>
|
</ui-popup>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { debounce } from 'lodash';
|
import {debounce} from 'lodash';
|
||||||
import { onMounted, ref } from 'vue';
|
import {onMounted, ref} from 'vue';
|
||||||
import EditorJS from '@editorjs/editorjs';
|
import EditorJS from '@editorjs/editorjs';
|
||||||
import Header from '@editorjs/header';
|
import Header from '@editorjs/header';
|
||||||
import Paragraph from '@editorjs/paragraph';
|
import Paragraph from '@editorjs/paragraph';
|
||||||
|
@ -28,7 +32,7 @@ import Alert from 'editorjs-alert';
|
||||||
import useFieldSize from '../../composables/useFieldSize.js';
|
import useFieldSize from '../../composables/useFieldSize.js';
|
||||||
const emit = defineEmits(['update:modelValue']);
|
const emit = defineEmits(['update:modelValue']);
|
||||||
|
|
||||||
const { fieldAppearance, paddingX, paddingY, sizeClass } = useFieldSize();
|
const {fieldAppearance, paddingX, paddingY, sizeClass} = useFieldSize();
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
required: {
|
required: {
|
||||||
|
@ -84,7 +88,7 @@ async function openPopup(data) {
|
||||||
}
|
}
|
||||||
|
|
||||||
class ConditionTune {
|
class ConditionTune {
|
||||||
constructor({ api, data, config, block }) {
|
constructor({api, data, config, block}) {
|
||||||
this.api = api;
|
this.api = api;
|
||||||
this.data = data || {
|
this.data = data || {
|
||||||
mode: 'all',
|
mode: 'all',
|
||||||
|
|
|
@ -116,6 +116,16 @@
|
||||||
<f-select id="to_group_field" v-model="single.export.to_group_field" :options="allFields" label="Nach Gruppe schreiben" name="to_group_field"></f-select>
|
<f-select id="to_group_field" v-model="single.export.to_group_field" :options="allFields" label="Nach Gruppe schreiben" name="to_group_field"></f-select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div v-show="active === 4" class="grid grid-cols-2 gap-3">
|
||||||
|
<f-switch id="needs_prevention" v-model="single.needs_prevention" name="needs_prevention" label="Prävention"></f-switch>
|
||||||
|
<f-editor
|
||||||
|
id="prevention_text"
|
||||||
|
v-model="single.prevention_text"
|
||||||
|
hint="Wird an die Präventions-Email angehangen, die Teilnehmende dieser Veranstaltung erhalten"
|
||||||
|
:rows="6"
|
||||||
|
label="Präventions-Hinweis"
|
||||||
|
></f-editor>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<template #actions>
|
<template #actions>
|
||||||
<a href="#" @click.prevent="submit">
|
<a href="#" @click.prevent="submit">
|
||||||
|
@ -192,7 +202,7 @@ const deleting = ref(null);
|
||||||
const showing = ref(null);
|
const showing = ref(null);
|
||||||
const fileSettingPopup = ref(null);
|
const fileSettingPopup = ref(null);
|
||||||
|
|
||||||
const tabs = [{ title: 'Allgemeines' }, { title: 'Formular' }, { title: 'Bestätigungs-E-Mail' }, { title: 'Export' }];
|
const tabs = [{ title: 'Allgemeines' }, { title: 'Formular' }, { title: 'Bestätigungs-E-Mail' }, { title: 'Export' }, { title: 'Prävention' }];
|
||||||
const mailTabs = [{ title: 'vor Daten' }, { title: 'nach Daten' }];
|
const mailTabs = [{ title: 'vor Daten' }, { title: 'nach Daten' }];
|
||||||
|
|
||||||
const allFields = computed(() => {
|
const allFields = computed(() => {
|
||||||
|
|
Loading…
Reference in New Issue