Skip to content

Commit

Permalink
add horodatage
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianaJM committed Jan 28, 2025
1 parent e3359a4 commit 22e285f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
14 changes: 9 additions & 5 deletions front/src/Apps/Dashboard/Validation/Bsvhu/SignVhuOperation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import RhfOperationModeSelect from "../../../common/Components/OperationModeSele
import Select from "@codegouvfr/react-dsfr/Select";
import { COMPANY_SELECTOR_PRIVATE_INFOS } from "../../../common/queries/company/query";
import { useParams } from "react-router-dom";
import { SignatureTimestamp } from "../BSPaoh/WorkflowAction/components/Signature";

const schema = z.object({
author: z
Expand Down Expand Up @@ -169,11 +170,6 @@ const SignVhuOperation = ({ bsvhuId, onClose }) => {
<WasteVhuSummary bsvhu={bsvhu} />
<BsvhuJourneySummary bsvhu={bsvhu} />

<p className="fr-text fr-mb-2w">
En qualité de <strong>destinataire du déchet</strong>, j'atteste que les
informations ci-dessus sont correctes. En signant, je confirme le
traitement des déchets pour la quantité indiquée dans ce bordereau.
</p>
<FormProvider {...methods}>
<form
onSubmit={handleSubmit(async data => {
Expand Down Expand Up @@ -262,6 +258,13 @@ const SignVhuOperation = ({ bsvhuId, onClose }) => {
</>
)}

<p className="fr-text fr-mb-2w">
En qualité de <strong>destinataire du déchet</strong>, j'atteste que
les informations ci-dessus sont correctes. En signant, je confirme
le traitement des déchets pour la quantité indiquée dans ce
bordereau.
</p>

<div className="fr-col-4 fr-mb-2w">
<Input
label="Date de traitement"
Expand All @@ -285,6 +288,7 @@ const SignVhuOperation = ({ bsvhuId, onClose }) => {
stateRelatedMessage={formState.errors.author?.message}
/>
</div>
<SignatureTimestamp />
<div className="fr-mb-8w">
{updateError && <DsfrNotificationError apolloError={updateError} />}
{error && <DsfrNotificationError apolloError={error} />}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@
&.error {
box-shadow: inset 0 -2px 0 0 var(--border-plain-error);
}

button {
background-color: var(--background-action-low-blue-france) !important;
color: var(--text-action-high-grey) !important;
}
button:hover {
background-color: var(--background-action-low-blue-france-hover) !important;
}
}

.multiTagsInput {
Expand Down

0 comments on commit 22e285f

Please sign in to comment.