Début ajout fonctionnalités demandées :
- paramétrer le numéro de reçu - imprimer à la demande l'adresse de courriel FossilOrigin-Name: 10c1ca642474c2b00b7d0197afc736f2c2aca3b453808ac1fda19e14b0acc092
This commit is contained in:
parent
b077f70fb3
commit
e219afb405
5 changed files with 127 additions and 32 deletions
|
|
@ -15,7 +15,7 @@
|
|||
<fieldset>
|
||||
<dl class="config">
|
||||
<dt><label>Objet (but) de l'association</label> <b title="Champ obligatoire">(obligatoire)</b></dt>
|
||||
{input type="textarea" name="objet_asso" source=$plugin.config label="" required="required" cols="50" rows="4" maxlength=300}
|
||||
{input type="textarea" name="objet_asso" source=$plugin.config label="" required="required" cols="100" rows="3" maxlength=300}
|
||||
</dl>
|
||||
|
||||
<dl class="config">
|
||||
|
|
@ -23,17 +23,19 @@
|
|||
<b title="Champ obligatoire">(obligatoire ; sélectionnez tous les articles qui s'appliquent à
|
||||
l'association)</b>
|
||||
</dt>
|
||||
{foreach from=$plugin_config->articlesCGI key="key" item="article"}
|
||||
{*
|
||||
<div id="articles_cgi">
|
||||
{foreach from=$plugin_config->articlesCGI key="key" item="article"}
|
||||
{*
|
||||
À VÉRIFIER : {input : checked ne fonctionne pas si l'attribut name est un tableau...
|
||||
{input type="checkbox" name="articlesCGI[]" value=$key label=$article.titre}
|
||||
*}
|
||||
<div>
|
||||
<input type="checkbox" name="articlesCGI[]" id="article_{$key}" value="{$key}" class="choix"
|
||||
{if $article.valeur == 1}checked{/if} />
|
||||
<label for="article_{$key}">Article {$article.titre}</label>
|
||||
</div>
|
||||
{/foreach}
|
||||
<div class="article">
|
||||
<input type="checkbox" name="articlesCGI[]" id="article_{$key}" value="{$key}" class="choix"
|
||||
{if $article.valeur == 1}checked{/if} />
|
||||
<label for="article_{$key}">Article {$article.titre}</label>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</dl>
|
||||
|
||||
<dl class="config">
|
||||
|
|
@ -54,16 +56,37 @@
|
|||
|
||||
<fieldset>
|
||||
<legend>Nom, fonction et signature du responsable</legend>
|
||||
<dl class="config">
|
||||
<dt><label>Nom</label></dt>
|
||||
{input type="text" name="nom_responsable" source=$plugin.config label="" maxlength=50}
|
||||
</dl>
|
||||
<div id="config_nom_fonction">
|
||||
|
||||
<dl class="config">
|
||||
<dt><label>Fonction</label></dt>
|
||||
{input type="text" name="fonction_responsable" source=$plugin.config label="" maxlength=50}
|
||||
</dl>
|
||||
{* Nom du responsable *}
|
||||
<dl class="config">
|
||||
{*
|
||||
<dt><label>Nom</label></dt>
|
||||
<p>du responsable</p>
|
||||
*}
|
||||
{input type="text" name="nom_responsable" source=$plugin.config label="Nom" help="du responsable" required=true maxlength=50}
|
||||
</dl>
|
||||
|
||||
{* Fonction du responsable *}
|
||||
<dl class="config">
|
||||
{*
|
||||
<dt><label>Fonction</label></dt>
|
||||
<p>du responsable</p>
|
||||
*}
|
||||
{input type="text" name="fonction_responsable" source=$plugin.config label="Fonction" help="du responsable" maxlength=50}
|
||||
</dl>
|
||||
|
||||
{* Ville avant signature *}
|
||||
<dl class="config">
|
||||
{*
|
||||
<dt><label>Ville</label></dt>
|
||||
<p>Précède la date sur le formulaire</p>
|
||||
*}
|
||||
{input type="text" name="ville_asso" source=$plugin.config label="Ville" help="précède la date sur le formulaire" maxlength=50}
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
{* Signature *}
|
||||
<dl class="config">
|
||||
<dt><label>Signature</label></dt>
|
||||
<p>L'image de la signature doit être d'une taille « raisonnable » et avoir un fond transparent</p>
|
||||
|
|
@ -78,11 +101,37 @@
|
|||
|
||||
<fieldset>
|
||||
<legend>Autres informations</legend>
|
||||
<dl class="config">
|
||||
<dt><label>Ville</label></dt>
|
||||
<p>Précède la date sur le formulaire</p>
|
||||
{input type="text" name="ville_asso" source=$plugin.config label="" maxlength=50}
|
||||
</dl>
|
||||
|
||||
{* Numérotation des reçus *}
|
||||
<div id="numerotation">
|
||||
<dl class="config">
|
||||
{*
|
||||
<dt><label>Numérotation des reçus</label></dt>
|
||||
<p>%a : année ; %m : numéro membre ; %n : numéro séquentiel ; Exemple : HA-%a-%n donne HA-2022-51</p>
|
||||
*}
|
||||
{input type="text" name="numerotation" default=$chaine_numerotation label="Numérotation des reçus" maxlength=50}
|
||||
</dl>
|
||||
|
||||
<details>
|
||||
<summary class="help block">
|
||||
Saisir ici un texte qui décrit le format de la numérotation des reçus.
|
||||
</summary>
|
||||
<div class="help block">
|
||||
Symboles spéciaux :
|
||||
<ul>
|
||||
<li>%a : année du reçu</li>
|
||||
<li>%m : numéro de membre</li>
|
||||
<li>%n : numéro d'ordre séquentiel (1, 2, ...)</li>
|
||||
</ul>
|
||||
Exemple : HAL-%a-%m donnera « Reçu numéro HAL-2022-51 » pour le membre de numéro 51
|
||||
</div>
|
||||
</details>
|
||||
</div>
|
||||
|
||||
{* Adresse de courriel *}
|
||||
<div id="courriel">
|
||||
{input type="checkbox" name="afficher_courriel" value=$afficher_courriel label="Imprimer adresse courriel" help="Cocher pour imprimer l'adresse de courriel des membres"}
|
||||
</div>
|
||||
|
||||
{* les champs de nom *}
|
||||
<?php $nbChamps = count($champsNom); ?>
|
||||
|
|
@ -95,8 +144,9 @@
|
|||
<div class="champnom">
|
||||
<div class="actions"></div>
|
||||
<div class="infos">
|
||||
<input type="checkbox" name="champsNom[]" id="champ_{$nom}" value={$nom} class="choix" {if $nbChamps == 1 || $champ.position != 0}checked{/if} />
|
||||
<label for="champ_{$nom}">{$champ.titre}</label>
|
||||
<input type="checkbox" name="champsNom[]" id="champ_{$nom}" value={$nom} class="choix"
|
||||
{if $nbChamps == 1 || $champ.position != 0}checked{/if} />
|
||||
<label for="champ_{$nom}">{$champ.titre}</label>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue