Browse Source

"Firt release (Bon, cette fois c'ets la bonne)"

Doug Le Tough 2 years ago
parent
commit
0ee04ef314
3 changed files with 2 additions and 535 deletions
  1. 1
    0
      config.local.py
  2. 1
    1
      participate.py
  3. 0
    534
      static/styles/tetawebapp_pdf.css

+ 1
- 0
config.local.py View File

@@ -1,3 +1,4 @@
1 1
 SQLALCHEMY_TRACK_MODIFICATIONS = True
2 2
 SQLALCHEMY_DATABASE_URI = "postgresql://participer_thsf:participer_thsf@localhost/participer_thsf"
3 3
 UPLOADED_FILES_DEST = "./upload"
4
+DOMAIN_URL = "https://participer.redatomik.org"

+ 1
- 1
participate.py View File

@@ -556,7 +556,7 @@ def send_mail(email, link_id):
556 556
         recipients=[email])
557 557
   msg.body = "Bonjour,\nVous recevez ce courriel car vous avez souhaité faire partie de l'équipe du staff du THSF.\n\n"
558 558
   msg.body += "Pour confirmer votre inscription, rendez vous à la page suivante:\n"
559
-  msg.body += "https://wemake.thsf.net/confirm/%s\n\n" % str(link_id)
559
+  msg.body += "%s/confirm/%s\n\n" % (str(app.config['DOMAIN_URL']), str(link_id))
560 560
   msg.body += "Si vous n'êtes pas à l'origine de cette inscription, ignorez simplement ce courriel.\n"
561 561
   msg.body += "Votre compte sera automatiquement supprimé dans les 24 heures.\n\n"
562 562
   msg.body += "Si vous désirez vous désinscrire, faites simplement une demande sur https://bofh.tetalab.org\n\n"

+ 0
- 534
static/styles/tetawebapp_pdf.css View File

@@ -1,534 +0,0 @@
1
-/*
2
-* Do NOT modify this file:
3
-* ------------------------
4
-* If you want to add or modify classes, create a new
5
-* CSS files and make it loaded after this one in the
6
-* HTML header section of the index.html template file.
7
-*/
8
-@page {
9
-    size: 21cm 29.7cm;
10
-    margin: 3mm 5mm 3mm 5mm;
11
-}
12
-
13
-@font-face {
14
-  font-family: 'Roboto Condensed';
15
-  font-style: normal;
16
-  font-weight: 400;
17
-  src: url(http://participer.redatomik.org/static/fonts/RobotoCondensed-Regular.ttf) format('truetype');
18
-}
19
-
20
-@font-face {
21
-  font-family: 'Roboto Condensed';
22
-  font-style: normal;
23
-  font-weight: 700;
24
-  src: url(http://participer.redatomik.org/static/fonts/RobotoCondensed-Bold.ttf) format('truetype');
25
-}
26
-
27
-* {
28
-  box-sizing: border-box; 
29
-}
30
-
31
-body {
32
-  margin: 10px;
33
-  font-family: 'Roboto Condensed';
34
-  background-color: #2B2B2B;
35
-}
36
-
37
-div.content {
38
-  display: flex;
39
-  min-height: calc(100vh - 110px);
40
-}
41
-
42
-main > article {
43
-  flex: 1;
44
-  background-color: #E5E5E5;
45
-}
46
-
47
-main > section.inline {
48
-  display: flex;
49
-  background-color: #E5E5E5;
50
-}
51
-
52
-main > section.inline > article.left {
53
-  flex: 0 0 50%;
54
-  margin-left: 10px;
55
-}
56
-
57
-main > section.inline > article.right {
58
-  flex: 1;
59
-  margin-left: 10px;
60
-}
61
-
62
-div.content > nav.vertical {
63
-  flex: 0 0 200px;
64
-  background-color:  #E5E5E5;
65
-  border-right-color: #BBBBBB;
66
-  border-right-style: solid;
67
-  border-right-width: 1px;
68
-}
69
-
70
-div.content > nav.vertical {
71
-  order: -1;
72
-  display: block;
73
-}
74
-
75
-div.content > nav.vertical > a {
76
-  display: block;
77
-  background-color: #E5E5E5;
78
-  font-size: 20px;
79
-  color: #555555;
80
-  padding: 5px;
81
-  text-decoration: none;
82
-}
83
-
84
-div.content > nav.vertical > a:hover {
85
-  background-color:  #FF5D00;
86
-  color: #FFFFFF;
87
-  cursor: pointer;
88
-}
89
-
90
-div.content > nav.vertical > a.selected {
91
-  background-color:  #FFB387;
92
-}
93
-
94
-main {
95
-  color: #555555;
96
-  background-color: #E5E5E5;
97
-  width: 100%;
98
-}
99
-
100
-main > div.navbar_container {
101
-  text-align: center;
102
-  padding: 0;
103
-  margin: 0;
104
-}
105
-
106
-main > div.navbar_container > ul.horizontal {
107
-  display: inline-block;
108
-  list-style-type: none;
109
-  margin: 10px;
110
-  padding: 0;
111
-  overflow: hidden;
112
-  background-color: #FFFFFF;
113
-  border-color: #FF5D00;
114
-  border-style: solid;
115
-  border-width: 1px;
116
-  color: #555555;
117
-  border-radius: 2px;
118
-}
119
-
120
-main > div.navbar_container > ul.horizontal > li {
121
-  float: left;
122
-}
123
-
124
-main > div.navbar_container > ul.horizontal > li > a {
125
-  display: block;
126
-  color: #555555;
127
-  text-align: center;
128
-  padding: 5px;
129
-  text-decoration: none;
130
-}
131
-
132
-main > div.navbar_container > ul.horizontal > li > a:hover {
133
-  background-color: #FF5D00;
134
-  color: #FFFFFF;
135
-}
136
-
137
-main > div.navbar_container > ul.horizontal > li > a.right_border {
138
-  border-right-color: #FF5D00;
139
-  border-right-style: solid;
140
-  border-right-width: 1px;
141
-}
142
-
143
-main > div.navbar_container > ul.horizontal > li > a.selected {
144
-  background-color: #FFB387;
145
-}
146
-
147
-main > article {
148
-  padding: 10px;
149
-  color: #555555;
150
-  display: block;
151
-}
152
-
153
-main > article.error,
154
-main > article.error > p {
155
-  padding: 10px;
156
-  color: #555555;
157
-  display: block;
158
-  text-align: center;
159
-}
160
-
161
-main > article > h3,
162
-main > section.inline > article > h3 {
163
-  font-size: 30px;
164
-  color: #555555;
165
-  margin-bottom: 10px;
166
-}
167
-
168
-main > article > p,
169
-main > article > ul,
170
-main > article > ol {
171
-  color: #555555;
172
-  text-align: justify;
173
-  text-justify: distribute;
174
-}
175
-
176
-main > hr {
177
-  border-color: #BBBBBB;
178
-  border-style: solid;
179
-  border-width: 1px;
180
-}
181
-
182
-main > article > img {
183
-  display:inline-block;
184
-  border-color: #BBBBBB;
185
-  border-style: solid;
186
-  border-width: 1px;
187
-  border-radius: 4px;
188
-}
189
-
190
-main > article > p > a,
191
-main > article > ul > li > a {
192
-  color: #FF5D00;
193
-}
194
-
195
-main > article > p > a:hover,
196
-main > article > ul > li > a:hover {
197
-  text-decoration: none;
198
-}
199
-
200
-main > article.right > img {
201
-  float: right;
202
-  margin: 0 0 0px 10px;
203
-}
204
-
205
-main > article.left > img {
206
-  float: left;
207
-  margin: 0 10px 0px 0;
208
-}
209
-
210
-header {
211
-  height: 65px;
212
-  font-size: 34px;
213
-  padding: 10px;
214
-  text-align: right;
215
-  color: #FFFFFF;
216
-  background: url(http://participer.redatomik.org/static/images/logo.png);;
217
-  background-repeat: no-repeat;
218
-  background-position: 10px;
219
-  text-shadow: 0 0 1px #000000;
220
-  border-bottom-color: #888888;
221
-  border-bottom-style: solid;
222
-  border-bottom-width: 1px;
223
-  border-top-color: #FFFFFF;
224
-  border-top-style: solid;
225
-  border-top-width: 1px;
226
-}
227
-
228
-footer {
229
-  height: 35px;
230
-  font-size: 12px;
231
-  text-align: center;
232
-  padding: 1em;
233
-  border-bottom-color: #FFFFFF;
234
-  border-bottom-style: solid;
235
-  border-bottom-width: 1px;
236
-  border-top-color: #888888;
237
-  border-top-style: solid;
238
-  border-top-width: 1px;
239
-}
240
-
241
-header,
242
-footer {
243
-  background-color: #FF5D00;
244
-  color: #FFFFFF;
245
-}
246
-
247
-input[type='text'],
248
-input[type='password'],
249
-input[type='number'],
250
-input[type='email'],
251
-input[type='url'],
252
-textarea,
253
-select,
254
-pre {
255
-  border-color: #888888;
256
-  border-style: solid;
257
-  border-width: 1px;
258
-  background-color: #FFFFFF;
259
-  color: #555555;
260
-  padding: 5px;
261
-  font-family: 'Roboto Condensed';
262
-  margin: 5px;
263
-}
264
-
265
-pre {
266
-  border-color: #FF5D00;
267
-}
268
-
269
-button,
270
-input[type='button'],
271
-input[type='submit'] {
272
-  border-color: #888888;
273
-  border-style: solid;
274
-  border-width: 1px;
275
-  background-color: #FF5D00;
276
-  color: #FFFFFF;
277
-  font-weight: bold;
278
-  padding: 5px;
279
-  font-family: 'Roboto Condensed';
280
-  margin: 5px;
281
-  border-radius: 4px;
282
-}
283
-
284
-button:hover,
285
-input[type='button']:hover,
286
-input[type='submit']:hover,
287
-input[type='file']:hover {
288
-  background-color: #FFB387;
289
-  color: #555555;
290
-  cursor: pointer;
291
-}
292
-
293
-div.file_upload {
294
-  display: inline-block;
295
-  position: relative;
296
-  width: 20px;
297
-  height: 20px;
298
-  margin: 0;
299
-  padding: 0;
300
-  border-radius: 2px;
301
-  border-style: solid;
302
-  border-width: 1px;
303
-  border-color: #E5E5E5;
304
-}
305
-
306
-input[type='file'] {
307
-  position: absolute;
308
-  width: 18px;
309
-  height: 18px;
310
-  left: 0;
311
-  top: 1px;
312
-  opacity: 0;
313
-}
314
-
315
-
316
-input.add,
317
-input.edit,
318
-input.login,
319
-input.logout,
320
-input.refresh,
321
-input.save,
322
-input.search,
323
-input.trash,
324
-input.upload,
325
-input.print {
326
-  width: 20px;
327
-  height: 20px;
328
-  margin: 0;
329
-  padding: 0;
330
-  border-radius: 2px;
331
-  border-style: none;
332
-}
333
-
334
-input.add:hover,
335
-input.edit:hover,
336
-input.login:hover,
337
-input.logout:hover,
338
-input.refresh:hover,
339
-input.save:hover,
340
-input.search:hover,
341
-input.trash:hover,
342
-input.upload:hover,
343
-input.print:hover {
344
-  border-color: #555555;
345
-  border-style: solid;
346
-  border-width: 1px;
347
-  background-color: #FF5D00;
348
-  cursor: pointer;
349
-}
350
-
351
-input.add {
352
-  background: url(http://participer.redatomik.org/static/images/add.png);
353
-  background-repeat: no-repeat;
354
-  background-position: center center;
355
-}
356
-input.edit {
357
-  background: url(http://participer.redatomik.org/static/images/edit.png);
358
-  background-repeat: no-repeat;
359
-  background-position: center center;
360
-}
361
-input.login {
362
-  background: url(http://participer.redatomik.org/static/images/login.png);
363
-  background-repeat: no-repeat;
364
-  background-position: center center;
365
-}
366
-input.logout {
367
-  background: url(http://participer.redatomik.org/static/images/logout.png);
368
-  background-repeat: no-repeat;
369
-  background-position: center center;
370
-}
371
-input.refresh {
372
-  background: url(http://participer.redatomik.org/static/images/refresh.png);
373
-  background-repeat: no-repeat;
374
-  background-position: center center;
375
-}
376
-input.save {
377
-  background: url(http://participer.redatomik.org/static/images/save.png);
378
-  background-repeat: no-repeat;
379
-  background-position: center center;
380
-}
381
-input.search {
382
-  background: url(http://participer.redatomik.org/static/images/search.png);
383
-  background-repeat: no-repeat;
384
-  background-position: center center;
385
-}
386
-input.trash {
387
-  background: url(http://participer.redatomik.org/static/images/trash.png);
388
-  background-repeat: no-repeat;
389
-  background-position: center center;
390
-}
391
-input.upload {
392
-  background: url(http://participer.redatomik.org/static/images/upload.png);
393
-  background-repeat: no-repeat;
394
-  background-position: center center;
395
-}
396
-input.print {
397
-  background: url(http://participer.redatomik.org/static/images/print.png);
398
-  background-repeat: no-repeat;
399
-  background-position: center center;
400
-}
401
-
402
-form {
403
-  width: 450px;
404
-  text-align: center;
405
-  line-height: 40px;
406
-}
407
-
408
-form > label {
409
-  float: left;
410
-}
411
-
412
-form > input[type='text'],
413
-form > input[type='password'],
414
-form > input[type='number'],
415
-form > input[type='email'],
416
-form > input[type='url'],
417
-form > select {
418
-  float: right;
419
-  width: 200px;
420
-}
421
-
422
-div.table_header {
423
-  background-color: #FF5D00;
424
-  text-align: left;
425
-  width: 910px;
426
-}
427
-
428
-div.table_row {
429
-  text-align: left;
430
-  width: 910px;
431
-}
432
-
433
-div.table_header > div, div.table_row > div {
434
-  display: inline-block;
435
-  text-align: center;
436
-  font-weight: bold;
437
-  width: 200px;
438
-}
439
-
440
-div.table_row > div {
441
-  border-color: #FF5D00;
442
-  border-width: 1px;
443
-  font-weight: normal;
444
-}
445
-
446
-div.even {
447
-  background-color: #FFB387;
448
-  border-color: #FF5D00;
449
-  border-width: 1px;
450
-  border-style: none none solid none;
451
-}
452
-
453
-div.odd {
454
-  background-color: #FFFFFF;
455
-  border-color: #FF5D00;
456
-  border-width: 1px;
457
-  border-style: none none solid none;
458
-}
459
-
460
-div.table_row > div.border_left {
461
-  border-style: none none none solid;
462
-}
463
-
464
-div.table_row > div.border_right {
465
-  border-style: none solid none none;
466
-}
467
-
468
-main > article > p.note {
469
-  color: #555555;
470
-  display: block;
471
-  font-size: 12px;
472
-}
473
-
474
-article > div.table_header > div.sheet_day {
475
-  background-color: #FF5D00;
476
-  width: 100%;
477
-  font-size: 18px;
478
-  color: #FFFFFF;
479
-  text-align: left;
480
-  padding: 5px 5px 5px 5px;
481
-}
482
-
483
-article > div.table_header > div.sheet_role {
484
-  background-color: #FFB387;
485
-  width: 100%;
486
-  text-align: left;
487
-  padding: 5px 5px 5px 10px;
488
-  border-color: #FF5D00;
489
-  border-style: none none solid none;
490
-  border-width: 1px;
491
-}
492
-
493
-article > div.table_row > border_right {
494
-  border-right-style: solid;
495
-  border-right-color: #FF5D00;
496
-  border-right-width: 1px;
497
-}
498
-
499
-article > div.table_row > div.sheet_time,
500
-article > div.table_row > div.sheet_user1,
501
-article > div.table_row > div.sheet_user2,
502
-article > div.table_row > div.sheet_user3,
503
-article > div.table_row > div.sheet_user4 {
504
-  width: 125px;
505
-  text-align: left;
506
-  padding: 5px 5px 5px 10px;
507
-}
508
-
509
-article > div.table_row > div.sheet_user1:hover,
510
-article > div.table_row > div.sheet_user2:hover,
511
-article > div.table_row > div.sheet_user3:hover,
512
-article > div.table_row > div.sheet_user4:hover {
513
-  cursor: pointer;
514
-}
515
-
516
-article > div.table_row > div.sheet_user1 {
517
-  text-align: center;
518
-  width: 780px;
519
-}
520
-
521
-article > div.table_row > div.sheet_user2 {
522
-  text-align: center;
523
-  width: 388px;
524
-}
525
-
526
-article > div.table_row > div.sheet_user3 {
527
-  text-align: center;
528
-  width: 257px;
529
-}
530
-
531
-article > div.table_row > div.sheet_user4 {
532
-  text-align: center;
533
-  width: 192px;
534
-}

Loading…
Cancel
Save