Modernisation des éléments du formulaire

This commit is contained in:
bohwaz 2021-12-17 11:56:52 +01:00
parent 323bc87a38
commit 97abfb4774
3 changed files with 13 additions and 17 deletions

View File

@ -43,7 +43,7 @@
{/if} {/if}
</table> </table>
{else} {else}
<p class="alert"> <p class="alert block">
Aucun client trouvé. Aucun client trouvé.
</p> </p>
{/if} {/if}
@ -54,24 +54,18 @@
<fieldset> <fieldset>
<legend>Ajouter un client</legend> <legend>Ajouter un client</legend>
<dl> <dl>
<dt><label for="f_nom">Nom</label> <b title="(Champ obligatoire)">obligatoire</b></dt> {input type="text" name="nom" label="Nom" required=true}
<dd><input type="nom" name="nom" id="f_nom" value="{form_field name="nom"}"/></dd> {input type="text" name="adresse" label="Adresse" required=true}
<dt><label for="f_adresse">Adresse</label> <b title="(Champ obligatoire)">obligatoire</b></dt> {input type="text" name="code_postal" label="Code postal" required=true}
<dd><input type="text" name="adresse" id="f_adresse" value="{form_field name="adresse"}"/></dd> {input type="text" name="ville" label="Ville" required=true}
<dt><label for="f_cp">Code postal</label> <b title="(Champ obligatoire)">obligatoire</b></dt> {input type="tel" name="telephone" label="Téléphone"}
<dd><input type="text" name="code_postal" id="f_cp" value="{form_field name="code_postal"}"/></dd> {input type="email" name="email" label="Adresse e-mail"}
<dt><label for="f_ville">Ville</label> <b title="(Champ obligatoire)">obligatoire</b></dt>
<dd><input type="text" name="ville" id="f_ville" value="{form_field name="ville"}"/></dd>
<dt><label for="f_tel">Téléphone</label></dt>
<dd><input type="text" name="telephone" id="f_tel" value="{form_field name="telephone"}"/></dd>
<dt><label for="f_email">Adresse mail</label></dt>
<dd><input type="text" name="email" id="f_email" value="{form_field name="email"}"/></dd>
</dl> </dl>
</fieldset> </fieldset>
<p class="submit"> <p class="submit">
{csrf_field key="add_client"} {csrf_field key="add_client"}
<input type="submit" name="add" value="Enregistrer &rarr;" /> {button type="submit" name="add" label="Enregistrer" shape="right" class="main"}
</p> </p>
</form> </form>

View File

@ -51,9 +51,7 @@
<fieldset> <fieldset>
<legend>Factures</legend> <legend>Factures</legend>
<dl> <dl>
<dt><label for="f_footer">Pied de documents/informations légales</label></dt> {input type="textarea" class="full-width" rows="10" name="footer" source=$plugin.config label="Pied de document — informations légales" required=true}
<dd><textarea name="footer" id="f_footer" cols="50" rows="5">{form_field data=$plugin.config name=footer}</textarea></dd>
</dl> </dl>
</fieldset> </fieldset>

View File

@ -3,6 +3,7 @@
{form_errors} {form_errors}
{if count($factures)}
<table class="list"> <table class="list">
<thead> <thead>
<td>Type</td> <td>Type</td>
@ -67,5 +68,8 @@
</tbody> </tbody>
</table> </table>
{else}
<p class="help">Aucun document, vous pouvez commencer par {link href="facture_ajouter.php" label="créer un nouveau document"}.</p>
{/if}
{include file="admin/_foot.tpl"} {include file="admin/_foot.tpl"}