Ajout des options de configuration pour reçus
This commit is contained in:
parent
64dc0d541d
commit
b18cd91aa4
10 changed files with 514 additions and 14 deletions
|
|
@ -11,18 +11,69 @@
|
|||
|
||||
<form method="post" action="{$self_url}">
|
||||
<fieldset>
|
||||
<legend>Configuration du plugin</legend>
|
||||
<legend>Informations de l'association</legend>
|
||||
<dl>
|
||||
<dt><label for="f_siret">RNA de l'assocation</label></dt>
|
||||
<dd><input type="text" name="rna_asso" id="f_rna" value="{$rna_asso}"></dd>
|
||||
<dd><input type="text" id="f_rna" name="rna_asso" value="{form_field data=$plugin.config name=rna_asso}"></dd>
|
||||
|
||||
<dt><label for="f_siret">SIRET de l'assocation</label></dt>
|
||||
<dd><input type="text" name="siret_asso" id="f_siret" value="{$siret_asso}"></dd>
|
||||
<dd><input type="text" id="f_siret" name="siret_asso" value="{form_field data=$plugin.config name=siret_asso}"></dd>
|
||||
</dl>
|
||||
<br>
|
||||
<fieldset>
|
||||
<legend>Adresse</legend>
|
||||
<dl>
|
||||
|
||||
<dt><label for="f_numero_rue">Numéro de rue</label> <b title="(Champ obligatoire)">obligatoire</b></dt>
|
||||
<dd><input type="text" id="f_numero_rue" maxlength=5 name="numero_rue" value="{form_field data=$plugin.config name=numero_rue_asso}" /></dd>
|
||||
|
||||
<dt><label for="f_rue">Rue</label> <b title="(Champ obligatoire)">obligatoire</b></dt>
|
||||
<dd><input type="text" id="f_rue" name="rue" value="{form_field data=$plugin.config name=rue_asso}" /></dd>
|
||||
|
||||
<dt><label for="f_codepostal">Code postal</label> <b title="(Champ obligatoire)">obligatoire</b></dt>
|
||||
<dd><input type="text" id="f_codepostal" name="codepostal" value="{form_field data=$plugin.config name=cp_asso}" /></dd>
|
||||
|
||||
<dt><label for="f_ville">Ville</label> <b title="(Champ obligatoire)">obligatoire</b></dt>
|
||||
<dd><input type="text" id="f_ville" name="ville" value="{form_field data=$plugin.config name=ville_asso}" /></dd>
|
||||
|
||||
</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>
|
||||
<dd><input type="text" maxlength=100 name="objet_0" value="{form_field data=$plugin.config name=objet_0}" /></dd>
|
||||
<dd><input type="text" maxlength=100 name="objet_1" value="{form_field data=$plugin.config name=objet_1}" /></dd>
|
||||
<dd><input type="text" maxlength=100 name="objet_2" value="{form_field data=$plugin.config name=objet_2}" /></dd>
|
||||
</dl>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend>Droit à la réduction d'impôt</legend>
|
||||
<dl>
|
||||
<dt><label>Articles conernés par l'association :</label> <b title="(Champ obligatoire)">obligatoire pour reçus fiscaux</b></dt>
|
||||
<dt><input type="checkbox" name="droit_art200" {form_field name="droit_art200" checked=1 data=$plugin.config } /><label>Article 200</label></dt>
|
||||
<dt><input type="checkbox" name="droit_art238bis" {form_field name="droit_art238bis" checked=1 data=$plugin.config } /><label>Article 238 bis</label></dt>
|
||||
<dt><input type="checkbox" name="droit_art885-0VbisA" {form_field name="droit_art885-0VbisA" checked=1 data=$plugin.config } /><label>Article 885-0V bis A</label></dt>
|
||||
</dl>
|
||||
</fieldset>
|
||||
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend>Factures</legend>
|
||||
<dl>
|
||||
<dt><label for="f_footer">Pied de documents/informations légales</label></dt>
|
||||
<dd><textarea name="footer" id="f_footer" cols="50" rows="5">{$footer}</textarea></dd>
|
||||
<dd><textarea name="footer" id="f_footer" cols="50" rows="5">{form_field data=$plugin.config name=footer}</textarea></dd>
|
||||
|
||||
<dt><input type="checkbox" name="validate_cp" id="f_validate_cp" {$validate_cp}> <label for="f_validate_cp">Vérifier le code postal lors de saisie/modification de client (seulement FR)</label></dt>
|
||||
<dt><input type="checkbox" name="unique_name" id="f_unique_name" {$unique_name}> <label for="f_unique_name">Noms des clients uniques</label></dt>
|
||||
</dl>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend>Configuration du plugin</legend>
|
||||
<dl>
|
||||
<dt><input type="checkbox" name="validate_cp" id="f_validate_cp" {form_field data=$plugin.config name=validate_cp checked=1}> <label for="f_validate_cp">Vérifier le code postal lors de saisie/modification de client (seulement FR)</label></dt>
|
||||
<dt><input type="checkbox" name="unique_name" id="f_unique_name" {form_field data=$plugin.config name=unique_client_name checked=1}> <label for="f_unique_name">Noms des clients uniques</label></dt>
|
||||
|
||||
</dl>
|
||||
<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/facture_pdf.php du plugin ! </i>
|
||||
|
|
@ -34,4 +85,27 @@
|
|||
</p>
|
||||
</form>
|
||||
|
||||
|
||||
<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>
|
||||
{* <img src="{$image}" /> *}
|
||||
|
||||
<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"}
|
||||
<input type="submit" name="upload" id="f_submit" value="Envoyer le fichier" />
|
||||
</p>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
|
||||
{include file="admin/_foot.tpl"}
|
||||
55
templates/recu.tpl
Normal file
55
templates/recu.tpl
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
{include file="admin/_head.tpl" title="Extension — %s"|args:$plugin.nom current="plugin_%s"|args:$plugin.id}
|
||||
{include file="%s/templates/_menu.tpl"|args:$plugin_root current="recu"}
|
||||
|
||||
{if $error}
|
||||
{if $error == 'OK'}
|
||||
<p class="confirm">
|
||||
La configuration a bien été enregistrée.
|
||||
</p>
|
||||
{else}
|
||||
<p class="error">
|
||||
{$error|escape}
|
||||
</p>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
|
||||
{if !empty($trecus)}
|
||||
<p>Retrouvez l'ensemble des reçus fiscaux générés:</p>
|
||||
<table class="list">
|
||||
<thead>
|
||||
<tr>
|
||||
<td title="Numéro unique"></td>
|
||||
<td>Nom</td>
|
||||
<td>Prénom</td>
|
||||
<td>Ville</td>
|
||||
<td>Montant</td>
|
||||
<td>Date</td>
|
||||
<td>Télécharger</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$trecus item="gendon"}
|
||||
<tr>
|
||||
<td>{$gendon.id|escape}</td>
|
||||
<td>{$gendon.nom|escape}</td>
|
||||
<td>{$gendon.prenom|escape}</td>
|
||||
<td>{$gendon.ville|escape}</td>
|
||||
<td>{$gendon.montant|escape}</td>
|
||||
<td>{$gendon.date|escape}</td>
|
||||
<td><a href="{plugin_url file="generation.php"}?id={$gendon.id}">{$gendon.gen_ordre|escape}.pdf</a></td>
|
||||
<td class="action">
|
||||
<a class="icn" href="{plugin_url file="supprimer.php"}?id={$gendon.id|escape}" title="Supprimer">✘</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
{else}
|
||||
<p class="alert">
|
||||
Aucun reçu fiscal trouvé.
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
{include file="admin/_foot.tpl"}
|
||||
26
templates/supprimer.tpl
Normal file
26
templates/supprimer.tpl
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{include file="admin/_head.tpl" title="Extension — %s"|args:$plugin.nom current="plugin_%s"|args:$plugin.id}
|
||||
{include file="%s/templates/_menu.tpl"|args:$plugin_root current="recu"}
|
||||
|
||||
{if $error}
|
||||
<p class="error">
|
||||
{$error|escape}
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
<form method="post" action="{$self_url|escape}">
|
||||
|
||||
<fieldset>
|
||||
<legend>Supprimer ce reçu fiscal ?</legend>
|
||||
<h3 class="warning">
|
||||
Êtes-vous sûr de vouloir supprimer le reçu fiscal n°{$recu.gen_ordre|escape} concernant un don de {$recu.montant} € effectué par {$recu.prenom} {$recu.nom} le {$recu.date} ?
|
||||
</h3>
|
||||
</fieldset>
|
||||
|
||||
<p class="submit">
|
||||
{csrf_field key="recu_supprimer_`$recu.id`"}
|
||||
<input type="submit" name="remove" value="Supprimer →" />
|
||||
</p>
|
||||
|
||||
</form>
|
||||
|
||||
{include file="admin/_foot.tpl"}
|
||||
Loading…
Add table
Add a link
Reference in a new issue