From 0ef04439f162269373ad64d5fc582c2c4198a265 Mon Sep 17 00:00:00 2001 From: bohwaz Date: Fri, 17 Dec 2021 12:37:46 +0100 Subject: [PATCH] Utilisation de {input} pour le formulaire de modification --- templates/client_modifier.tpl | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/templates/client_modifier.tpl b/templates/client_modifier.tpl index 60c84a7..42dac42 100644 --- a/templates/client_modifier.tpl +++ b/templates/client_modifier.tpl @@ -7,24 +7,18 @@
Modifier un client
-
obligatoire
-
-
obligatoire
-
-
obligatoire
-
-
obligatoire
-
-
-
-
-
+ {input type="text" name="nom" label="Nom" required=true source=$client} + {input type="text" name="adresse" label="Adresse" required=true source=$client} + {input type="text" name="code_postal" label="Code postal" required=true source=$client} + {input type="text" name="ville" label="Ville" required=true source=$client} + {input type="tel" name="telephone" label="Téléphone" source=$client} + {input type="email" name="email" label="Adresse e-mail" source=$client}

{csrf_field key="edit_client"} - + {button type="submit" name="save" label="Enregistrer" shape="right" class="main"}