perso.html 26.3 KB
Newer Older
Marne's avatar
Marne committed
1
<section id="wrapper">
Okhin's avatar
Okhin committed
2 3 4 5 6 7 8 9 10 11
    <div id="subtitle" class="row">
        <div class="page-header">
            <h1 class="text-left">{{ _("Merci de soutenir La Quadrature du Net &lt;3&nbsp;!")}}</h1>
        </div>
        <div id="perso" class="row fluid">
            <div class="col-md-4"><!-- Form infos du compte -->
                <div class="panel panel-default">
                    <input id="compte" type="checkbox">
                    <label for="compte" class="panel-heading" role="tab" id="headingInfos">
                        <div class="panel-title col-xs text-left">
Okhin's avatar
Okhin committed
12
                            {{ _("Compte")}}
Okhin's avatar
Okhin committed
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
                            <div class="panel-title col-xs-2 text-right">
                            </div>
                        </div>
                    </label>
                    <div id="collapseInfos" class="panel-collapse collapse" aria-labelledby="headingInfos">
                        <div class="panel-body text-left">
                            <form method="POST" action="{{ 'infos' | alias }}">
                                <input type="hidden" name="csrf" value="{{ @CSRF }}" />
                                <div class="form-group">
                                    <label for="pseudo">{{ _("Pseudo") }}</label>
                                    <input type="text" class="form-control" id="pseudo" name="pseudo" value="{{ @infos.pseudo }}">
                                </div>
                                <div class="form-group">
                                    <label for="email">{{ _("Adresse mail")}}</label>
                                    <input type="email" class="form-control" name="email" id="email" value="{{ @infos.email }}">
                                </div>
                                <div class="form-group">
                                    <label for="password">{{ _("Mot de passe")}}</label>
                                    <input type="password" class="form-control" name="password" id="password">
                                </div>
                                <div class="form-group">
                                    <label for="password_confirmation">{{ _("Confirmation de mot de passe")}}</label>
                                    <input type="password" class="form-control" name="password_confirmation" id="password_confirmation">
                                </div>
                                <input type="submit" class="btn btn-lg btn-primary c-boutonslongs" value="{{ _("Mettre à jour") }}">
                            </form>
39
                        </div>
Okhin's avatar
Okhin committed
40
                    </div>
Okhin's avatar
Okhin committed
41
                </div>
Okhin's avatar
Okhin committed
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
                <div id="collapseInfos" class="panel-collapse collapse" aria-labelledby="headingInfos">
                    <div class="panel-body text-left">
                        <form method="POST" action="{{ 'infos' | alias }}">
                            <input type="hidden" name="csrf" value="{{ @CSRF }}" />
                            <div class="form-group">
                                <label for="pseudo">{{ _("Pseudo") }}</label>
                                <input type="text" class="form-control" id="pseudo" name="pseudo" value="{{ @infos.pseudo }}">
                            </div>
                            <div class="form-group">
                                <label for="email">{{ _("Adresse mail")}}</label>
                                <input type="email" class="form-control" name="email" id="email" value="{{ @infos.email }}">
                            </div>
                            <div class="form-group">
                                <label for="password">{{ _("Mot de passe")}}</label>
                                <input type="password" class="form-control" name="password" id="password">
57
                            </div>
Okhin's avatar
Okhin committed
58 59 60
                            <div class="form-group">
                                <label for="password_confirmation">{{ _("Confirmation de mot de passe")}}</label>
                                <input type="password" class="form-control" name="password_confirmation" id="password_confirmation">
61
                            </div>
Okhin's avatar
Okhin committed
62 63 64 65
                            <input type="submit" class="btn btn-lg btn-primary c-boutonslongs" value="{{ _("Mettre à jour") }}">
                        </form>
                    </div>
                </div>
Okhin's avatar
Okhin committed
66 67 68 69 70 71 72 73 74
            </div><!-- /Form infos du compte -->
            <div class="col-md-4"><!-- Form addresses -->
                <div class="panel panel-default">
                    <input id="adresses" type="checkbox">
                    <label for="adresses" class="panel-heading" role="tab" id="headingInfos">
                        <div class="panel-title col-xs text-left">
                            {{ _("Adresses")}}
                            <div class="panel-title col-xs-2 text-right">
                            </div>
Okhin's avatar
90  
Okhin committed
75
                        </div>
Okhin's avatar
Okhin committed
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
                    </label>
                    <div id="collapseAdresses" class="panel-collapse collapse" href="#collapseAdresses" aria-expanded="false" aria-controls="collapseAdresses">
                        <div class="panel-body text-left">
                            <check if="{{ count(@adresses) > 0 }}">
                            <h3>{{ _("Modifier une adresse")}}</h3>
                            <form>
                                <div class="form-group">
                                    <label for="">{{ _("Modifier une adresse")}}</label>
                                    <select class="form-control">
                                        <repeat group="{{ @adresses }}" value="{{ @adresse }}">
                                        <option value="{{ @adresse.id }}">{{ @adresse.alias }}</option>
                                        </repeat>
                                    </select>
                                </div>
                            </form>
                            <h3>{{ _("Ajouter une nouvelle adresse.")}}</h3>
                            <form method="POST" action="{{ 'adresses' | alias }}" id="create-adress-form">
                                <input type="hidden" name="csrf" value="{{ @CSRF }}" />
                                <input type="hidden" name="action" value="ADD" />
                                <input type="hidden" name="id" value="" />
                                <div class="form-group">
                                    <label for="alias">{{ _("Nom de l'adresse")}}</label>
                                    <input type="text" class="form-control" name="alias" value="">
                                </div>
                                <div class="form-group">
                                    <label for="nom">{{ _("Destinataire") }}</label>
                                    <input type="text" class="form-control" name="nom" value="">
                                </div>
                                <div class="form-group">
                                    <label for="adresse">{{ _("Adresse")}}</label>
                                    <input type="text" class="form-control" name="adresse" value="">
                                </div>
                                <div class="form-group">
                                    <label for="adresse2">{{ _("Complément d'adresse")}}</label>
                                    <input type="text" class="form-control" name="adresse2" value="">
                                </div>
                                <div class="form-group">
                                    <label for="codepostal">{{ _("Code Postal")}}</label>
                                    <input type="text" class="form-control" name="codepostal" value="">
                                </div>
                                <div class="form-group">
                                    <label for="ville">{{ _("Ville")}}</label>
                                    <input type="text" class="form-control" name="ville" value="">
                                </div>
                                <div class="form-group">
                                    <label for="state">{{ _("Province / État")}}</label>
                                    <input type="text" class="form-control" name="state" value="">
                                </div>
                                <div class="form-group">
                                    <label for="pays">{{ _("Pays")}}</label>
                                    <input type="text" class="form-control" name="pays" value="">
                                </div>
                                <div class="form-group">
                                    <label for="default">
                                        <input type="checkbox" name="defaut" value="true" >{{ _("Utiliser comme adresse par défaut.") }}
                                    </label>
                                </div>
                                <input type="submit" class="btn btn-lg c-boutonslongs" value="{{ _("Créer cette adresse")}}">
                            </form>
Okhin's avatar
90  
Okhin committed
135
                        </div>
136
                    </div>
Okhin's avatar
90  
Okhin committed
137
                </div>
Okhin's avatar
Okhin committed
138 139 140 141 142 143 144 145 146
            </div><!-- / Form Adresses -->
            <div class="col-md-4"><!-- Form historique -->
                <div class="panel panel-default">
                    <input id="histo" type="checkbox">
                    <label for="histo" class="panel-heading" role="tab" id="headingInfos">
                        <div class="panel-title col-xs text-left">
                            {{ _("Historique")}}
                            <div class="panel-title col-xs-2 text-right">
                            </div>
Okhin's avatar
90  
Okhin committed
147
                        </div>
Okhin's avatar
Okhin committed
148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182
                    </label>
                    <div id="collapseHistorique" class="panel-collapse collapse" aria-labelledby="headingHistorique">
                        <div class="panel-body text-left">
                            <table class="table text-left">
                                <tr>
                                    <th>{{ _("Date") }}</th>
                                    <th>{{ _("Dons") }}</th>
                                    <th>{{ _("Récurent") }}</th>
                                    <th>{{ _("Contreparties") }}</th>
                                </tr>
                                <repeat group="{{ @dons_recurrents }}" value="{{ @don }}">
                                <tr>
                                    <td>{{ @don.datec }}</td>
                                    <td>{{ @don.somme }}</td>
                                    <td>{{ _("Oui")}}</td>
                                    <td></td>
                                </tr>
                                </repeat>
                                <repeat group="{{ @dons }}" value="{{ @don }}">
                                <tr>
                                    <td>{{ @don.datec }}</td>
                                    <td>{{ @don.somme }}</td>
                                    <td>{{ _("Non")}}</td>
                                    <td></td>
                                </tr>
                                </repeat>
                                <repeat group="{{ @contreparties }}" value="{{ @contrepartie }}">
                                <tr>
                                    <td>{{ @contrepartie.datec }}</td>
                                    <td></td>
                                    <td></td>
                                    <td>{{ @contrepartie.quoi }}</td>
                                </tr>
                                </repeat>
                            </table>
Okhin's avatar
90  
Okhin committed
183
                        </div>
Okhin's avatar
Okhin committed
184
                    </div>
185
                </div>
Okhin's avatar
Okhin committed
186
            </div><!-- / Form historique -->
Okhin's avatar
90  
Okhin committed
187
        </div>
Okhin's avatar
Okhin committed
188
</section>
Marne's avatar
Marne committed
189
<section id="wrapper" class="text-center fluid">
Okhin's avatar
Okhin committed
190 191 192 193 194
    <div id="subtitle" class="row">
        <div class="page-header">
            <h2 class="text-left">{{ _("Vos dons")}}</h2>
        </div>
    </div>
Marne's avatar
Marne committed
195
    <div id="vosdons" class="row">
Okhin's avatar
Okhin committed
196 197 198 199 200
        <div class="col-md-4"><!-- déjà donné -->
            <div class="panel panel-default">
                <div class="panel-heading" role="tab" id="headingOne">
                    <div class="panel-title">
                        <p>{{ _("Vous avez déjà donné")}}</p>
201 202
                    </div>
                </div>
Okhin's avatar
Okhin committed
203 204 205
                <div class="panel-body c-pannelfondblanc">
                    <p class="c-groschiffre">{{ @infos.total }}&nbsp;</p>
                </div>
206
            </div>
Okhin's avatar
Okhin committed
207 208 209 210 211 212 213 214 215 216
        </div><!-- / Déjà donné -->
        <div class="col-md-4"><!-- disponible -->
            <div class="panel panel-default">
                <div class="panel-heading" role="tab" id="headingOne">
                    <div class="panel-title">
                        <p>{{ _("Disponible pour demander des contreparties")}}</p>
                    </div>
                </div>
                <div class="panel-body c-pannelfondblanc">
                    <p class="c-groschiffre">{{ @infos.cumul }}&nbsp;</p>
217 218
                </div>
            </div>
Okhin's avatar
Okhin committed
219 220 221 222
        </div><!-- / disponible -->
    </div>
    <div class="row"><!-- nouveau don -->
        <div class="row">
Okhin's avatar
Okhin committed
223 224 225
            <div class="col-md-4 col-md-offset-4">
                <a href="/#step1" type=""class="btn btn-lg btn-primary c-boutonscourts">{{ _("Faire un nouveau don")}}</a>
            </div>
226 227 228
        </div>
    </div>
</section>
Okhin's avatar
Okhin committed
229

Marne's avatar
Marne committed
230
<section id="wrapper" class="text-center fluid">
Okhin's avatar
Okhin committed
231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247
    <div id="subtitle" class="row">
        <div class="page-header">
            <h2 class="text-left">{{ _("Demander des contreparties")}}</h2>
        </div>
        <p class="text-left">{{ _("Pour débloquer les objets associés à un bonus, cliquez sur l'icône de celui-ci. Le montant disponible pour les objets sera déduit du montant du palier et les objets seront disponibles sur la page <a href=\"#\">Mes contreparties</a> pour en demander la livraison.")}}</p>
        <div id="" class="row">
            <form method="GET" action="{{ 'perso' | alias }}" name="contreparties">
                <input type="hidden" name="validate" value="true">
                <check if="{{ @infos.cumul >= 30 }}">
                <div class="col-md-8 col-md-offset-2"><!-- piplome -->
                    <div class="panel panel-default">
                        <div class="panel-body c-panelcontrepartie">
                            <div class="col-md-1">
                                <input type="radio" name="quoi" id="quoi1" class="" checked <check if="{{ @infos.cumul < 30 }}">disabled</check> value="piplome">
                            </div>
                            <div class="col-md-3 text-center">
                                <p>
248
                                <img class="" src="/static/img/piplome.svg" alt="">
Okhin's avatar
90  
Okhin committed
249 250 251 252 253 254 255 256 257 258 259 260 261 262 263
                                </p>
                            </div>
                            <div class="col-md-8">
                                <div class="form-group text-left">
                                    <label for="quoi1">
                                        <h3 class="text-left">{{ _("Piplôme")}}</h3>
                                    </label>
                                    <div class="text-left">
                                        <label for="piplome_id">{{ _("Titulaire du Piplôme")}}</label>
                                        <input type="text" class="form-control" id="piplome_id" name="piplome_id" value="" placeholder="Nom, prénom, pseudonyme, etc …">
                                    </div>
                                </div>
                            </div>
                            <div class="c-prixcontrepartie">
                                <p>30&nbsp;</p>
Okhin's avatar
Okhin committed
264 265 266
                            </div>
                        </div>
                    </div>
Okhin's avatar
Okhin committed
267 268 269 270 271 272 273 274 275 276 277
                </div><!-- piplome -->
                </check>
                <check if="{{ @infos.cumul >= 50 }}">
                <div class="col-md-8 col-md-offset-2"><!-- Pibag -->
                    <div class="panel panel-default">
                        <div class="panel-body c-panelcontrepartie">
                            <div class="col-md-1">
                                <input type="radio" class="" id="quoi2" name="quoi" <check if="{{ @infos.cumul < 50 }}">disabled</check> value="pibag">
                            </div>
                            <div class="col-md-3 text-center">
                                <p>
Marne's avatar
Marne committed
278
                                <img class="" src="/static/img/pibag2.svg" alt="">
Okhin's avatar
Okhin committed
279 280 281 282 283 284 285 286 287
                                </p>
                            </div>
                            <div class="col-md-8">
                                <div class="form-group text-left">
                                    <label for="quoi2">
                                        <h3 class="text-left">{{ _("Pibag")}}</h3>
                                        <p>{{ _("Ainsi que le piplome.") }}</p>
                                    </label>
                                </div>
Okhin's avatar
Okhin committed
288 289 290
                            </div>
                        </div>
                    </div>
Okhin's avatar
Okhin committed
291 292 293 294 295 296 297 298 299 300 301
                </div><!-- / Pibag -->
                </check>
                <check if="{{ @infos.cumul >= 100 }}">
                <div class="col-md-8 col-md-offset-2"><!-- Pishirt -->
                    <div class="panel panel-default">
                        <div class="panel-body c-panelcontrepartie">
                            <div class="col-md-1">
                                <input type="radio" class="" id="quoi3" name="quoi" <check if="{{ @infos.cumul < 100 }}">disabled</check> value="pishirt">
                            </div>
                            <div class="col-md-3 text-center">
                                <p>
Marne's avatar
Marne committed
302
                                <img class="" src="/static/img/pishirt2.svg" alt="">
Okhin's avatar
Okhin committed
303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319
                                </p>
                            </div>
                            <div class="col-md-8">
                                <div class="form-group text-left">
                                    <label for="quoi3">
                                        <h3 class="text-left">{{ _("Pi-Shirt")}}</h3>
                                        <p>{{ _("Ainsi que le piplome et le pibag.") }}</p>
                                    </label>
                                    <form class="text-left">
                                        <div class="form-group text-left">
                                            <label for="taille">{{ _("Taille") }}</label>
                                            <select class="form-control" name="taille">
                                                <repeat group="{{ @atailles }}" key="{{ @key }}" value="{{ @value }}">
                                                <option value="{{ @key }}">{{ @value }}</option>
                                                </repeat>
                                            </select>
                                        </div>
Okhin's avatar
90  
Okhin committed
320 321 322 323
                                </div>
                            </div>
                            <div class="c-prixcontrepartie">
                                <p>100&nbsp;</p>
Okhin's avatar
Okhin committed
324
                            </div>
325
                        </div>
Okhin's avatar
Okhin committed
326
                    </div>
Okhin's avatar
Okhin committed
327 328 329 330 331 332 333 334 335 336 337
                </div><!-- / Pishirt -->
                </check>
                <check if="{{ @infos.cumul >= 250 }}">
                <div class="col-md-8 col-md-offset-2"><!-- Hoopi -->
                    <div class="panel panel-default">
                        <div class="panel-body c-panelcontrepartie">
                            <div class="col-md-1">
                                <input type="radio" class="" id="quoi4" name="quoi"<check if="{{ @infos.cumul < 250 }}">disabled</check> value="hoopie">
                            </div>
                            <div class="col-md-3 text-center">
                                <p>
Marne's avatar
Marne committed
338
                                <img class="media-object" src="/static/img/hoopie2.svg" alt="">
Okhin's avatar
Okhin committed
339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355
                                </p>
                            </div>
                            <div class="col-md-8">
                                <div class="form-group text-left">
                                    <label for="quoi4">
                                        <h3 class="text-left">{{ _("Hoodie")}}</h3>
                                        <p>{{ _("Ainsi que le pi-shirt, le piplome et le pibag.") }}</p>
                                    </label>
                                    <form class="text-left">
                                        <div class="form-group text-left">
                                            <label for="taille">{{ _("Taille") }}</label>
                                            <select name="taille_h" class="form-control">
                                                <repeat group="{{ @atailles }}" key="{{ @key }}" value="{{ @value }}">
                                                <option value="{{ @key }}">{{ @value }}</option>
                                                </repeat>
                                            </select>
                                        </div>
Okhin's avatar
90  
Okhin committed
356 357 358 359
                                </div>
                            </div>
                            <div class="c-prixcontrepartie">
                                <p>250&nbsp;</p>
360 361 362
                            </div>
                        </div>
                    </div>
Okhin's avatar
Okhin committed
363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381
                </div><!-- / Hoopi -->
                </check>
                <check if="{{ count(@adresses) > 0 }}">
                <div class="col-md-8 col-md-offset-2"><!-- Adresse -->
                    <div class="form-group form-inline">
                        <label for="adresses">{{ _("Envoyer à l'adresse :")}}</label>
                        <select class="form-control" name="adresse_id">
                            <repeat group="{{ @adresses }}" value="{{ @adresse }}">
                            <option value="{{ @adresse.id }}" <check if="{{ @adresse.defaut != 0 }}">selected</check>>{{ @adresse.alias }} - {{ @adresse.adresse }} {{@adresse.adresse2 }}</option>
                            </repeat>
                        </select>
                    </div>
                </div><!-- / Adresse -->
                <div class="col-md-8 col-md-offset-2"><!-- Bouton -->
                    <input type="submit" class="btn btn-lg btn-primary c-boutonscourts" value="{{ _('Envoyer')}}">
                </div><!-- / bouton -->
                </check>
            </form>
        </div>
Okhin's avatar
Okhin committed
382 383 384 385
    </div>
</section>

<!-- Modale de confirmation -->
Okhin's avatar
90  
Okhin committed
386
<!-- On utilise un GET /perso avec le formulaire précent pour peupler la modale -->
Okhin's avatar
Okhin committed
387 388 389 390
<check if="{{ @modal_counterparts == 1 }}">
<div class="modal fade show in" id="ModaleConfirmation" tabindex="-1" role="dialog">
    <div class="modal-dialog modal-lg" role="document">
        <form class="text-left" method="POST" action="{{ 'add_contrepartie' | alias}}">
Okhin's avatar
90  
Okhin committed
391 392
            <div class="modal-content c-modale">
                <div class="modal-body">
393 394 395 396 397 398 399 400 401
                    <h3>{{ _("Envoyer à l'adresse&nbsp;:") }}</h3>
                    <p>
                    {{ @adresses[@GET['adresse_id']].nom }}<br>
                    {{ @adresses[@GET['adresse_id']].adresse }}<br>
                    {{ @adresses[@GET['adresse_id']].adresse2 }}<br>
                    {{ @adresses[@GET['adresse_id']].codepostal }}&nbsp;
                    {{ @adresses[@GET['adresse_id']].ville }}
                    </p>
                    <h3>{{ _("Récapitulatif&nbsp;:") }}</h3>
Okhin's avatar
Okhin committed
402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443
                    <ul class="list-unstyled">
                        <check if="{{ in_array(@GET['quoi'], array('piplome', 'pibag', 'pishirt', 'hoopie')) }}">
                        <li class="media">
                            <div class="media-left">
                                <img class="media-object" src="/static/img/piplome.svg" alt="">
                            </div>
                            <div class="media-body">
                                {{ _("Piplome") }}
                            </div>
                        </li>
                        </check>
                        <check if="{{ in_array(@GET['quoi'], array('pibag', 'pishirt', 'hoopie')) }}">
                        <li class="media">
                            <div class="media-left">
                                <img class="media-object" src="/static/img/pibag.svg" alt="">
                            </div>
                            <div class="media-body">
                                {{ _("Pibag") }}
                            </div>
                        </li>
                        </check>
                        <check if="{{ in_array(@GET['quoi'], array('pishirt', 'hoopie')) }}">
                        <li class="media">
                            <div class="media-left">
                                <img class="media-object" src="/static/img/pishirt.svg" alt="">
                            </div>
                            <div class="media-body">
                                {{ _("Pi-Shirt - Taille&nbsp;: @atailles[@taille]") }}
                            </div>
                        </li>
                        </check>
                        <check if="{{ in_array(@GET['quoi'], array('hoopie')) }}">
                        <li class="media">
                            <div class="media-left">
                                <img class="media-object" src="/static/img/hoopie.svg" alt="">
                            </div>
                            <div class="media-body">
                                {{ _("Hoopie - Taille&nbsp;: @atailles[@taille_h]") }}
                            </div>
                        </li>
                        </check>
                    </ul>
444 445 446 447
                </div>
                <div class="form-group text-left">
                    <label for="commentaire"><h3>{{ _("Un commentaire&nbsp;?") }}</h3></label>
                    <textarea class="form-control" id="commentaire" name="commentaire" placeholder="" row="3"></textarea>
Okhin's avatar
Okhin committed
448 449 450 451 452 453 454 455
                    <div class="modal-footer">
                        <input type="hidden" name="csrf" value="{{ @CSRF }}">
                        <repeat group="{{@GET}}" key="{{ @key }}" value="{{ @value }}">
                        <input type="hidden" name="{{ @key }}" value="@value">
                        </repeat>
                        <a href="{{ 'perso' | alias }}" type="button" class="btn btn-default" data-dismiss="modal">Close</a>
                        <input type="submit" class="btn btn-primary" value="{{ _('Valider') }}">
                    </div>
Okhin's avatar
90  
Okhin committed
456 457
                </div>
            </div>
Okhin's avatar
Okhin committed
458 459
        </form>
    </div>
Okhin's avatar
Okhin committed
460
</check>