2019-11-02 17:53:27 +01:00
{ include file = "admin/_head.tpl" title = "Configuration — %s" | args : $plugin.nom current = "plugin_%s" | args : $plugin.id }
{ 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>
2020-12-29 18:07:26 +01:00
{ input type = "text" name = "rna_asso" label = "RNA de l'association" source = $plugin.config }
{ input type = "text" name = "siret_asso" label = "SIRET de l'association" source = $plugin.config }
2020-10-24 03:22:22 +02:00
</dl>
<br>
<fieldset>
<legend>Adresse</legend>
<dl>
2020-12-29 18:07:26 +01:00
{ input type = "text" name = "numero_rue_asso" source = $plugin.config label = "Numéro de rue" required = 1 maxlength = 5 }
{ input type = "text" name = "rue_asso" source = $plugin.config label = "Nom de rue" required = 1 }
{ input type = "text" name = "cp_asso" source = $plugin.config label = "Code postal" required = 1 }
{ input type = "text" name = "ville_asso" source = $plugin.config label = "Ville" required = 1 }
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>
2020-12-29 18:07:26 +01:00
{ input type = "text" name = "objet_0" source = $plugin.config label = "Ligne 1" maxlength = 9 5 }
{ input type = "text" name = "objet_1" source = $plugin.config label = "Ligne 2" maxlength = 9 5 }
{ input type = "text" name = "objet_2" source = $plugin.config 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>
2020-12-29 18:07:26 +01:00
{ input type = "checkbox" name = "droit_art200" value = "1" source = $plugin.config label = "Article 200" }
{ input type = "checkbox" name = "droit_art238bis" value = "1" source = $plugin.config label = "Article 238 bis" }
{ input type = "checkbox" name = "droit_art885-0VbisA" value = "1" source = $plugin.config label = "Article 885-0V bis A" }
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>
<fieldset>
<legend>Factures</legend>
<dl>
2020-10-22 16:13:37 +02:00
<dt><label for="f_footer">Pied de documents/informations légales</label></dt>
2020-10-24 03:22:22 +02:00
<dd><textarea name="footer" id="f_footer" cols="50" rows="5"> { form_field data = $plugin.config name = footer } </textarea></dd>
</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>
2020-12-29 18:07:26 +01:00
{ input type = "checkbox" name = "validate_cp" value = "1" source = $plugin.config label = "Vérifier le code postal lors de saisie/modification de client (seulement FR)" }
{ input type = "checkbox" name = "unique_client_name" value = "1" source = $plugin.config label = "Noms des clients uniques" }
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>
2021-04-11 14:25:59 +02:00
{ *
2020-10-24 03:22:22 +02:00
<form method="post" enctype="multipart/form-data" action=" { $self_url | escape } " id="f_upload">
<fieldset>
<legend>Signature du responsable</legend>
L'image de la signature doit être au format PNG, d'une taille raisonable et doit être dotée d'un fond transparent.
<br>
2021-04-11 14:25:59 +02:00
{ * < img src = "{$image}" / > * }
2020-10-24 03:22:22 +02:00
<input type="hidden" name="MAX_FILE_SIZE" value=" { $max_size | escape } " id="f_maxsize" />
<dl>
<dd class="help">Taille maximale : { $max_size | format_bytes } </dd>
<dd class="fileUpload"><input type="file" name="fichier" id="f_fichier" data-hash-check /></dd>
</dl>
<p class="submit">
{ csrf_field key = "signature_config" }
2020-12-29 18:07:26 +01:00
{ button type = "submit" name = "upload" label = "Envoyer le fichier" shape = "right" class = "main" }
2020-10-24 03:22:22 +02:00
</p>
</fieldset>
</form>
2021-04-11 14:25:59 +02:00
*}
2020-10-24 03:22:22 +02:00
2019-11-02 17:53:27 +01:00
{ include file = "admin/_foot.tpl" }