| 1 | {**************************************************************************} |
| 2 | {* *} |
| 3 | {* Copyright (C) 2003-2006 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 mails sont hebdomadaires (pour éviter une trop grosse charge du serveur de mails et de ta boite mail). |
| 27 | S'il n'y a rien à te signaler le mail ne t'est pas envoyé.</p> |
| 28 | |
| 29 | <form action="carnet/notifs" method="post"> |
| 30 | <fieldset> |
| 31 | <legend>Mail</legend> |
| 32 | <input type='checkbox' name='mail' onclick="this.form.submit();" {if $watch->watch_mail}checked="checked"{/if} /> |
| 33 | Recevoir un mail hebdomadaire des événements que je n'ai pas déjà vus sur le site<br /> |
| 34 | <input type='hidden' name='flags_mail' value='valider' /> |
| 35 | </fieldset> |
| 36 | </form> |
| 37 | |
| 38 | <form action="carnet/notifs" method="post"> |
| 39 | <fieldset> |
| 40 | <legend>Événements à surveiller</legend> |
| 41 | {foreach from=$watch->cats() item=s key=i} |
| 42 | <input type='checkbox' name='sub[{$i}]' {if $watch->subs($i)}checked="checked"{/if} /> |
| 43 | {$s.short} {if $s.type eq near}<sup>o</sup>{elseif $s.type eq often}<sup>*</sup>{/if}<br /> |
| 44 | {/foreach} |
| 45 | <span class='smaller'><sup>*</sup>: ne concerne pas les promos (événements très fréquents)</span><br /> |
| 46 | <span class='smaller'><sup>o</sup>: ne concerne que les promos entre {$smarty.session.promo-1} et {$promo_sortie-2} que tu surveilles</span> |
| 47 | </fieldset> |
| 48 | <div class='center'> |
| 49 | <input type='submit' name='subs' value='valider' /> |
| 50 | </div> |
| 51 | </form> |
| 52 | |
| 53 | <h1 id='middle'>Qui/Que surveiller ?</h1> |
| 54 | |
| 55 | <h2>Surveiller ses contacts</h2> |
| 56 | |
| 57 | <form action="carnet/notifs#middle" method="post"> |
| 58 | <fieldset> |
| 59 | <legend>Contacts</legend> |
| 60 | <input type='checkbox' name='contacts' onclick="this.form.submit();" {if $watch->watch_contacts}checked="checked"{/if} /> Surveiller mes contacts<br /> |
| 61 | <input type='hidden' name='flags_contacts' value='valider' /> |
| 62 | </fieldset> |
| 63 | </form> |
| 64 | |
| 65 | <br /> |
| 66 | |
| 67 | <h2>Surveiller des promos</h2> |
| 68 | |
| 69 | <p> |
| 70 | Attention : pour les promos, tu n'es pas notifié des événements trop fréquents (par exemple les changements de fiche). |
| 71 | </p> |
| 72 | |
| 73 | <form action="carnet/notifs/" method="post"> |
| 74 | <fieldset> |
| 75 | <legend>Ajouter une promo</legend> |
| 76 | Tu peux surveiller des promos (mettre la promo sur 4 chiffres), |
| 77 | ou des plages de promos (par ex. 1990-1992) : <br /> |
| 78 | <input type='text' name='promo' /> |
| 79 | <input type='submit' name='add_promo' value='ajouter' |
| 80 | onclick="this.form.action += 'add_promo/' + this.form.promo.value;" /> |
| 81 | <input type='submit' name='del_promo' value='retirer' |
| 82 | onclick="this.form.action += 'del_promo/' + this.form.promo.value;" /> |
| 83 | <br /> |
| 84 | {if $watch->promos()|@count eq 0} |
| 85 | <p>Tu ne surveilles actuellement aucune promo.</p> |
| 86 | {else} |
| 87 | <p>Tu surveilles les promos suivantes :</p> |
| 88 | <ul> |
| 89 | {foreach from=$watch->promos() item=p} |
| 90 | <li>{if $p.0 eq $p.1}{$p.0}{else}{$p.0} à {$p.1}{/if}</li> |
| 91 | {/foreach} |
| 92 | </ul> |
| 93 | {/if} |
| 94 | </fieldset> |
| 95 | </form> |
| 96 | |
| 97 | <h2>Surveiller des non inscrits</h2> |
| 98 | |
| 99 | <p> |
| 100 | Si un non-inscrit que tu surveilles s'inscrit, il sera automatiquement ajouté à tes contacts. |
| 101 | </p> |
| 102 | |
| 103 | <p> |
| 104 | Pour surveiller des membres non-inscrits, il faut passer par la <a href="search" class='popup'>recherche</a> |
| 105 | et cliquer sur les icones {icon name=add} pour les ajouter à cette liste |
| 106 | </p> |
| 107 | |
| 108 | <table class='tinybicol' cellpadding="0" cellspacing="0"> |
| 109 | <tr> |
| 110 | <td> |
| 111 | {if $watch->nonins()|@count eq 0} |
| 112 | <p>Tu ne surveilles actuellement aucun non-inscrit.</p> |
| 113 | {elseif $watch->nonins()|@count} |
| 114 | <p>Tu surveilles {if $watch->nonins()|@count eq 1}le non-inscrit{else}les non-inscrits{/if} :</p> |
| 115 | <ul> |
| 116 | {foreach from=$watch->nonins() item=p} |
| 117 | <li> |
| 118 | {$p.prenom} {$p.nom} ({$p.promo}) <a href="carnet/notifs/del_nonins/{$p.user_id}">{icon name='cross' title='retirer'}</a> |
| 119 | </li> |
| 120 | {/foreach} |
| 121 | </ul> |
| 122 | {/if} |
| 123 | </td> |
| 124 | </tr> |
| 125 | </table> |
| 126 | |
| 127 | {* vim:set et sw=2 sts=2 sws=2: *} |