-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(backend): add phone in contact form
- Loading branch information
Showing
40 changed files
with
279 additions
and
157 deletions.
There are no files selected for viewing
Binary file not shown.
42 changes: 7 additions & 35 deletions
42
_scripts/db/dumps/domifa_test.postgres.restore-data-only.sql
Large diffs are not rendered by default.
Oops, something went wrong.
42 changes: 7 additions & 35 deletions
42
_scripts/db/dumps/domifa_test.postgres.truncate-restore-data-only.sql
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
packages/backend/src/_migrations/1735574440877-auto-migration.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import { MigrationInterface, QueryRunner } from "typeorm"; | ||
import { domifaConfig } from "../config"; | ||
|
||
export class AutoMigration1735574440877 implements MigrationInterface { | ||
name = "AutoMigration1735574440877"; | ||
|
||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
if ( | ||
domifaConfig().envId === "prod" || | ||
domifaConfig().envId === "preprod" || | ||
domifaConfig().envId === "local" | ||
) { | ||
await queryRunner.query( | ||
`DROP INDEX "public"."IDX_57133463f2311234ecf27157fa"` | ||
); | ||
await queryRunner.query( | ||
`ALTER TABLE "structure" DROP COLUMN "filesUpdated"` | ||
); | ||
await queryRunner.query(`ALTER TABLE "contact_support" ADD "phone" text`); | ||
await queryRunner.query( | ||
`ALTER TABLE "usager" ALTER COLUMN "nom_prenom_surnom_ref" SET NOT NULL` | ||
); | ||
await queryRunner.query( | ||
`CREATE INDEX "IDX_f072e2874bd87ecb6da2fbd66e" ON "usager" ("nom_prenom_surnom_ref") ` | ||
); | ||
} | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query( | ||
`DROP INDEX "public"."IDX_f072e2874bd87ecb6da2fbd66e"` | ||
); | ||
await queryRunner.query( | ||
`ALTER TABLE "usager" ALTER COLUMN "nom_prenom_surnom_ref" DROP NOT NULL` | ||
); | ||
await queryRunner.query( | ||
`ALTER TABLE "contact_support" DROP COLUMN "phone"` | ||
); | ||
await queryRunner.query( | ||
`ALTER TABLE "structure" ADD "filesUpdated" boolean NOT NULL DEFAULT false` | ||
); | ||
await queryRunner.query( | ||
`CREATE INDEX "IDX_57133463f2311234ecf27157fa" ON "usager" ("nom_prenom_surnom_ref") ` | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -172,6 +172,19 @@ <h2 style="color: #000000; font-family: sans-serif; font-weight: 400; line-heigh | |
<strong>Email : </strong> [email protected] | ||
</p> | ||
|
||
|
||
<p | ||
style=" | ||
font-family: sans-serif; | ||
font-size: 14px; | ||
font-weight: normal; | ||
margin: 0; | ||
margin-bottom: 15px; | ||
" | ||
> | ||
<strong>Téléphone : </strong> non renseigné | ||
</p> | ||
|
||
<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; margin-bottom: 15px;"> | ||
<strong>Contenu du message: </strong><br><br> Do esse tempor veniam incididunt deserunt ad labore laboris commodo id exercitation sit. Sunt minim tempor ad quis esse est eiusmod incididunt id dolor adipisicing ex excepteur. Consectetur consectetur dolore tempor nisi enim pariatur. Nostrud ea reprehenderit minim pariatur irure. Velit anim qui veniam et in excepteur duis eiusmod est culpa voluptate enim eiusmod laboris. Ut sunt sint magna ullamco nostrud velit est pariatur sit ea consectetur commodo minim. | ||
</p> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.