Happy New Year!
[platal.git] / templates / marketing / private.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2009 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 <h1>Marketing de {$full_name}</h1>
24
25 <h2>Matricules</h2>
26
27 Matricule polytechnique.org&nbsp;: {$matricule}
28 {if $matricule_X}
29 <br />
30 Matricule &Eacute;cole (à rentrer lors de l'inscription)&nbsp;: <strong>{$matricule_X}</strong>
31 {/if}
32
33 {if $pending}
34
35 <h2>Inscription en cours</h2>
36
37 <p>
38 Cet utilisateur a une inscription en cours depuis le {$pending|date_format}.
39 </p>
40 <p>
41 {if $relance eq '0000-00-00'}
42 il n'a jamais été relancé.
43 {else}
44 sa dernière relance date du {$relance|date_format}
45 {/if}
46 </p>
47
48 <p>[<a href='{$path}/insrel?token={xsrf_token}'>le relancer</a>]</p>
49
50 {/if}
51
52 <h2>Adresses connues</h2>
53
54 <form action="{$path}/add" method="post">
55   <table class="bicol" cellpadding="0" cellspacing="0">
56     <tr>
57       <th>Adresse</th>
58       <th>Marketeur</th>
59       <th>Date</th>
60       <th>Envois</th>
61       <th>Nb.</th>
62       <th>&nbsp;</th>
63     </tr>
64     {iterate from=$addr item=a}
65     <tr class="{cycle values='impair,pair'}">
66       <td>{$a.email}</td>
67       <td>{if $a.alias}<a href="profile/{$a.alias}" class="popup2">{$a.alias}</a> {if $a.type eq user}(*){/if}{/if}</td>
68       <td>{$a.date|date_format|default:'-'}</td>
69       <td>{$a.last|date_format|default:'-'}</td>
70       <td class='center'>{$a.nb|default:"-"}</td>
71       <td class='action'>
72         <a href='{$path}/del/{$a.email}?token={xsrf_token}'>del</a><br />
73         <a href='{$path}/rel/{$a.email}'>relance</a>
74       </td>
75     </tr>
76     {/iterate}
77     <tr>
78       <td></td>
79       <td colspan='5' class='smaller'>(*)&nbsp;: email perso</td>
80     </tr>
81     <tr>
82       <td>
83         <input type='text' name='email' />
84       </td>
85       <td colspan="4">
86         <select name="type">
87           <option value="staff">staff</option>
88           <option value="user">user</option>
89         </select>
90       </td>
91       <td class='action'>
92         <input type='submit' value='ajouter' />
93       </td>
94     </tr>
95   </table>
96 </form>
97
98 {if $rel_to}
99 <form action="{$path}/relforce/{$email}" method="post">
100   {xsrf_token_field}
101   <table class="bicol">
102     <tr class="pair">
103       <th colspan="2">Edition de l'email de relance</th>
104     </tr>
105     <tr class="pair">
106       <td align="right"><strong>From&nbsp;:</strong></td>
107       <td>
108         {if $rel_from_staff neq $rel_from_user}
109         <select name="from">
110           <option value="staff">{$rel_from_staff}</option>
111           <option value="user" selected="selected">{$rel_from_user}</option>
112         </select>
113         {else}
114         {$rel_from_staff}<input type="hidden" name="from" value="staff" />
115         {/if}
116       </td>
117     </tr>
118     <tr class="pair">
119       <td align="right"><strong>To&nbsp;:</strong></td>
120       <td>
121         <input type="text" value="{$rel_to}" name="to" size="40" maxlength="100" />
122         <input type="submit" name="valider" value="Envoyer" />
123       </td>
124     </tr>
125     <tr class="pair">
126       <td align="right"><strong>Objet&nbsp;:</strong></td>
127       <td><input type="text" name="title" value="{$rel_title}" size="50" maxlength="100" /></td>
128     </tr>
129     <tr class="pair">
130       <td align="right"><strong>Message&nbsp;:</strong></td>
131       <td>
132         <textarea name="message" rows="40" cols="60">{$rel_text}</textarea>
133       </td>
134     </tr>
135   </table>
136   <div class="center">
137     <input type="reset" value="Recommencer" />
138     <input type="submit" name="valider" value="Envoyer" />
139   </div>
140 </form>
141 {/if}
142
143 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}