Correctifs du formulaire pour sélection membre/client
This commit is contained in:
parent
4fb4c9025c
commit
364c7065fc
@ -58,24 +58,26 @@
|
|||||||
<legend>Client</legend>
|
<legend>Client</legend>
|
||||||
|
|
||||||
<dl>
|
<dl>
|
||||||
<dt><label>Document adressée à :</label></dt>
|
<dt><label>Document adressé à :</label></dt>
|
||||||
{if !empty($clients)}
|
{if !empty($clients)}
|
||||||
<dd>
|
<dd>
|
||||||
{input type="radio" name="base_receveur" value="membre" source=$doc label="Un·e membre"}
|
{input type="radio" name="base_receveur" value="membre" label="Un·e membre" default=1 source=$doc}
|
||||||
{input type="radio" name="base_receveur" value="client" source=$doc label="Un·e client·e"}
|
{input type="radio" name="base_receveur" value="client" label="Un·e client·e" source=$doc}
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
{/if}
|
{/if}
|
||||||
<div class="type_membre">
|
|
||||||
{input type="select" name="membre" label="Membre" options=$membres required=1 source=$doc}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{if !empty($clients)}
|
|
||||||
<div class="type_client">
|
|
||||||
{input type="select" name="client" label="Client" options=$clients required=1 source=$doc class="type_client"}
|
|
||||||
</div>
|
|
||||||
{/if}
|
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
|
<dl class="type_membre">
|
||||||
|
{input type="select" name="membre" label="Membre" options=$membres required=1 source=$doc}
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
{if !empty($clients)}
|
||||||
|
<dl class="type_client">
|
||||||
|
{input type="select" name="client" label="Client" options=$clients required=1 class="type_client" source=$doc}
|
||||||
|
</dl>
|
||||||
|
{else}
|
||||||
|
<input type="hidden" name="base_receveur" value="membre" />
|
||||||
|
{/if}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<fieldset data-types="t0 t1 t2">
|
<fieldset data-types="t0 t1 t2">
|
||||||
|
Loading…
Reference in New Issue
Block a user