Select Git revision
FileRefsCreateByUpload.php
Forked from
Stud.IP / Stud.IP
Source project has a limited visibility.
-
Jan-Hendrik Willms authoredJan-Hendrik Willms authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
QuestionnaireInfoEdit.vue 1.25 KiB
<template>
<div class="vote_edit">
<label>
{{ $gettext('Link eines Videos oder einer anderen Informationsseite (optional)') }}
<input type="url" v-model="val_clone.url" ref="infoUrl"
@input="checkValidity()">
</label>
<div class="formpart">
{{ $gettext('Hinweistext (optional)') }}
<StudipWysiwyg v-model="val_clone.description" />
</div>
</div>
</template>
<script>
import { QuestionnaireComponent } from '../../mixins/QuestionnaireComponent';
export default {
name: 'questionnaire-info-edit',
mixins: [ QuestionnaireComponent ],
created() {
this.setDefaultValues({
url: '',
description: ''
});
},
mounted() {
this.$refs.infoUrl.focus();
this.checkValidity();
},
methods: {
checkValidity() {
this.$refs.infoUrl.setCustomValidity('');
if (!this.$refs.infoUrl.checkValidity()) {
this.$refs.infoUrl.setCustomValidity(
this.$gettext('Der eingegebene Link ist nicht korrekt und wird nicht angezeigt werden.')
);
this.$refs.infoUrl.reportValidity();
}
}
}
}
</script>