Translates peremption to expiration.
[platal.git] / templates / carnet / notifs.tpl
... / ...
CommitLineData
1{**************************************************************************}
2{* *}
3{* Copyright (C) 2003-2010 Polytechnique.org *}
4{* http://opensource.polytechnique.org/ *}
5{* *}
6{* This program is free software; you can redistribute it and/or modify *}
7{* it under the terms of the GNU General Public License as published by *}
8{* the Free Software Foundation; either version 2 of the License, or *}
9{* (at your option) any later version. *}
10{* *}
11{* This program is distributed in the hope that it will be useful, *}
12{* but WITHOUT ANY WARRANTY; without even the implied warranty of *}
13{* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *}
14{* GNU General Public License for more details. *}
15{* *}
16{* You should have received a copy of the GNU General Public License *}
17{* along with this program; if not, write to the Free Software *}
18{* Foundation, Inc., *}
19{* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *}
20{* *}
21{**************************************************************************}
22
23
24<h1>Notifications automatiques</h1>
25
26<p>Les emails sont hebdomadaires (pour éviter une trop grosse charge du serveur d'envoi et de ta boite email).
27S'il n'y a rien à te signaler l'email ne t'est pas envoyé.</p>
28
29<form action="carnet/notifs" method="post">
30 {xsrf_token_field}
31 <fieldset>
32 <legend>Email</legend>
33 <label>
34 <input type='checkbox' name='mail' onclick="this.form.submit();" {if $flags->hasFlag('mail')}checked="checked"{/if} />
35 Recevoir un email hebdomadaire des événements que je n'ai pas déjà vus sur le site.
36 </label><br />
37 <input type='hidden' name='flags_mail' value='valider' />
38 </fieldset>
39</form>
40
41<form action="carnet/notifs" method="post">
42 {xsrf_token_field}
43 <fieldset>
44 <legend>Événements à surveiller</legend>
45 <label>
46 <input type="checkbox" name='sub[profile]' {if $actions->hasFlag('profile')}checked="checked"{/if} />
47 Mise à jour de fiche<sup>*</sup>
48 </label><br />
49 <label>
50 <input type="checkbox" name='sub[registration]' {if $actions->hasFlag('registration')}checked="checked"{/if} />
51 Nouveaux inscrits
52 </label><br />
53 <label>
54 <input type="checkbox" name='sub[death]' {if $actions->hasFlag('death')}checked="checked"{/if} />
55 Décès
56 </label><br />
57 <label>
58 <input type="checkbox" name='sub[birthday]' {if $actions->hasFlag('birthday')}checked="checked"{/if} />
59 Anniversaires<sup>o</sup>
60 </label><br />
61 <span class='smaller'><sup>*</sup>: ne concerne pas les promos (événements très fréquents).</span><br />
62 <span class='smaller'><sup>o</sup>: ne concerne que les promos entre {$smarty.session.promo-1} et {$promo_sortie-2} que tu surveilles.</span>
63 </fieldset>
64 <div class='center'>
65 <input type='submit' name='subs' value='valider' />
66 </div>
67</form>
68
69<h1 id='middle'>Qui/Que surveiller&nbsp;?</h1>
70
71<h2>Surveiller ses contacts</h2>
72
73<form action="carnet/notifs#middle" method="post">
74 {xsrf_token_field}
75 <fieldset>
76 <legend>Contacts</legend>
77 <label>
78 <input type='checkbox' name='contacts' onclick="this.form.submit();" {if $flags->hasFlag('contacts')}checked="checked"{/if} />
79 Surveiller mes contacts
80 </label><br />
81 <input type='hidden' name='flags_contacts' value='valider' />
82 </fieldset>
83</form>
84
85<br />
86
87<h2>Surveiller des promos</h2>
88
89<p>
90Attention&nbsp;: pour les promos, tu n'es pas notifié des événements trop fréquents (par exemple les changements de fiche).
91</p>
92
93<form action="carnet/notifs/" method="post">
94 {xsrf_token_field}
95 <fieldset>
96 <legend>Ajouter une promo</legend>
97 Tu peux surveiller des promos (mettre la promo sur 4 chiffres),
98 ou des plages de promos (par ex. 1990-1992)&nbsp;:<br />
99 <input type='text' name='promo' />
100 <input type='submit' name='add_promo' value='ajouter'
101 onclick="this.form.action += 'add_promo/' + this.form.promo.value;" />
102 <input type='submit' name='del_promo' value='retirer'
103 onclick="this.form.action += 'del_promo/' + this.form.promo.value;" />
104 <br />
105 {if $promo_count eq 0}
106 <p>Tu ne surveilles actuellement aucune promo.</p>
107 {else}
108 <p>Tu surveilles {if $promo_count eq 1}la promotion suivante&nbsp;:{else}les promotions suivantes&nbsp;:{/if}</p>
109 <ul>
110 {foreach from=$promo_ranges item=promos}
111 <li>{$promos[0]}{if $promos[0] neq $promos[1]} à {$promos[1]}{/if}</li>
112 {/foreach}
113 </ul>
114 {/if}
115 </fieldset>
116</form>
117
118<h2>Surveiller des non inscrits</h2>
119
120<p>
121Si un non-inscrit que tu surveilles s'inscrit, il sera automatiquement ajouté à tes contacts.
122</p>
123
124<p>
125Pour surveiller des membres non-inscrits, il faut passer par la <a href="search" class='popup'>recherche</a>
126et cliquer sur les icones {icon name=add} pour les ajouter à cette liste.
127</p>
128
129<fieldset>
130 <legend>Non-inscrits</legend>
131 {if $nonins|@count eq 0}
132 Tu ne surveilles actuellement aucun non-inscrit.
133 {else}
134 Tu surveilles {if $nonins|@count eq 1}le non-inscrit{else}les non-inscrits{/if}&nbsp;:
135 <ul>
136 {foreach from=$nonins item=p}
137 <li>
138 {profile user=$p promo=true sex=true}
139 <a href="carnet/notifs/del_nonins/{$p->login()}?token={xsrf_token}">{icon name='cross' title='retirer'}</a>
140 </li>
141 {/foreach}
142 </ul>
143 {/if}
144</fieldset>
145
146{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}