perso.html 19.8 KB
Newer Older
Marne's avatar
Marne committed
1
    <div id="subtitle" class="row fluid">
Okhin's avatar
Okhin committed
2
        <div class="page-header">
3
            <h1 class="text-left">{{ _("Merci de soutenir La Quadrature du Net &lt;3&nbsp;!")}}</h1>
4
        </div>
Okhin's avatar
Okhin committed
5
    </div>
6
    <div id="perso" class="row fluid">
Okhin's avatar
Okhin committed
7
        <div class="col-md-4"><!-- Form infos du compte -->
8
            <div class="panel panel-default">
9 10
                <input id="compte" type="checkbox">
                <label for="compte" class="panel-heading" role="tab" id="headingInfos">
Okhin's avatar
Okhin committed
11 12 13
                    <div class="panel-title col-xs text-left">
                            {{ _("Compte")}}
                        <div class="panel-title col-xs-2 text-right">
14
                        </div>
Okhin's avatar
Okhin committed
15
                    </div>
16
                </label>
Okhin's avatar
Okhin committed
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
                <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">
32
                            </div>
Okhin's avatar
Okhin committed
33 34 35
                            <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">
36
                            </div>
Okhin's avatar
Okhin committed
37 38 39 40 41 42 43
                            <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 -->
44
            <div class="panel panel-default">
45 46 47 48
                <input id="adresses" type="checkbox">
                <label for="adresses" class="panel-heading" role="tab" id="headingInfos">
                    <div class="panel-title col-xs text-left">
                            {{ _("Adresses")}}
Okhin's avatar
Okhin committed
49
                        <div class="panel-title col-xs-2 text-right">
50 51
                        </div>
                    </div>
52
                </label>
Okhin's avatar
Okhin committed
53 54 55
                <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 }}">
Marne's avatar
Marne committed
56
                        <h3>{{ _("Modifier une adresse")}}</h3>
Okhin's avatar
Okhin committed
57 58 59 60 61 62 63
                        <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>
64
                            </div>
Okhin's avatar
Okhin committed
65 66
                        </form>

Marne's avatar
Marne committed
67
                        <h3>{{ _("Ajouter une nouvelle adresse")}}</h3>
Okhin's avatar
Okhin committed
68 69 70
                        <form method="POST" action="{{ 'adresses' | alias }}" id="create-adress-form">
                            <input type="hidden" name="csrf" value="{{ @CSRF }}" />
                            <input type="hidden" name="action" value="ADD" />
71
                            <input type="hidden" name="id" value="{{ @adresse.id }}" />
Okhin's avatar
Okhin committed
72 73
                            <div class="form-group">
                            <label for="alias">{{ _("Nom de l'adresse")}}</label>
74
                                <input type="text" class="form-control" name="alias" value="{{ @adresse.alias }}">
Okhin's avatar
Okhin committed
75 76
                            </div>
                            <div class="form-group">
77
                                <label for="nom">{{ _("Destinataire") }}</label>
78
                                <input type="text" class="form-control" name="nom" value="{{ @adresse.nom }}">
79
                            </div>
Okhin's avatar
Okhin committed
80
                            <div class="form-group">
81
                                <label for="adresse">{{ _("Adresse")}}</label>
82
                                <input type="text" class="form-control" name="adresse" value="{{ @adresse.adresse }}">
83
                            </div>
Okhin's avatar
Okhin committed
84
                            <div class="form-group">
85
                                <label for="adresse2">{{ _("Complément d'adresse")}}</label>
86
                                <input type="text" class="form-control" name="adresse2" value="{{ @adresse.adresse2 }}">
87
                            </div>
Okhin's avatar
Okhin committed
88
                            <div class="form-group">
89
                                <label for="codepostal">{{ _("Code Postal")}}</label>
90
                                <input type="text" class="form-control" name="codepostal" value="{{ @adresse.codepostal }}">
91
                            </div>
Okhin's avatar
Okhin committed
92
                            <div class="form-group">
93
                                <label for="ville">{{ _("Ville")}}</label>
94
                                <input type="text" class="form-control" name="ville" value="{{ @adresse.ville }}">
95
                            </div>
Okhin's avatar
Okhin committed
96
                            <div class="form-group">
97
                                <label for="state">{{ _("Province / État")}}</label>
98
                                <input type="text" class="form-control" name="state" value="{{ @adresse.etat }}">
99
                            </div>
Okhin's avatar
Okhin committed
100
                            <div class="form-group">
101
                                <label for="pays">{{ _("Pays")}}</label>
102
                                <input type="text" class="form-control" name="pays" value="{{ @adresse.pays }}">
103
                            </div>
Okhin's avatar
Okhin committed
104 105
                            <div class="form-group">
                                <label for="default">
106
                                    <input type="checkbox" name="defaut" value="true" <check if="{{ @adresse.defaut > 0 }}">checked</check>>{{ _("Utiliser comme adresse par défaut.") }}
Okhin's avatar
Okhin committed
107
                                </label>
108
                            </div>
Okhin's avatar
Okhin committed
109
                            <input type="submit" class="btn btn-lg c-boutonslongs" value="{{ _("Créer cette adresse")}}">
Okhin's avatar
Okhin committed
110 111 112 113 114 115
                        </form>
                    </div>
                </div>
            </div>
        </div><!-- / Form Adresses -->
        <div class="col-md-4"><!-- Form historique -->
116
            <div class="panel panel-default">
117 118 119 120 121
                <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">
122
                        </div>
Okhin's avatar
Okhin committed
123
                    </div>
124
                </label>
Okhin's avatar
Okhin committed
125 126 127 128 129 130 131 132 133 134 135 136 137
                <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>
Okhin's avatar
Okhin committed
138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155
                                <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>
Okhin's avatar
Okhin committed
156 157 158 159
                            </tr>
                            </repeat>
                        </table>
                    </div>
160 161
                </div>
            </div>
Okhin's avatar
Okhin committed
162
        </div><!-- / Form historique -->
163 164
    </div>
</section>
Marne's avatar
Marne committed
165
<section id="wrapper" class="text-center fluid">
Okhin's avatar
Okhin committed
166 167 168 169 170
    <div id="subtitle" class="row">
        <div class="page-header">
            <h2 class="text-left">{{ _("Vos dons")}}</h2>
        </div>
    </div>
Marne's avatar
Marne committed
171
    <div id="vosdons" class="row">
Okhin's avatar
Okhin committed
172 173 174 175 176
        <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>
177 178
                    </div>
                </div>
Okhin's avatar
Okhin committed
179 180 181
                <div class="panel-body c-pannelfondblanc">
                    <p class="c-groschiffre">{{ @infos.total }}&nbsp;</p>
                </div>
182
            </div>
Okhin's avatar
Okhin committed
183 184 185 186 187 188 189 190 191 192
        </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>
193 194
                </div>
            </div>
Okhin's avatar
Okhin committed
195 196 197 198
        </div><!-- / disponible -->
    </div>
    <div class="row"><!-- nouveau don -->
        <div class="row">
Marne's avatar
Marne committed
199
            <button type="button" class="btn btn-lg btn-primary c-boutonscourts" data-toggle="modal" data-target="#ModaleConfirmation">{{ _("Faire un nouveau don")}}</button>
200 201 202
        </div>
    </div>
</section>
Okhin's avatar
Okhin committed
203

Marne's avatar
Marne committed
204
<section id="wrapper" class="text-center fluid">
205
<div id="subtitle" class="row">
Okhin's avatar
Okhin committed
206 207 208 209
    <div class="page-header">
        <h2 class="text-left">{{ _("Demander des contreparties")}}</h2>
    </div>
    <!-- FIXME: Lien page contrepartie -->
Marne's avatar
Marne committed
210
    <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>
Okhin's avatar
Okhin committed
211 212 213
    <div id="" class="row">
        <form method="POST" action="{{ 'add_contrepartie' | alias }}" name="contreparties">
            <input type="hidden" name="csrf" value="{{ @CSRF }}">
Okhin's avatar
Okhin committed
214
            <check if="{{ @infos.cumul >= 30 }}">
Okhin's avatar
Okhin committed
215 216 217 218 219 220 221 222
            <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>
223
                                <img class="" src="/static/img/piplome.svg" alt="">
Okhin's avatar
Okhin committed
224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240
                            </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>
241
                </div>
Okhin's avatar
Okhin committed
242 243
            </div><!-- piplome -->
            </check>
Okhin's avatar
Okhin committed
244
            <check if="{{ @infos.cumul >= 50 }}">
Okhin's avatar
Okhin committed
245 246
            <div class="col-md-8 col-md-offset-2"><!-- Pibag -->
                <div class="panel panel-default">
247
                    <div class="panel-body c-panelcontrepartie">
Okhin's avatar
Okhin committed
248 249 250 251 252
                        <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>
253
                                <img class="" src="/static/img/pibag.svg" alt="">
Okhin's avatar
Okhin committed
254 255 256 257 258 259 260 261 262 263 264 265 266
                            </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>
267
                </div>
Okhin's avatar
Okhin committed
268 269 270 271 272 273 274 275
            </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">
276
                        </div>
Okhin's avatar
Okhin committed
277 278
                        <div class="col-md-3 text-center">
                            <p>
Marne's avatar
Marne committed
279
                                <img class="" src="/static/img/pishirt2.svg" alt="">
Okhin's avatar
Okhin committed
280 281 282 283 284 285 286 287 288
                            </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">
289 290
                                        <label for="taille">{{ _("Taille") }}</label>
                                        <select class="form-control" name="taille">
Okhin's avatar
Okhin committed
291 292 293 294 295 296 297
                                        <repeat group="{{ @atailles }}" key="{{ @key }}" value="{{ @value }}">
                                        <option value="{{ @key }}">{{ @value }}</option>
                                        </repeat>
                                        </select>
                                    </div>
                                </form>
                            </div>
298
                        </div>
Okhin's avatar
Okhin committed
299 300
                        <div class="c-prixcontrepartie">
                            <p>100&nbsp;</p>
301
                        </div>
Okhin's avatar
Okhin committed
302 303 304 305 306 307 308 309 310 311 312 313 314
                    </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>
Marne's avatar
Marne committed
315
                                <img class="media-object" src="/static/img/hoopie2.svg" alt="">
Okhin's avatar
Okhin committed
316
                            </p>
317
                        </div>
Okhin's avatar
Okhin committed
318 319 320 321 322 323 324 325 326 327 328 329 330 331 332
                        <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>
333 334
                            </div>
                        </div>
Okhin's avatar
Okhin committed
335 336
                        <div class="c-prixcontrepartie">
                            <p>250&nbsp;</p>
337 338
                        </div>
                    </div>
Okhin's avatar
Okhin committed
339 340 341 342 343 344 345
                </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>
Marne's avatar
Marne committed
346
                    <select class="form-control" name="adresse_id">
Okhin's avatar
Okhin committed
347
                        <repeat group="{{ @adresses }}" value="{{ @adresse }}">
Okhin's avatar
Okhin committed
348
                            <option value="{{ @adresse.id }}" <check if="{{ @adresse.defaut != 0 }}">selected</check>>{{ @adresse.alias }} - {{ @adresse.adresse }} {{@adresse.adresse2 }}</option>
Okhin's avatar
Okhin committed
349
                        </repeat>
Okhin's avatar
Okhin committed
350 351 352 353
                    </select>
                </div>
            </div><!-- / Adresse -->
            <div class="col-md-8 col-md-offset-2"><!-- Bouton -->
Marne's avatar
Marne committed
354
                <input type="submit" class="btn btn-lg btn-primary c-boutonscourts" value="{{ _('Envoyer')}}">
Okhin's avatar
Okhin committed
355 356 357 358 359 360 361 362 363 364 365 366
            </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">
367 368 369
        </div>
    </div>
</section>