perso.html 21 KB
Newer Older
1 2 3 4 5 6 7
<section class="container-fluid light-blue">
    <div class="row">
        <div class="page-header col-md-offset-1 col-md-10 merci">
            <h1 class="text-center">{{ _("Merci de soutenir La Quadrature du Net et ses actions&nbsp;!")}}</h1>
            <em class="text-center"> {{ _("Cette page vous permet de modifier votre pi-xel et vos informations personnelles, <br> de choisir vos contreparties, et liste vos précédents dons.")}}</em>
        </div>
    </div>
Okhin's avatar
Okhin committed
8 9 10 11 12
</section>
<section id="wrapper" class="container-fluid">
    <div id="subtitle" class="row">
        <div class="page-header">
            <h1 class="text-left">{{ _("Merci &lt;3&nbsp;!")}}</h1>
13
        </div>
Okhin's avatar
Okhin committed
14 15 16 17 18 19 20 21 22 23 24 25 26
    </div>
    <div class="row">
        <div class="col-md-4"><!-- Form infos du compte -->
            <div class="panel panel-default" style="margin-right:2em;">
                <div class="panel-heading" role="tab" id="headingInfos">
                    <div class="panel-title col-xs text-left">
                        <a role="button" data-toggle="collapse" href="#collapseInfos" aria-expanded="flase" aria-controls="collapseInfos">
                            {{ _("Compte")}}
                        </a>
                        <div class="panel-title col-xs-2 text-right">
                            <a role="button" data-toggle="collapse" href="#collapseInfos" aria-expanded="true" aria-controls="collapseInfos">
                                <span class="caret"></span>
                            </a>
27
                        </div>
Okhin's avatar
Okhin committed
28
                    </div>
29
                </div>
Okhin's avatar
Okhin committed
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
                <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">
45
                            </div>
Okhin's avatar
Okhin committed
46 47 48
                            <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">
49
                            </div>
Okhin's avatar
Okhin committed
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
                            <input type="submit" class="btn btn-lg btn-primary c-boutonslongs" value="{{ _("Mettre à jour") }}">
                        </form>
                    </div>
                </div>
            </div>
        </div><!-- /Form infos du compte -->
        <div class="col-md-4"><!-- Form addresses -->
            <div class="panel panel-default" style="margin-right: 1em; margin-left: 1em;">
                <div class="panel-heading" role="tab" id="headingAdresses">
                    <div class="row">
                        <div class="panel-title col-xs-10 text-left">
                            <a role="button" data-toggle="collapse" href="#collapseAdresses" aria-expanded="false" aria-controls="collapseAdresses">
                                {{ _("Adresses")}}
                            </a>
                        </div>
                        <div class="panel-title col-xs-2 text-right">
                            <a role="button" data-toggle="collapse" href="#collapseAdresses" aria-expanded="false" aria-controls="collapseAdresses">
                                <span class="caret"></span>
                            </a>
69 70 71
                        </div>
                    </div>
                </div>
Okhin's avatar
Okhin committed
72 73 74 75 76 77 78 79 80 81 82
                <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>
                                </select>
83
                            </div>
Okhin's avatar
Okhin committed
84 85 86 87 88 89 90 91 92 93 94 95
                        </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="{{ @adresse.id }}" />
                            <div class="form-group">
                            <label for="alias">{{ _("Nom de l'adresse")}}</label>
                                <input type="text" class="form-control" name="alias" value="{{ @adresse.alias }}">
                            </div>
                            <div class="form-group">
96
                                <label for="nom">{{ _("Destinataire") }}</label>
Okhin's avatar
Okhin committed
97
                                <input type="text" class="form-control" name="nom" value="{{ @adresse.nom }}">
98
                            </div>
Okhin's avatar
Okhin committed
99
                            <div class="form-group">
100
                                <label for="adresse">{{ _("Adresse")}}</label>
Okhin's avatar
Okhin committed
101
                                <input type="text" class="form-control" name="adresse" value="{{ @adresse.adresse }}">
102
                            </div>
Okhin's avatar
Okhin committed
103
                            <div class="form-group">
104
                                <label for="adresse2">{{ _("Complément d'adresse")}}</label>
Okhin's avatar
Okhin committed
105
                                <input type="text" class="form-control" name="adresse2" value="{{ @adresse.adresse2 }}">
106
                            </div>
Okhin's avatar
Okhin committed
107
                            <div class="form-group">
108
                                <label for="codepostal">{{ _("Code Postal")}}</label>
Okhin's avatar
Okhin committed
109
                                <input type="text" class="form-control" name="codepostal" value="{{ @adresse.codepostal }}">
110
                            </div>
Okhin's avatar
Okhin committed
111
                            <div class="form-group">
112
                                <label for="ville">{{ _("Ville")}}</label>
Okhin's avatar
Okhin committed
113
                                <input type="text" class="form-control" name="ville" value="{{ @adresse.ville }}">
114
                            </div>
Okhin's avatar
Okhin committed
115
                            <div class="form-group">
116
                                <label for="state">{{ _("Province / État")}}</label>
Okhin's avatar
Okhin committed
117
                                <input type="text" class="form-control" name="state" value="{{ @adresse.etat }}">
118
                            </div>
Okhin's avatar
Okhin committed
119
                            <div class="form-group">
120
                                <label for="pays">{{ _("Pays")}}</label>
Okhin's avatar
Okhin committed
121
                                <input type="text" class="form-control" name="pays" value="{{ @adresse.pays }}">
122
                            </div>
Okhin's avatar
Okhin committed
123 124 125 126
                            <div class="form-group">
                                <label for="default">
                                    <input type="checkbox" name="defaut" value="true" <check if="{{ @adresse.defaut > 0 }}">checked</check>>{{ _("Utiliser comme adresse par défaut.") }}
                                </label>
127
                            </div>
Okhin's avatar
Okhin committed
128 129 130 131 132 133 134 135 136 137 138 139 140 141
                            <input type="submit" class="btn btn-lg c-boutonslongs" value="{{ _("Créer cette adresse"}}">
                        </form>
                    </div>
                </div>
            </div>
        </div><!-- / Form Adresses -->
        <div class="col-md-4"><!-- Form historique -->
            <div class="panel panel-default" style="margin-left: 2em;">
                <div class="panel-heading" role="tab" id="headingHistorique">
                    <div class="row">
                        <div class="panel-title col-xs-10 text-left">
                            <a role="button" data-toggle="collapse" href="#collapseHistorique" aria-expanded aria-controls="collapseHistorique">
                                {{ _("Historique")}}
                            </a>
142
                        </div>
Okhin's avatar
Okhin committed
143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164
                    </div>
                </div>
                <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>
                            <!-- FIXME: Modifier la vue pour avoir le bon historique" -->
                            <repeat group="{{ @dons_recurrents }}" value="{{ @don }}">
                            <tr>
                                <td>{{ @don.datec }}</td>
                                <td>{{ @don.somme }}</td>
                                <td>{{ @don.status }}</td>
                                <td><?td>
                            </tr>
                            </repeat>
                        </table>
                    </div>
165 166
                </div>
            </div>
Okhin's avatar
Okhin committed
167
        </div><!-- / Form historique -->
168 169
    </div>
</section>
Okhin's avatar
Okhin committed
170 171 172 173 174 175 176 177 178 179 180 181
<section id="wrapper" class="text-center container-fluid">
    <div id="subtitle" class="row">
        <div class="page-header">
            <h2 class="text-left">{{ _("Vos dons")}}</h2>
        </div>
    </div>
    <div id="" class="row">
        <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>
182 183
                    </div>
                </div>
Okhin's avatar
Okhin committed
184 185 186
                <div class="panel-body c-pannelfondblanc">
                    <p class="c-groschiffre">{{ @infos.total }}&nbsp;</p>
                </div>
187
            </div>
Okhin's avatar
Okhin committed
188 189 190 191 192 193 194 195 196 197
        </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>
198 199
                </div>
            </div>
Okhin's avatar
Okhin committed
200 201 202 203 204 205 206 207 208 209
        </div><!-- / disponible -->
        <div class="col-md-4"><!-- prochain -->
            <div class="panel panel-default">
                <div class="panel-heading" role="tab" id="headingOne">
                    <div class="panel-title">
                        <p>{{ _("Prochain bonus disponible dans")}}</p>
                    </div>
                </div>
                <div class="panel-body c-pannelfondblanc">
                    <p class="c-groschiffre"><!-- FIXME calculer le prochain palier -->XX</p>
210 211
                </div>
            </div>
Okhin's avatar
Okhin committed
212 213 214 215 216
        </div><!-- / prochain -->
    </div>
    <div class="row"><!-- nouveau don -->
        <div class="row">
            <button type="button" class="btn btn-primary c-boutonslongs" data-toggle="modal" data-target="#ModaleConfirmation">{{ _("Faire un nouveau don")}}</button>
217 218 219
        </div>
    </div>
</section>
Okhin's avatar
Okhin committed
220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239

<section id="wrapper" class="text-center container-fluid">
<div id=subtitle" class="row">
    <div class="page-header">
        <h2 class="text-left">{{ _("Demander des contreparties")}}</h2>
    </div>
    <!-- FIXME: Lien page contrepartie -->
    <p class="text-left">{{ _("Pour débloquer les objets associés à un bonus, cliquez sur l'icône de celui-ci. Le monant 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="POST" action="{{ 'add_contrepartie' | alias }}" name="contreparties">
            <input type="hidden" name="csrf" value="{{ @CSRF }}">
            <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="checkbox" name="quoi" id="quoi1" class="" checked <check if="{{ @infos.cumul < 30 }}">disabled</check> value="piplome">
                        </div>
                        <div class="col-md-3 text-center">
                            <p>
240
                                <img class="" src="/static/img/piplome.svg" alt="">
Okhin's avatar
Okhin committed
241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257
                            </p>
                        </div>
                        <div class="col-md-8">
                            <div class="form-group text-left">
                                <label for="quoi1">
                                    <h3 class="text-left">{{ _("Piplôme")}}</h3>
                                </label>
                                <form 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 …">
                                </form>
                            </div>
                        </div>
                        <div class="c-prixcontrepartie">
                            <p>30&nbsp;</p>
                        </div>
                    </div>
258
                </div>
Okhin's avatar
Okhin committed
259 260 261 262 263 264 265 266 267 268 269
            </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-nody c-panelcontrepartie">
                        <div class="col-md-1">
                            <input type="checkbox" class="" id="quoi2" name="quoi" <check if="{{ @infos.cumul < 50 }}">disabled</check> value="pibag">
                        </div>
                        <div class="col-md-3 text-center">
                            <p>
270
                                <img class="" src="/static/img/pibag.svg" alt="">
Okhin's avatar
Okhin committed
271 272 273 274 275 276 277 278 279 280 281 282 283
                            </p>
                        </div>
                        <div class="col-md-8">
                            <div class="form-group text-left">
                                <label for="quoi2">
                                    <h3 class="text-left">{{ _("Pibag")}}</h3>
                                </label>
                            </div>
                        </div>
                        <div class="c-prixcontrepartie">
                            <p>50&nbsp;</p>
                        </div>
                    </div>
284
                </div>
Okhin's avatar
Okhin committed
285 286 287 288 289 290 291 292
            </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="checkbox" class="" id="quoi3" name="quoi"<check if="{{ @infos.cumul < 100 }}">disabled</check> value="pishirt">
293
                        </div>
Okhin's avatar
Okhin committed
294 295
                        <div class="col-md-3 text-center">
                            <p>
296
                                <img class="" src="/static/img/pishirt.svg" alt="">
Okhin's avatar
Okhin committed
297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314
                            </p>
                        </div>
                        <div class="col-md-8">
                            <div class="form-group text-left">
                                <label for="quoi3">
                                    <h3 class="text-left">{{ _("Pi-Shirt")}}</h3>
                                </label>
                                <form class="text-left">
                                    <div class="form-group text-left">
                                        <label for="taille">{{ _("Taille") }}</label>
                                        <select name="taille">
                                        <repeat group="{{ @atailles }}" key="{{ @key }}" value="{{ @value }}">
                                        <option value="{{ @key }}">{{ @value }}</option>
                                        </repeat>
                                        </select>
                                    </div>
                                </form>
                            </div>
315
                        </div>
Okhin's avatar
Okhin committed
316 317
                        <div class="c-prixcontrepartie">
                            <p>100&nbsp;</p>
318
                        </div>
Okhin's avatar
Okhin committed
319 320 321 322 323 324 325 326 327 328 329 330 331
                    </div>
                </div>
            </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="checkbox" class="" id="quoi4" name="quoi"<check if="{{ @infos.cumul < 250 }}">disabled</check> value="hoopie">
                        </div>
                        <div class="col-md-3 text-center">
                            <p>
332
                                <img class="media-object" src="/static/img/hoopie.svg" alt="">
Okhin's avatar
Okhin committed
333
                            </p>
334
                        </div>
Okhin's avatar
Okhin committed
335 336 337 338 339 340 341 342 343 344 345 346 347 348 349
                        <div class="col-md-8">
                            <div class="form-group text-left">
                                <label for="quoi4">
                                    <h3 class="text-left">{{ _("Hoodie")}}</h3>
                                </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>
                                </form>
350 351
                            </div>
                        </div>
Okhin's avatar
Okhin committed
352 353
                        <div class="c-prixcontrepartie">
                            <p>250&nbsp;</p>
354 355
                        </div>
                    </div>
Okhin's avatar
Okhin committed
356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383
                </div>
            </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 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-boutonslongs" value="{{ _('Envoyer')}}">
            </div><!-- / bouton -->
            </check>
        </form>
    </div>
</section>

<!-- Modale de confirmation -->
<!-- TODO: Récupérer le contenu de la modale -->
<div class="modal fade" id="ModaleConfirmation" tabindex="-1" role="dialog">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content c-modale">
            <div class="modal-body">
384 385 386
        </div>
    </div>
</section>