Start PhysicalSample
This commit is contained in:
parent
30876abff3
commit
3f57b195bc
9 changed files with 63 additions and 9 deletions
Binary file not shown.
|
After Width: | Height: | Size: 53 KiB |
|
|
@ -0,0 +1,5 @@
|
||||||
|
Uuid: 6vTPqTeP4VX0i1dY
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
Template: pdf-cover
|
||||||
|
|
@ -10,6 +10,10 @@ Cover: - file://0XaNKWTOhgkS3CJj
|
||||||
|
|
||||||
----
|
----
|
||||||
|
|
||||||
|
Headline: Titre échantillon physique
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
Date: 2024-12-11
|
Date: 2024-12-11
|
||||||
|
|
||||||
----
|
----
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ Title: Projet test2
|
||||||
|
|
||||||
----
|
----
|
||||||
|
|
||||||
Currentstep: clientBrief
|
Currentstep: physicalSample
|
||||||
|
|
||||||
----
|
----
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,11 @@ tabs:
|
||||||
image:
|
image:
|
||||||
ratio: 6/1
|
ratio: 6/1
|
||||||
cover: true
|
cover: true
|
||||||
|
headline:
|
||||||
|
label: Titre
|
||||||
|
type: text
|
||||||
|
required: true
|
||||||
|
width: 3/12
|
||||||
date:
|
date:
|
||||||
type: date
|
type: date
|
||||||
display: DD/MM/YY
|
display: DD/MM/YY
|
||||||
|
|
@ -36,7 +41,7 @@ tabs:
|
||||||
description:
|
description:
|
||||||
type: text
|
type: text
|
||||||
required: true
|
required: true
|
||||||
width: 10/12
|
width: 7/12
|
||||||
media:
|
media:
|
||||||
type: files
|
type: files
|
||||||
layout: cards
|
layout: cards
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,8 @@ class ProjectPage extends Page {
|
||||||
'modified' => $child->modified('Y-MM-dd'),
|
'modified' => $child->modified('Y-MM-dd'),
|
||||||
'isValidated' => $child->isValidated() == 'true' ? true : false,
|
'isValidated' => $child->isValidated() == 'true' ? true : false,
|
||||||
'description' => $child->description()->isNotempty() ? $child->description()->value() : null,
|
'description' => $child->description()->isNotempty() ? $child->description()->value() : null,
|
||||||
|
'title' => $child->headline()->isNotempty() ? $child->headline()->value() : null,
|
||||||
|
'date' => $child->date()->isNotempty() ? $child->date()->value() : null,
|
||||||
'cover' => $child->cover()->isNotempty() ? $child->cover()->toFile()->url() : null,
|
'cover' => $child->cover()->isNotempty() ? $child->cover()->toFile()->url() : null,
|
||||||
'uri' => $uri,
|
'uri' => $uri,
|
||||||
'files' => $files,
|
'files' => $files,
|
||||||
|
|
|
||||||
|
|
@ -6,10 +6,8 @@
|
||||||
dialog.content.slug === 'industrial-ideation'
|
dialog.content.slug === 'industrial-ideation'
|
||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<VirtualSample v-if="dialog.content.slug === 'virtual-sample'" />
|
<VirtualSample v-if="dialog.content.slug === 'virtual-sample'" />
|
||||||
|
<PhysicalSample v-if="dialog.content.slug === 'physical-sample'" />
|
||||||
<PhysicalSample v-if="dialog.content.slug === 'physical-content'" />
|
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import TitledPdfWrapper from "./TitledPdfWrapper.vue";
|
import TitledPdfWrapper from "./TitledPdfWrapper.vue";
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,35 @@
|
||||||
<template></template>
|
<template>
|
||||||
<script setup></script>
|
<Dialog
|
||||||
|
id="physical-sample"
|
||||||
|
v-model:visible="isOpen"
|
||||||
|
modal
|
||||||
|
:draggable="false"
|
||||||
|
dismissableMask="true"
|
||||||
|
class="dialog"
|
||||||
|
:closeOnEscape="true"
|
||||||
|
>
|
||||||
|
<header>
|
||||||
|
<h2>Titre de la modal</h2>
|
||||||
|
</header>
|
||||||
|
</Dialog>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import Dialog from "primevue/dialog";
|
||||||
|
import { ref, watch } from "vue";
|
||||||
|
import { useDialogStore } from "../../stores/dialog";
|
||||||
|
import { useRoute, useRouter } from "vue-router";
|
||||||
|
import { usePageStore } from "../../stores/page.js";
|
||||||
|
|
||||||
|
// Variables
|
||||||
|
const router = useRouter();
|
||||||
|
const route = useRoute();
|
||||||
|
const isOpen = ref(true);
|
||||||
|
watch(isOpen, (newValue) => {
|
||||||
|
router.push({ name: route.name });
|
||||||
|
});
|
||||||
|
const { page } = usePageStore();
|
||||||
|
const step = page.steps[page.step.length - 1];
|
||||||
|
</script>
|
||||||
|
|
||||||
<style></style>
|
<style></style>
|
||||||
|
|
|
||||||
|
|
@ -154,8 +154,16 @@
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template v-if="step.id === 'physicalSample'"></template>
|
<template v-if="step.id === 'physicalSample'">
|
||||||
<!-- Empty state -->
|
<header>
|
||||||
|
<h3>
|
||||||
|
<router-link :to="'/' + step.uri">{{ step.title }}</router-link>
|
||||||
|
</h3>
|
||||||
|
<time :datetime="step.date">{{ step.date }}</time>
|
||||||
|
<p>{{ step.description }}</p>
|
||||||
|
</header>
|
||||||
|
<img :src="step.files[0].url" alt="" loading="lazy">
|
||||||
|
</template>
|
||||||
<template v-else></template>
|
<template v-else></template>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue