mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
remove the possibility to generate a document from accompanying period work
This commit is contained in:
parent
71ca033b08
commit
5e3d421b56
@ -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
|
||||||
|
|
||||||
|
@ -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';
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user