init
[garradin.git] / templates / admin / membres / cotisations / gestion / rappel_modifier.tpl
1 {include file="admin/_head.tpl" title="Modifier un rappel automatique" current="membres/cotisations" js=1}
2
3 <ul class="actions">
4 <li><a href="{$admin_url}membres/cotisations/">Cotisations</a></li>
5 <li><a href="{$admin_url}membres/cotisations/ajout.php">Saisie d'une cotisation</a></li>
6 <li class="current"><a href="{$admin_url}membres/cotisations/gestion/rappels.php">Gestion des rappels automatiques</a></li>
7 </ul>
8
9 {if $error}
10 <p class="error">
11 {$error|escape}
12 </p>
13 {/if}
14
15 <form method="post" action="{$self_url|escape}" id="f_add">
16
17 <fieldset>
18 <legend>Modifier un rappel automatique</legend>
19 <dl>
20 <dt><label for="f_id_cotisation">Cotisation associée</label> <b title="(Champ obligatoire)">obligatoire</b></dt>
21 <dd>
22 <select name="id_cotisation" id="f_id_cotisation" required="required">
23 <option value="">--</option>
24 {foreach from=$cotisations item="co"}
25 <option value="{$co.id|escape}" {form_field name="id_cotisation" selected=$co.id data=$rappel}>
26 {$co.intitule|escape}
27 — {$co.montant|html_money} {$config.monnaie|escape}
28 — {if $co.duree}pour {$co.duree|escape} jours
29 {elseif $co.debut}
30 du {$co.debut|format_sqlite_date_to_french} au {$co.fin|format_sqlite_date_to_french}
31 {else}
32 ponctuelle
33 {/if}
34 </option>
35 {/foreach}
36 </select>
37 </dd>
38 <dt><label for="f_sujet">Sujet du mail</label> <b title="(Champ obligatoire)">obligatoire</b></dt>
39 <dd><input type="text" name="sujet" id="f_sujet" value="{form_field name=sujet data=$rappel}" required="required" size="50" /></dd>
40 <dt><label for="f_delai">Délai d'envoi</label> <b title="(Champ obligatoire)">obligatoire</b></dt>
41 <dd><label><input type="radio" name="delai_choix" value="0" {form_field name="delai_choix" checked=0 default=0 data=$rappel} /> Le jour de l'expiration de la cotisation</label></dd>
42 <dd>
43 <input type="radio" name="delai_choix" id="f_delai_pre" value="-1" {form_field name="delai_choix" checked=-1 data=$rappel} />
44 <input type="number" name="delai_pre" id="f_delai_pre_nb" step="1" min="1" max="900" size="4" id="f_delai" value="{form_field name=delai_pre data=$rappel default=30}" />
45 <label for="f_delai_pre">jours avant expiration</label>
46 </dd>
47 <dd>
48 <input type="radio" name="delai_choix" id="f_delai_post" value="1" {form_field name="delai_choix" checked=1 data=$rappel} />
49 <input type="number" name="delai_post" id="f_delai_post_nb" step="1" min="1" max="900" size="4" id="f_delai" value="{form_field name=delai_post default=30 data=$rappel}" />
50 <label for="f_delai_post">jours après expiration</label>
51 </dd>
52 <dt><label for="f_texte">Texte du mail</label> <b title="(Champ obligatoire)">obligatoire</b></dt>
53 <dd><textarea name="texte" id="f_texte" cols="70" rows="15" required="required">{form_field name=texte data=$rappel}</textarea></dd>
54 <dd class="help">Astuce : pour inclure dans le contenu du mail le nom du membre, utilisez #IDENTITE, pour inclure le délai de l'envoi utilisez #NB_JOURS.</dd>
55 </dl>
56 </fieldset>
57
58 <p class="submit">
59 {csrf_field key="edit_rappel_`$rappel.id`"}
60 <input type="submit" name="save" value="Enregistrer &rarr;" />
61 </p>
62
63 </form>
64
65 {include file="admin/_foot.tpl"}