From 364c7065fc71d66df462173cbab86481c8b5b0ca Mon Sep 17 00:00:00 2001 From: bohwaz Date: Fri, 17 Dec 2021 14:11:25 +0100 Subject: [PATCH] =?UTF-8?q?Correctifs=20du=20formulaire=20pour=20s=C3=A9le?= =?UTF-8?q?ction=20membre/client?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/facture_modifier.tpl | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/templates/facture_modifier.tpl b/templates/facture_modifier.tpl index 34ef178..195753d 100644 --- a/templates/facture_modifier.tpl +++ b/templates/facture_modifier.tpl @@ -58,24 +58,26 @@ Client
-
+
{if !empty($clients)}
- {input type="radio" name="base_receveur" value="membre" source=$doc label="Un·e membre"} - {input type="radio" name="base_receveur" value="client" source=$doc label="Un·e client·e"} + {input type="radio" name="base_receveur" value="membre" label="Un·e membre" default=1 source=$doc} + {input type="radio" name="base_receveur" value="client" label="Un·e client·e" source=$doc}
- {/if} -
- {input type="select" name="membre" label="Membre" options=$membres required=1 source=$doc} -
- - {if !empty($clients)} -
- {input type="select" name="client" label="Client" options=$clients required=1 source=$doc class="type_client"} -
- {/if}
+ +
+ {input type="select" name="membre" label="Membre" options=$membres required=1 source=$doc} +
+ + {if !empty($clients)} +
+ {input type="select" name="client" label="Client" options=$clients required=1 class="type_client" source=$doc} +
+ {else} + + {/if}