Associate generate document with evaluation and update UX to go back to

documents
This commit is contained in:
2021-08-20 12:44:15 +02:00
parent 80672a038c
commit 7f28effc1e
8 changed files with 175 additions and 16 deletions

View File

@@ -19,8 +19,20 @@
<dt v-if="evaluation.warningInterval">{{ $t('warningInterval') }} :</dt>
<dd v-if="evaluation.warningInterval">{{ evaluation.warningInterval }}</dd>
<dt v-if="evaluation.documents && evaluation.documents.length > 0">{{ $t('documents') }} :</dt>
<dd v-if="evaluation.documents && evaluation.documents.length > 0">{{ evaluation.documents.length }}</dd>
<template v-if="evaluation.documents.length > 1">
<dt>{{ $t('documents') }} :</dt>
<dd>
<ul>
<li v-for="d in evaluation.documents" :key="d.id">
{{ d.template.name.fr }}
<a :href="buildEditLink(d.storedObject)" class="btn btn-action btn-sm">
<i class="fa fa-edit"></i>
</a>
</li>
</ul>
</dd>
</template>
</dl>
<dl class="item-details">
@@ -82,7 +94,7 @@ export default {
computed: {
pickedEvaluations() {
return this.$store.state.evaluationsPicked;
}
},
},
methods: {
removeEvaluation(e) {
@@ -95,7 +107,10 @@ export default {
},
submitForm() {
this.toggleEditEvaluation();
}
},
buildEditLink(storedObject) {
return `/wopi/edit/${storedObject.filename}`;
},
}
}
</script>