remove the possibility to generate a document from accompanying period work

This commit is contained in:
Julien Fastré 2022-01-16 23:59:02 +01:00
parent 71ca033b08
commit 5e3d421b56
3 changed files with 2 additions and 20 deletions

View File

@ -16,6 +16,7 @@ and this project adheres to
* rewrite page which allow to select activity * rewrite page which allow to select activity
* [main] Add mainLocation field to User entity and add it in user form type * [main] Add mainLocation field to User entity and add it in user form type
* [course list in person context] show full username/label for ref * [course list in person context] show full username/label for ref
* [accompanying period work] remove the possibility to generate document from an accompanying period work
## Test releases ## Test releases

View File

@ -233,18 +233,6 @@
</ul> </ul>
</div> </div>
<div>
<pick-template
entityClass="Chill\PersonBundle\Entity\AccompanyingPeriod\AccompanyingPeriodWork"
:templates="this.templatesAvailablesForAction"
:entityId="work.id"
:beforeMove="beforeGenerateTemplate">
<template v-slot:title>
<h3>{{ $t('Generate doc') }}</h3>
</template>
</pick-template>
</div>
<div v-if="errors.length > 0" id="errors" class="alert alert-danger flashbag"> <div v-if="errors.length > 0" id="errors" class="alert alert-danger flashbag">
<p>{{ $t('fix_these_errors') }}</p> <p>{{ $t('fix_these_errors') }}</p>
<ul> <ul>
@ -458,10 +446,6 @@ export default {
submit() { submit() {
this.$store.dispatch('submit'); this.$store.dispatch('submit');
}, },
beforeGenerateTemplate() {
console.log('before generate');
return Promise.resolve();
},
saveFormOnTheFly(payload) { saveFormOnTheFly(payload) {
console.log('saveFormOnTheFly: type', payload.type, ', data', payload.data); console.log('saveFormOnTheFly: type', payload.type, ', data', payload.data);
payload.target = 'resource'; payload.target = 'resource';

View File

@ -21,10 +21,7 @@ use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Serializer\Normalizer\AbstractNormalizer; use Symfony\Component\Serializer\Normalizer\AbstractNormalizer;
use Symfony\Component\Serializer\Normalizer\NormalizerInterface; use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
class AccompanyingPeriodWorkContext implements class AccompanyingPeriodWorkContext
DocGeneratorContextInterface,
DocGeneratorContextWithAdminFormInterface,
DocGeneratorContextWithPublicFormInterface
{ {
private NormalizerInterface $normalizer; private NormalizerInterface $normalizer;