diff --git a/admin/docs/generation-documents/cheatsheet.md b/admin/docs/generation-documents/cheatsheet.md index 862fa06..cfe4699 100644 --- a/admin/docs/generation-documents/cheatsheet.md +++ b/admin/docs/generation-documents/cheatsheet.md @@ -35,3 +35,40 @@ | Rendez-vous | `mainPerson` | [Person](properties.md#sec:entity-person) | si configuré par l'administrateur fonctionnel | | Rendez-vous | `thirdParty` | [ThirdParty](properties.md#sec:entity-thirdparty) | si configuré par l'administrateur fonctionnel | +## Conditions + +### Avec un `if` + +| Balise | Contenu | +| --- | --- | +| Balise ouvrante de la condition | `if test="v.mainPerson.age > 18` | +| Balise fermante | `/if` | + +![Exemple de condition](/admin/img/generation-document/libre-office-renvoi-if.png) + + +### Arbre de décision + +| Balise | Contenu | +| --- | --- | +| Balise ouvrante | `choose test=""` | +| Balise ouvrante de la première condition | `when test="v.person.age < 18"` | +| Balise fermante de la première condition | `/when` | +| Balise ouvrante de la deuxième condition | `when test="v.person.age >= 18 and v.person.age < 65"` | +| Balise fermante de la deuxième condition | `/when` | +| Balise restante | `otherwise test=""` | +| Balise fermante de la troisième condition | `/otherwise` | +| Balise fermante | `` | + +![Arbre de décision](/admin/img/generation-document/libre-office-renvoi-if-match.png) + +## Boucles + +| Balise | Contenu | +| --- | --- | +| Balise ouvrante de la boucle | `for each="m in v.loop"` | +| Balise fermante de la boucle | `/for` | + +Exemple: + +![Exemple de boucle](/admin/img/generation-document/libre-office-renvoi-loop.png) \ No newline at end of file diff --git a/admin/docs/img/generation-document/libre-office-renvoi-if-match.png b/admin/docs/img/generation-document/libre-office-renvoi-if-match.png new file mode 100644 index 0000000..5bba9eb --- /dev/null +++ b/admin/docs/img/generation-document/libre-office-renvoi-if-match.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e40b6bdf843f7b4188d3f146802671878030650175c56c8523f21c10577be1b0 +size 14533 diff --git a/admin/docs/img/generation-document/libre-office-renvoi-if.png b/admin/docs/img/generation-document/libre-office-renvoi-if.png new file mode 100644 index 0000000..fe4b3ee --- /dev/null +++ b/admin/docs/img/generation-document/libre-office-renvoi-if.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c3a05d8360c2a1aaee4532ea8c63f0b787efed865652e97da5142dfa689df02a +size 7069 diff --git a/admin/docs/img/generation-document/libre-office-renvoi-loop.png b/admin/docs/img/generation-document/libre-office-renvoi-loop.png new file mode 100644 index 0000000..d1cef1e --- /dev/null +++ b/admin/docs/img/generation-document/libre-office-renvoi-loop.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:71ffcf79d65f2ae8916e7d1f66283dd9c6cf3f8dd71b05d5a197d23e7eba65c6 +size 24268