From 97abfb47746689b02094ee6fe150fa2bf48043a9 Mon Sep 17 00:00:00 2001 From: bohwaz Date: Fri, 17 Dec 2021 11:56:52 +0100 Subject: [PATCH] =?UTF-8?q?Modernisation=20des=20=C3=A9l=C3=A9ments=20du?= =?UTF-8?q?=20formulaire?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/clients.tpl | 22 ++++++++-------------- templates/config.tpl | 4 +--- templates/index.tpl | 4 ++++ 3 files changed, 13 insertions(+), 17 deletions(-) diff --git a/templates/clients.tpl b/templates/clients.tpl index 3cf12cb..e733225 100644 --- a/templates/clients.tpl +++ b/templates/clients.tpl @@ -43,7 +43,7 @@ {/if} {else} -

+

Aucun client trouvé.

{/if} @@ -54,24 +54,18 @@
Ajouter un client
-
obligatoire
-
-
obligatoire
-
-
obligatoire
-
-
obligatoire
-
-
-
-
-
+ {input type="text" name="nom" label="Nom" required=true} + {input type="text" name="adresse" label="Adresse" required=true} + {input type="text" name="code_postal" label="Code postal" required=true} + {input type="text" name="ville" label="Ville" required=true} + {input type="tel" name="telephone" label="Téléphone"} + {input type="email" name="email" label="Adresse e-mail"}

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

diff --git a/templates/config.tpl b/templates/config.tpl index 4ec6e20..286582c 100644 --- a/templates/config.tpl +++ b/templates/config.tpl @@ -51,9 +51,7 @@
Factures
-
-
- + {input type="textarea" class="full-width" rows="10" name="footer" source=$plugin.config label="Pied de document — informations légales" required=true}
diff --git a/templates/index.tpl b/templates/index.tpl index 11c20c6..a8f4596 100644 --- a/templates/index.tpl +++ b/templates/index.tpl @@ -3,6 +3,7 @@ {form_errors} +{if count($factures)} @@ -67,5 +68,8 @@
Type
+{else} +

Aucun document, vous pouvez commencer par {link href="facture_ajouter.php" label="créer un nouveau document"}.

+{/if} {include file="admin/_foot.tpl"}