This commit is contained in:
parent
c578538fe0
commit
e4f06ad854
1 changed files with 25 additions and 24 deletions
|
|
@ -21,7 +21,9 @@
|
|||
v-if="
|
||||
step.id !== 'proposal' &&
|
||||
step.id !== 'industrialIdeation' &&
|
||||
step.id !== 'physicalSample'
|
||||
step.id !== 'physicalSample' &&
|
||||
step.id === 'clientBrief' &&
|
||||
step.files.some((file) => file.type === 'image')
|
||||
"
|
||||
>
|
||||
<hgroup class="order-last">
|
||||
|
|
@ -96,29 +98,6 @@
|
|||
</footer>
|
||||
</article>
|
||||
|
||||
<template v-if="step.id === 'clientBrief' && hasOneBriefType()">
|
||||
<button
|
||||
v-if="step.files[0].type === 'document'"
|
||||
class="btn | w-full"
|
||||
@click="toImagesBrief()"
|
||||
>
|
||||
Ajouter un brief via la plateforme
|
||||
</button>
|
||||
<div class="btn | w-full" v-else>
|
||||
<label for="upload-pdf">
|
||||
Ajouter brief PDF
|
||||
<input
|
||||
id="upload-pdf"
|
||||
type="file"
|
||||
@change="addPdf($event, step.uri)"
|
||||
accept="application/pdf"
|
||||
ref="pdfInput"
|
||||
hidden
|
||||
/>
|
||||
</label>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<template
|
||||
v-if="
|
||||
(step.id == 'clientBrief' &&
|
||||
|
|
@ -184,6 +163,28 @@
|
|||
</article>
|
||||
</template>
|
||||
</template>
|
||||
<template v-if="step.id === 'clientBrief' && hasOneBriefType()">
|
||||
<button
|
||||
v-if="step.files.find((file) => file.type === 'document')"
|
||||
class="btn | w-full"
|
||||
@click="toImagesBrief()"
|
||||
>
|
||||
Ajouter un brief via la plateforme
|
||||
</button>
|
||||
<div class="btn | w-full" v-else>
|
||||
<label for="upload-pdf">
|
||||
Ajouter brief PDF
|
||||
<input
|
||||
id="upload-pdf"
|
||||
type="file"
|
||||
@change="addPdf($event, step.uri)"
|
||||
accept="application/pdf"
|
||||
ref="pdfInput"
|
||||
hidden
|
||||
/>
|
||||
</label>
|
||||
</div>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
<template v-if="step.id === 'physicalSample' && step.files[0]">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue