2023-08-04 18:00:08 +02:00
{ include file = "_head.tpl" title = "Configuration — %s" | args : $plugin.name current = "plugin_%s" | args : $plugin.id }
2019-11-02 17:53:27 +01:00
{ include file = "%s/templates/_menu.tpl" | args : $plugin_root current = "config" }
{ if $ok & & ! $form - > hasErrors ( ) }
2020-12-29 18:07:26 +01:00
<p class="block confirm">
2019-11-02 17:53:27 +01:00
La configuration a bien été enregistrée.
</p>
{ /if }
{ form_errors }
<form method="post" action=" { $self_url } ">
<fieldset>
2020-10-24 03:22:22 +02:00
<legend>Informations de l'association</legend>
2019-11-02 17:53:27 +01:00
<dl>
2023-08-04 18:00:08 +02:00
{ input type = "text" name = "rna_asso" label = "RNA de l'association" source = $conf }
{ input type = "text" name = "siret_asso" label = "SIRET de l'association" source = $conf }
{ input type = "checkbox" name = "ttc" value = "1" label = "L'association émet des factures TTC (TVA)" source = $conf }
2020-10-24 03:22:22 +02:00
</dl>
<br>
<fieldset>
<legend>Adresse</legend>
<dl>
2023-08-04 18:00:08 +02:00
{ input type = "text" name = "numero_rue_asso" source = $conf label = "Numéro de rue" maxlength = 5 }
{ input type = "text" name = "rue_asso" source = $conf label = "Nom de rue" }
{ input type = "text" name = "cp_asso" source = $conf label = "Code postal" }
{ input type = "text" name = "ville_asso" source = $conf label = "Ville" }
2020-10-24 03:22:22 +02:00
</dl>
</fieldset>
<fieldset>
<legend>Objet</legend>
<dl>
<dt><label>L'objet (but) de l'association doit tenir sur 3 lignes, chaque ligne pouvant accueillir un maximum de 100 caractères.</label><b title="(Champ obligatoire)">obligatoire pour reçus fiscaux</b></dt>
2023-08-04 18:00:08 +02:00
{ input type = "text" name = "objet_0" source = $conf label = "Ligne 1" maxlength = 9 5 }
{ input type = "text" name = "objet_1" source = $conf label = "Ligne 2" maxlength = 9 5 }
{ input type = "text" name = "objet_2" source = $conf label = "Ligne 3" maxlength = 9 5 }
2020-10-24 03:22:22 +02:00
</dl>
</fieldset>
<fieldset>
<legend>Droit à la réduction d'impôt</legend>
<dl>
2020-10-24 22:06:16 +02:00
<dt><label>Articles concernés par l'association :</label> <b title="(Champ obligatoire)">obligatoire pour reçus fiscaux</b></dt>
2023-08-04 18:00:08 +02:00
{ input type = "checkbox" name = "droit_art200" value = "1" source = $conf label = "Article 200" }
{ input type = "checkbox" name = "droit_art238bis" value = "1" source = $conf label = "Article 238 bis" }
{ input type = "checkbox" name = "droit_art885_0VbisA" value = "1" source = $conf label = "Article 885-0V bis A" }
2020-10-24 03:22:22 +02:00
</dl>
</fieldset>
2019-11-02 17:53:27 +01:00
2024-08-13 20:43:03 +02:00
</fieldset>
2020-10-24 03:22:22 +02:00
<fieldset>
<legend>Factures</legend>
<dl>
2024-06-20 15:55:33 +02:00
{ input type = "checkbox" name = "logo" value = "1" source = $conf label = "Imprimer le logo de l'association" }
2023-08-04 18:00:08 +02:00
{ input type = "textarea" class = "full-width" rows = "10" name = "footer" source = $conf label = "Pied de document — informations légales" required = true }
2020-10-24 03:22:22 +02:00
</dl>
</fieldset>
2019-11-02 17:53:27 +01:00
2020-10-24 03:22:22 +02:00
<fieldset>
<legend>Configuration du plugin</legend>
<dl>
2023-08-04 18:00:08 +02:00
{ input type = "checkbox" name = "validate_cp" value = "1" source = $conf label = "Vérifier le code postal lors de saisie/modification de client (seulement FR)" }
{ input type = "checkbox" name = "unique_client_name" value = "1" source = $conf label = "Noms des clients uniques" }
{ input type = "select" name = "pattern" label = "Format de numéro de document" required = false options = $patterns source = $conf }
2021-12-17 21:10:54 +01:00
<dd class="help">
F = Facture, D = Devis, RF = Reçu fiscal, RC = Reçu cotisation
</dd>
2019-11-02 17:53:27 +01:00
</dl>
2020-10-24 09:19:21 +02:00
<i>Pour personnaliser l'apparence de la facture, il faut pour l'instant se retrousser les manches et éditer soi-même le fichier www/admin/pdf.php du plugin ! </i>
2019-11-02 17:53:27 +01:00
</fieldset>
<p class="submit">
{ csrf_field key = "facturation_config" }
2020-12-29 18:07:26 +01:00
{ button type = "submit" name = "save" label = "Enregistrer" shape = "right" class = "main" }
2019-11-02 17:53:27 +01:00
</p>
</form>
2023-08-01 22:56:38 +02:00
{ include file = "_foot.tpl" }