Table editor fills the new entry form with the default values of the fields
[platal.git] / templates / login.tpl
CommitLineData
0337d704 1{**************************************************************************}
2{* *}
50a40a33 3{* Copyright (C) 2003-2006 Polytechnique.org *}
0337d704 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
0337d704 23{if $ask_naissance}
24
25{include file='include/form_naissance.tpl'}
26
27{else}
28
1f7c3690 29<h1 id='pagetop'>
0337d704 30Bienvenue {$smarty.session.prenom}
31{if $birthday}
32 et joyeux anniversaire de {$birthday} ans de la part de toute l'équipe !
33{else}
34:o)
35{/if}
36</h1>
37
38<div class="smaller">
39 Ta connexion précédente date du
4c92c8b2 40 <strong>{$lastlogin|date_format:"%x, %X"}</strong>
0337d704 41 depuis la machine <strong>{$smarty.session.host}</strong>
42</div>
43
44{if $fiche_incitation}
45 <p>La dernière mise à jour de ta
7b2413f6 46 <a href="profile/{$smarty.session.forlife}" class="popup2">fiche</a>
0337d704 47 date du {$fiche_incitation|date_format}.
48 Il est possible qu'elle ne soit pas à jour.
7b2413f6 49 Si tu souhaites la modifier, <a href="profile/edit">clique ici !</a>
0337d704 50 </p>
51{/if}
52
53{if $photo_incitation}
54 <p>
55 Tu n'as pas mis de photo de toi sur ta fiche, c'est dommage.
7b2413f6 56 Clique <a href="photo/change">ici</a> si tu souhaites en ajouter une.
0337d704 57 </p>
58{/if}
59
60{if $geoloc_incitation > 0}
61 <p>
2f678da1 62 Parmi tes adresses, il y en a {$geoloc_incitation} que nous n'avons pas pu localiser.
7b2413f6 63 Clique <a href="profile/edit/adresses">ici</a> pour rectifier.
0337d704 64 </p>
65{/if}
66<br />
67
68 <table class="bicol">
69 <tr class="pair">
70{foreach item=links from=$publicite}
71 <td class="half">
72{foreach key=url item=text from=$links}
73 <a href="{$url}">{$text}</a><br />
74{/foreach}
75 </td>
76{/foreach}
77 </tr>
78 </table>
79
f75b2292 80 <br/>
81
82 <table class="bicol">
83 <tr>
84 <th>
2200e510 85 {if $smarty.session.core_rss_hash}
86 <a href='rss/{$smarty.session.forlife}/{$smarty.session.core_rss_hash}/rss.xml' style="display:block;float:right">
87 {icon name=feed title='fil rss'}
88 </a>
89 {else}
90 <a href='prefs/rss?referer=events' style="display:block;float:right">
91 {icon name=feed_add title='Activer mon fil rss'}
92 </a>
93 {/if}
f75b2292 94 Sommaire des informations événementielles
95 </th>
96 </tr>
97 {iterate item=ev from=$evenement_summary}
98 <tr class="{cycle values="impair,pair"}">
99 <td class="half">
100 &bull;
096f0dca 101 <a href="events{if !$ev.nonlu}/unread/{$ev.id}{else}#newsid{$ev.id}{/if}">
f75b2292 102 {if $ev.nonlu}<strong>{/if}
103 {tidy}
104 {$ev.titre|nl2br}
105 {/tidy}
106 {if $ev.nonlu}</strong>{/if}
107 </a>
108 </td>
109 </tr>
679c68da 110 {assign var="has_evts" value=true}
f75b2292 111 {/iterate}
679c68da 112 {if !$has_evts}
113 <tr>
114 <td class="half">Aucun article actuellement</td>
115 </tr>
116 {/if}
f75b2292 117 </table>
118
8e95ff41 119 {iterate item=ev from=$evenement}
120 <br />
121
122 <table class="bicol">
123 <tr>
124 <th>
125 <div style="float:right">
126 {if $smarty.session.perms eq 'admin'}
127 <a href="admin/events/edit/{$ev.id}">{icon name=page_edit title="Editer cet article"}</a>
128 {/if}
129 <a href="events/read/{$ev.id}{if $previd}/newsid{$previd}{/if}">{icon name=cross title="Cacher cet article"}</a>
130 </div>
131 {assign var="previd" value=$ev.id}
132 <a id="newsid{$ev.id}"></a>
133 {tidy}
134 {$ev.titre|nl2br}
135 {/tidy}
136 </th>
137 </tr>
138 <tr class="{cycle values="impair,pair"}">
139 <td class="half">
140 {tidy}
141 {$ev.texte|smarty:nodefaults|nl2br}
142 {/tidy}
143 <br />
144 <p class="smaller"><a href="events#pagetop" style="display:block;float:right"><img alt="Sommaire" title="Remonter tout en haut" src="images/up.png"/></a>Annonce proposée par
145 <a href="profile/{$ev.forlife}" class="popup2">
146 {$ev.prenom} {$ev.nom} X{$ev.promo}
147 </a>
148 </p>
149 </td>
150 </tr>
151 </table>
152 {/iterate}
153
0337d704 154 <p class="smaller">
155 Nota Bene : les informations présentées ici n'engagent que leurs auteurs
156 respectifs et sont publiées à leur initiative. L'association Polytechnique.org
157 ne pourrait en aucun cas être tenue responsable de la nature des propos relatés
158 sur cet espace d'expression et d'information. Elle se réserve le droit de
159 refuser ou de retirer toute information de nature diffamante ou pouvant être
160 interprétée comme polémique par un membre de la communauté polytechnicienne.
161 </p>
162
163 <p>
7b2413f6 164 <a href="events/submit">Proposer une information événementielle</a>
0337d704 165 </p>
0337d704 166{/if}
167
168{* vim:set et sw=2 sts=2 sws=2: *}