Spaces:
Running
Running
Add 1 files
Browse files- index.html +486 -715
index.html
CHANGED
|
@@ -3,54 +3,62 @@
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<title>Compte rendu de réunion</title>
|
| 7 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
<script>
|
| 10 |
tailwind.config = {
|
| 11 |
-
darkMode: 'class',
|
| 12 |
theme: {
|
| 13 |
extend: {
|
| 14 |
colors: {
|
| 15 |
-
dark: {
|
| 16 |
-
50: '#f8fafc',
|
| 17 |
-
100: '#0a0a0a',
|
| 18 |
-
200: '#1a1a1a',
|
| 19 |
-
300: '#2a2a2a',
|
| 20 |
-
400: '#3a3a3a',
|
| 21 |
-
500: '#4a4a4a',
|
| 22 |
-
600: '#5a5a5a',
|
| 23 |
-
700: '#6b7280',
|
| 24 |
-
800: '#1f2937',
|
| 25 |
-
900: '#111827',
|
| 26 |
-
},
|
| 27 |
primary: {
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
success: {
|
| 34 |
-
500: '#22c55e',
|
| 35 |
-
600: '#16a34a',
|
| 36 |
-
},
|
| 37 |
-
danger: {
|
| 38 |
500: '#ef4444',
|
| 39 |
600: '#dc2626',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
}
|
| 41 |
},
|
|
|
|
|
|
|
|
|
|
| 42 |
boxShadow: {
|
| 43 |
-
'
|
| 44 |
-
'glow
|
| 45 |
},
|
| 46 |
animation: {
|
| 47 |
-
'
|
| 48 |
-
'
|
| 49 |
},
|
| 50 |
keyframes: {
|
| 51 |
-
|
| 52 |
-
'0%
|
| 53 |
-
'
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
}
|
| 55 |
}
|
| 56 |
}
|
|
@@ -58,529 +66,297 @@
|
|
| 58 |
}
|
| 59 |
</script>
|
| 60 |
<style>
|
| 61 |
-
@
|
| 62 |
-
from { opacity: 0; transform: translateY(10px); }
|
| 63 |
-
to { opacity: 1; transform: translateY(0); }
|
| 64 |
-
}
|
| 65 |
|
| 66 |
-
|
| 67 |
-
|
|
|
|
|
|
|
| 68 |
}
|
| 69 |
|
| 70 |
-
.
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
.file-upload input[type="file"] {
|
| 77 |
-
position: absolute;
|
| 78 |
-
left: 0;
|
| 79 |
-
top: 0;
|
| 80 |
-
opacity: 0;
|
| 81 |
-
width: 100%;
|
| 82 |
-
height: 100%;
|
| 83 |
-
cursor: pointer;
|
| 84 |
}
|
| 85 |
|
| 86 |
-
.
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
color: #a1a1aa;
|
| 90 |
}
|
| 91 |
|
| 92 |
-
.
|
| 93 |
transition: all 0.2s ease;
|
|
|
|
| 94 |
}
|
| 95 |
|
| 96 |
-
.
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
box-shadow: 0 0 5px 1px rgba(234, 88, 12, 0.3);
|
| 100 |
-
}
|
| 101 |
-
|
| 102 |
-
.custom-scrollbar::-webkit-scrollbar {
|
| 103 |
-
width: 6px;
|
| 104 |
-
height: 6px;
|
| 105 |
-
}
|
| 106 |
-
|
| 107 |
-
.custom-scrollbar::-webkit-scrollbar-track {
|
| 108 |
-
background: #1a1a1a;
|
| 109 |
-
border-radius: 10px;
|
| 110 |
}
|
| 111 |
|
| 112 |
-
.
|
| 113 |
-
background: #
|
| 114 |
-
border-radius: 10px;
|
| 115 |
-
}
|
| 116 |
-
|
| 117 |
-
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
|
| 118 |
-
background: #4a4a4a;
|
| 119 |
-
}
|
| 120 |
-
|
| 121 |
-
.tag-input {
|
| 122 |
-
display: flex;
|
| 123 |
-
flex-wrap: wrap;
|
| 124 |
-
align-items: center;
|
| 125 |
-
min-height: 48px;
|
| 126 |
-
padding: 0 8px;
|
| 127 |
-
border: 1px solid #3a3a3a;
|
| 128 |
-
border-radius: 0.5rem;
|
| 129 |
-
background-color: #1a1a1a;
|
| 130 |
-
}
|
| 131 |
-
|
| 132 |
-
.tag-input input {
|
| 133 |
-
flex: 1;
|
| 134 |
-
border: none;
|
| 135 |
-
height: 46px;
|
| 136 |
-
font-size: 14px;
|
| 137 |
-
background: transparent;
|
| 138 |
color: white;
|
|
|
|
| 139 |
}
|
| 140 |
|
| 141 |
-
.
|
| 142 |
-
|
|
|
|
| 143 |
}
|
| 144 |
|
| 145 |
-
.
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
margin: 8px 0 0 0;
|
| 150 |
}
|
| 151 |
|
| 152 |
-
.
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
display: flex;
|
| 156 |
-
align-items: center;
|
| 157 |
-
justify-content: center;
|
| 158 |
-
color: #fff;
|
| 159 |
-
padding: 0 8px;
|
| 160 |
-
font-size: 14px;
|
| 161 |
-
list-style: none;
|
| 162 |
-
border-radius: 6px;
|
| 163 |
-
margin: 0 8px 8px 0;
|
| 164 |
-
background: #ea580c;
|
| 165 |
}
|
| 166 |
|
| 167 |
-
.tag
|
| 168 |
-
|
|
|
|
|
|
|
| 169 |
}
|
| 170 |
|
| 171 |
-
.tag
|
| 172 |
-
|
| 173 |
-
width: 16px;
|
| 174 |
-
height: 16px;
|
| 175 |
-
line-height: 16px;
|
| 176 |
-
text-align: center;
|
| 177 |
-
font-size: 14px;
|
| 178 |
-
margin-left: 8px;
|
| 179 |
-
color: #fff;
|
| 180 |
-
border-radius: 50%;
|
| 181 |
-
background: #c2410c;
|
| 182 |
-
cursor: pointer;
|
| 183 |
}
|
| 184 |
|
| 185 |
.editor-toolbar {
|
| 186 |
-
border-top-left-radius:
|
| 187 |
-
border-top-right-radius:
|
| 188 |
border-bottom: none;
|
| 189 |
-
background-color: #2a2a2a;
|
| 190 |
}
|
| 191 |
|
| 192 |
.editor-content {
|
| 193 |
-
border-bottom-left-radius:
|
| 194 |
-
border-bottom-right-radius:
|
| 195 |
min-height: 200px;
|
| 196 |
-
background
|
| 197 |
-
color:
|
| 198 |
-
padding:
|
|
|
|
| 199 |
}
|
| 200 |
|
| 201 |
.editor-content:focus {
|
| 202 |
outline: none;
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
.progress-bar {
|
| 206 |
-
height: 4px;
|
| 207 |
-
background-color: #ea580c;
|
| 208 |
-
width: 0%;
|
| 209 |
-
transition: width 0.3s ease;
|
| 210 |
-
}
|
| 211 |
-
|
| 212 |
-
.toast {
|
| 213 |
-
position: fixed;
|
| 214 |
-
bottom: 20px;
|
| 215 |
-
right: 20px;
|
| 216 |
-
padding: 16px;
|
| 217 |
-
border-radius: 8px;
|
| 218 |
-
color: white;
|
| 219 |
-
z-index: 1000;
|
| 220 |
-
display: flex;
|
| 221 |
-
align-items: center;
|
| 222 |
-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
| 223 |
-
transform: translateY(100px);
|
| 224 |
-
opacity: 0;
|
| 225 |
-
transition: all 0.3s ease;
|
| 226 |
-
}
|
| 227 |
-
|
| 228 |
-
.toast.show {
|
| 229 |
-
transform: translateY(0);
|
| 230 |
-
opacity: 1;
|
| 231 |
-
}
|
| 232 |
-
|
| 233 |
-
.toast.success {
|
| 234 |
-
background-color: #22c55e;
|
| 235 |
-
}
|
| 236 |
-
|
| 237 |
-
.toast.error {
|
| 238 |
-
background-color: #ef4444;
|
| 239 |
}
|
| 240 |
|
| 241 |
.dropzone {
|
| 242 |
-
border: 2px dashed #
|
| 243 |
-
border-radius:
|
| 244 |
-
padding:
|
| 245 |
text-align: center;
|
| 246 |
transition: all 0.3s ease;
|
| 247 |
-
background
|
| 248 |
cursor: pointer;
|
| 249 |
}
|
| 250 |
|
| 251 |
.dropzone.active {
|
| 252 |
-
border-color: #
|
| 253 |
-
background
|
| 254 |
-
}
|
| 255 |
-
|
| 256 |
-
.dropzone p {
|
| 257 |
-
margin-bottom: 1rem;
|
| 258 |
-
}
|
| 259 |
-
|
| 260 |
-
.dropzone-icon {
|
| 261 |
-
font-size: 2rem;
|
| 262 |
-
color: #3a3a3a;
|
| 263 |
-
margin-bottom: 1rem;
|
| 264 |
-
}
|
| 265 |
-
|
| 266 |
-
.dropzone.active .dropzone-icon {
|
| 267 |
-
color: #ea580c;
|
| 268 |
-
}
|
| 269 |
-
|
| 270 |
-
.participant-input {
|
| 271 |
-
display: flex;
|
| 272 |
-
gap: 10px;
|
| 273 |
-
margin-top: 10px;
|
| 274 |
-
}
|
| 275 |
-
|
| 276 |
-
.participant-input input {
|
| 277 |
-
flex: 1;
|
| 278 |
-
background-color: #1a1a1a;
|
| 279 |
-
border: 1px solid #3a3a3a;
|
| 280 |
-
border-radius: 0.5rem;
|
| 281 |
-
padding: 0.5rem 1rem;
|
| 282 |
-
color: white;
|
| 283 |
-
}
|
| 284 |
-
|
| 285 |
-
.participant-input input:focus {
|
| 286 |
-
outline: none;
|
| 287 |
-
border-color: #ea580c;
|
| 288 |
-
box-shadow: 0 0 0 1px #ea580c;
|
| 289 |
-
}
|
| 290 |
-
|
| 291 |
-
.participant-input button {
|
| 292 |
-
background-color: #ea580c;
|
| 293 |
-
color: white;
|
| 294 |
-
border: none;
|
| 295 |
-
border-radius: 0.5rem;
|
| 296 |
-
padding: 0.5rem 1rem;
|
| 297 |
-
cursor: pointer;
|
| 298 |
-
transition: background-color 0.2s;
|
| 299 |
-
}
|
| 300 |
-
|
| 301 |
-
.participant-input button:hover {
|
| 302 |
-
background-color: #c2410c;
|
| 303 |
-
}
|
| 304 |
-
|
| 305 |
-
.header-gradient {
|
| 306 |
-
background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
|
| 307 |
-
}
|
| 308 |
-
|
| 309 |
-
.btn-primary {
|
| 310 |
-
background-color: #ea580c;
|
| 311 |
-
color: white;
|
| 312 |
-
transition: all 0.2s;
|
| 313 |
-
}
|
| 314 |
-
|
| 315 |
-
.btn-primary:hover {
|
| 316 |
-
background-color: #c2410c;
|
| 317 |
-
box-shadow: 0 0 10px 2px rgba(234, 88, 12, 0.5);
|
| 318 |
-
}
|
| 319 |
-
|
| 320 |
-
.btn-secondary {
|
| 321 |
-
background-color: #2a2a2a;
|
| 322 |
-
color: white;
|
| 323 |
-
transition: all 0.2s;
|
| 324 |
-
}
|
| 325 |
-
|
| 326 |
-
.btn-secondary:hover {
|
| 327 |
-
background-color: #3a3a3a;
|
| 328 |
-
}
|
| 329 |
-
|
| 330 |
-
.glass-effect {
|
| 331 |
-
background: rgba(26, 26, 26, 0.7);
|
| 332 |
-
backdrop-filter: blur(10px);
|
| 333 |
-
-webkit-backdrop-filter: blur(10px);
|
| 334 |
-
border: 1px solid rgba(58, 58, 58, 0.3);
|
| 335 |
-
}
|
| 336 |
-
|
| 337 |
-
.input-focus {
|
| 338 |
-
transition: all 0.3s;
|
| 339 |
-
}
|
| 340 |
-
|
| 341 |
-
.input-focus:focus {
|
| 342 |
-
border-color: #ea580c;
|
| 343 |
-
box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.2);
|
| 344 |
-
}
|
| 345 |
-
|
| 346 |
-
.section-card {
|
| 347 |
-
background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
|
| 348 |
-
border-radius: 12px;
|
| 349 |
-
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
| 350 |
-
transition: transform 0.3s, box-shadow 0.3s;
|
| 351 |
-
}
|
| 352 |
-
|
| 353 |
-
.section-card:hover {
|
| 354 |
-
transform: translateY(-2px);
|
| 355 |
-
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
|
| 356 |
}
|
| 357 |
|
| 358 |
.radio-card {
|
| 359 |
-
border:
|
| 360 |
border-radius: 8px;
|
| 361 |
-
padding:
|
| 362 |
cursor: pointer;
|
| 363 |
-
transition: all 0.
|
| 364 |
}
|
| 365 |
|
| 366 |
.radio-card:hover {
|
| 367 |
-
border-color: #
|
| 368 |
-
background-color: #2a2a2a;
|
| 369 |
}
|
| 370 |
|
| 371 |
.radio-card.selected {
|
| 372 |
-
border-color: #
|
| 373 |
-
background
|
| 374 |
}
|
| 375 |
|
| 376 |
-
.
|
| 377 |
-
background:
|
| 378 |
-
border
|
| 379 |
-
|
| 380 |
-
margin-bottom: 8px;
|
| 381 |
-
transition: all 0.2s;
|
| 382 |
-
}
|
| 383 |
-
|
| 384 |
-
.key-point-item:hover {
|
| 385 |
-
transform: translateX(5px);
|
| 386 |
}
|
| 387 |
|
| 388 |
-
.
|
| 389 |
-
|
| 390 |
-
bottom: 30px;
|
| 391 |
-
right: 30px;
|
| 392 |
-
width: 60px;
|
| 393 |
-
height: 60px;
|
| 394 |
-
border-radius: 50%;
|
| 395 |
-
background: #ea580c;
|
| 396 |
-
color: white;
|
| 397 |
-
display: flex;
|
| 398 |
-
align-items: center;
|
| 399 |
-
justify-content: center;
|
| 400 |
-
font-size: 24px;
|
| 401 |
-
box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
|
| 402 |
-
cursor: pointer;
|
| 403 |
-
z-index: 100;
|
| 404 |
-
transition: all 0.3s;
|
| 405 |
}
|
| 406 |
|
| 407 |
-
.
|
| 408 |
-
|
| 409 |
-
|
|
|
|
|
|
|
| 410 |
}
|
| 411 |
|
| 412 |
-
.
|
| 413 |
-
|
| 414 |
-
|
| 415 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 416 |
display: flex;
|
| 417 |
align-items: center;
|
| 418 |
-
|
| 419 |
-
|
| 420 |
-
background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
|
| 421 |
}
|
| 422 |
|
| 423 |
-
.
|
| 424 |
-
|
| 425 |
-
background: linear-gradient(90deg, transparent 0%, #3a3a3a 50%, transparent 100%);
|
| 426 |
-
margin: 20px 0;
|
| 427 |
}
|
| 428 |
|
| 429 |
-
.
|
| 430 |
-
|
| 431 |
-
align-items: center;
|
| 432 |
-
padding: 4px 8px;
|
| 433 |
-
border-radius: 9999px;
|
| 434 |
-
font-size: 12px;
|
| 435 |
-
font-weight: 600;
|
| 436 |
}
|
| 437 |
|
| 438 |
-
.
|
| 439 |
-
background
|
| 440 |
-
|
| 441 |
}
|
| 442 |
|
| 443 |
-
.
|
| 444 |
-
|
| 445 |
-
color: #6b7280;
|
| 446 |
}
|
| 447 |
|
| 448 |
-
|
| 449 |
-
|
|
|
|
| 450 |
}
|
| 451 |
|
| 452 |
-
|
| 453 |
-
|
| 454 |
-
opacity: 1;
|
| 455 |
-
transform: translateY(0);
|
| 456 |
}
|
| 457 |
|
| 458 |
-
|
| 459 |
-
|
| 460 |
-
|
| 461 |
-
position: absolute;
|
| 462 |
-
bottom: 100%;
|
| 463 |
-
left: 50%;
|
| 464 |
-
transform: translateX(-50%) translateY(5px);
|
| 465 |
-
background-color: #2a2a2a;
|
| 466 |
-
color: white;
|
| 467 |
-
text-align: center;
|
| 468 |
-
padding: 5px 10px;
|
| 469 |
-
border-radius: 6px;
|
| 470 |
-
font-size: 12px;
|
| 471 |
-
white-space: nowrap;
|
| 472 |
-
z-index: 1;
|
| 473 |
-
transition: all 0.3s;
|
| 474 |
-
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
| 475 |
}
|
| 476 |
|
| 477 |
-
|
| 478 |
-
|
| 479 |
-
position: absolute;
|
| 480 |
-
top: 100%;
|
| 481 |
-
left: 50%;
|
| 482 |
-
margin-left: -5px;
|
| 483 |
-
border-width: 5px;
|
| 484 |
-
border-style: solid;
|
| 485 |
-
border-color: #2a2a2a transparent transparent transparent;
|
| 486 |
}
|
| 487 |
</style>
|
| 488 |
</head>
|
| 489 |
-
<body class="bg-
|
| 490 |
-
<!--
|
| 491 |
-
<
|
| 492 |
-
<
|
| 493 |
-
|
| 494 |
-
|
| 495 |
-
|
| 496 |
-
|
| 497 |
-
|
| 498 |
-
<i class="fas fa-paper-plane"></i>
|
| 499 |
-
</div>
|
| 500 |
-
|
| 501 |
-
<div class="container mx-auto px-4 py-8 max-w-6xl">
|
| 502 |
-
<header class="mb-8 flex justify-between items-center glass-effect p-6 rounded-2xl shadow-lg border border-dark-400">
|
| 503 |
-
<div>
|
| 504 |
-
<h1 class="text-3xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-primary-500 to-yellow-500 mb-1">
|
| 505 |
-
<i class="fas fa-file-contract mr-2"></i>Compte rendu de réunion
|
| 506 |
-
</h1>
|
| 507 |
-
<p class="text-dark-500 text-sm">Créez et partagez vos comptes rendus professionnels</p>
|
| 508 |
</div>
|
| 509 |
<div class="flex items-center space-x-4">
|
| 510 |
-
<button id="dark-mode-toggle" class="
|
| 511 |
-
<i class="fas fa-moon
|
| 512 |
-
<span class="tooltip-text">Basculer mode sombre/clair</span>
|
| 513 |
</button>
|
| 514 |
-
<div class="
|
| 515 |
JD
|
| 516 |
</div>
|
| 517 |
</div>
|
| 518 |
-
</
|
| 519 |
-
|
| 520 |
-
|
| 521 |
-
|
| 522 |
-
|
| 523 |
-
|
| 524 |
-
<
|
| 525 |
-
|
| 526 |
-
<div class="
|
| 527 |
-
<
|
| 528 |
-
<i class="fas fa-
|
| 529 |
-
|
| 530 |
-
</
|
| 531 |
-
<input
|
| 532 |
-
type="text"
|
| 533 |
-
id="meeting-title"
|
| 534 |
-
class="w-full bg-dark-300 border border-dark-400 rounded-lg px-4 py-3 input-focus"
|
| 535 |
-
placeholder="Ex: Revue trimestrielle Q3 2023"
|
| 536 |
-
>
|
| 537 |
</div>
|
| 538 |
|
| 539 |
-
<
|
| 540 |
-
|
| 541 |
-
|
| 542 |
-
|
| 543 |
-
|
| 544 |
-
</
|
| 545 |
-
<
|
| 546 |
-
type="date"
|
| 547 |
-
id="meeting-date"
|
| 548 |
-
class="w-full bg-dark-300 border border-dark-400 rounded-lg px-4 py-3 input-focus"
|
| 549 |
-
>
|
| 550 |
</div>
|
| 551 |
-
<div class="
|
| 552 |
-
<
|
| 553 |
-
|
| 554 |
-
|
| 555 |
-
|
| 556 |
-
|
| 557 |
-
|
| 558 |
-
>
|
| 559 |
-
|
| 560 |
-
|
| 561 |
-
|
| 562 |
-
<
|
| 563 |
-
<
|
| 564 |
-
|
| 565 |
-
|
| 566 |
-
<
|
| 567 |
-
<
|
| 568 |
-
|
| 569 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 570 |
</div>
|
| 571 |
</div>
|
| 572 |
|
| 573 |
<!-- Type de réunion -->
|
| 574 |
-
<div class="
|
| 575 |
-
<label class="block text-sm font-medium mb-4 flex items-center">
|
| 576 |
-
<i class="fas fa-
|
| 577 |
</label>
|
| 578 |
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3">
|
| 579 |
<label class="radio-card">
|
| 580 |
<input type="radio" name="meeting-type" class="hidden" value="strategique" checked>
|
| 581 |
<div class="flex items-center">
|
| 582 |
-
<div class="w-5 h-5 rounded-full border-2 border-
|
| 583 |
-
<div class="w-3 h-3 rounded-full bg-
|
| 584 |
</div>
|
| 585 |
<span>Stratégique</span>
|
| 586 |
</div>
|
|
@@ -588,8 +364,8 @@
|
|
| 588 |
<label class="radio-card">
|
| 589 |
<input type="radio" name="meeting-type" class="hidden" value="operationnel">
|
| 590 |
<div class="flex items-center">
|
| 591 |
-
<div class="w-5 h-5 rounded-full border-2 border-
|
| 592 |
-
<div class="w-3 h-3 rounded-full bg-
|
| 593 |
</div>
|
| 594 |
<span>Opérationnel</span>
|
| 595 |
</div>
|
|
@@ -597,8 +373,8 @@
|
|
| 597 |
<label class="radio-card">
|
| 598 |
<input type="radio" name="meeting-type" class="hidden" value="projet">
|
| 599 |
<div class="flex items-center">
|
| 600 |
-
<div class="w-5 h-5 rounded-full border-2 border-
|
| 601 |
-
<div class="w-3 h-3 rounded-full bg-
|
| 602 |
</div>
|
| 603 |
<span>Projet</span>
|
| 604 |
</div>
|
|
@@ -606,8 +382,8 @@
|
|
| 606 |
<label class="radio-card">
|
| 607 |
<input type="radio" name="meeting-type" class="hidden" value="client">
|
| 608 |
<div class="flex items-center">
|
| 609 |
-
<div class="w-5 h-5 rounded-full border-2 border-
|
| 610 |
-
<div class="w-3 h-3 rounded-full bg-
|
| 611 |
</div>
|
| 612 |
<span>Client</span>
|
| 613 |
</div>
|
|
@@ -615,8 +391,8 @@
|
|
| 615 |
<label class="radio-card">
|
| 616 |
<input type="radio" name="meeting-type" class="hidden" value="equipe">
|
| 617 |
<div class="flex items-center">
|
| 618 |
-
<div class="w-5 h-5 rounded-full border-2 border-
|
| 619 |
-
<div class="w-3 h-3 rounded-full bg-
|
| 620 |
</div>
|
| 621 |
<span>Équipe</span>
|
| 622 |
</div>
|
|
@@ -625,73 +401,65 @@
|
|
| 625 |
</div>
|
| 626 |
|
| 627 |
<!-- Contenu du compte rendu -->
|
| 628 |
-
<div class="
|
| 629 |
-
<label class="block text-sm font-medium mb-2 flex items-center">
|
| 630 |
-
<i class="fas fa-align-left
|
| 631 |
-
<span class="
|
| 632 |
</label>
|
| 633 |
-
<div class="editor-toolbar border border-
|
| 634 |
-
<button class="p-2 hover:bg-
|
| 635 |
<i class="fas fa-bold"></i>
|
| 636 |
-
<span class="tooltip-text">Gras</span>
|
| 637 |
</button>
|
| 638 |
-
<button class="p-2 hover:bg-
|
| 639 |
<i class="fas fa-italic"></i>
|
| 640 |
-
<span class="tooltip-text">Italique</span>
|
| 641 |
</button>
|
| 642 |
-
<button class="p-2 hover:bg-
|
| 643 |
<i class="fas fa-underline"></i>
|
| 644 |
-
<span class="tooltip-text">Souligné</span>
|
| 645 |
</button>
|
| 646 |
-
<div class="w-px h-6 bg-
|
| 647 |
-
<button class="p-2 hover:bg-
|
| 648 |
<i class="fas fa-list-ul"></i>
|
| 649 |
-
<span class="tooltip-text">Liste à puces</span>
|
| 650 |
</button>
|
| 651 |
-
<button class="p-2 hover:bg-
|
| 652 |
<i class="fas fa-list-ol"></i>
|
| 653 |
-
<span class="tooltip-text">Liste numérotée</span>
|
| 654 |
</button>
|
| 655 |
-
<div class="w-px h-6 bg-
|
| 656 |
-
<button class="p-2 hover:bg-
|
| 657 |
<i class="fas fa-link"></i>
|
| 658 |
-
<span class="tooltip-text">Lien</span>
|
| 659 |
</button>
|
| 660 |
-
<button class="p-2 hover:bg-
|
| 661 |
<i class="fas fa-image"></i>
|
| 662 |
-
<span class="tooltip-text">Image</span>
|
| 663 |
</button>
|
| 664 |
-
<div class="w-px h-6 bg-
|
| 665 |
-
<button class="p-2 hover:bg-
|
| 666 |
<i class="fas fa-undo"></i>
|
| 667 |
-
<span class="tooltip-text">Annuler</span>
|
| 668 |
</button>
|
| 669 |
-
<button class="p-2 hover:bg-
|
| 670 |
<i class="fas fa-redo"></i>
|
| 671 |
-
<span class="tooltip-text">Rétablir</span>
|
| 672 |
</button>
|
| 673 |
</div>
|
| 674 |
<div
|
| 675 |
id="editor-content"
|
| 676 |
-
class="editor-content
|
| 677 |
contenteditable="true"
|
| 678 |
data-placeholder="Décrivez ici les points abordés, les décisions prises, les actions à mener..."
|
| 679 |
></div>
|
| 680 |
</div>
|
| 681 |
|
| 682 |
<!-- Points clés -->
|
| 683 |
-
<div class="
|
| 684 |
-
<label class="block text-sm font-medium mb-4 flex items-center">
|
| 685 |
-
<i class="fas fa-key
|
| 686 |
</label>
|
| 687 |
<div id="key-points-container">
|
| 688 |
<div class="flex mb-4">
|
| 689 |
<input
|
| 690 |
type="text"
|
| 691 |
-
|
|
|
|
| 692 |
placeholder="Ajouter un point clé"
|
| 693 |
>
|
| 694 |
-
<button class="bg-
|
| 695 |
<i class="fas fa-plus"></i>
|
| 696 |
</button>
|
| 697 |
</div>
|
|
@@ -701,52 +469,53 @@
|
|
| 701 |
</div>
|
| 702 |
</div>
|
| 703 |
|
| 704 |
-
<!--
|
| 705 |
-
<div class="
|
| 706 |
-
<label class="block text-sm font-medium mb-4 flex items-center">
|
| 707 |
-
<i class="fas fa-paperclip
|
| 708 |
-
<span class="
|
| 709 |
</label>
|
| 710 |
|
| 711 |
<!-- Zone de dépôt -->
|
| 712 |
<div id="dropzone" class="dropzone mb-4">
|
| 713 |
-
<div class="
|
| 714 |
-
<i class="fas fa-cloud-upload-alt"></i>
|
| 715 |
</div>
|
| 716 |
-
<p>Glissez-déposez vos fichiers ici
|
| 717 |
-
<
|
|
|
|
| 718 |
</div>
|
| 719 |
|
| 720 |
<div id="file-names" class="mt-3 grid grid-cols-1 md:grid-cols-2 gap-3"></div>
|
| 721 |
</div>
|
| 722 |
|
| 723 |
-
<!--
|
| 724 |
-
<div class="
|
| 725 |
<div class="flex justify-between items-center mb-4">
|
| 726 |
-
<label class="block text-sm font-medium flex items-center">
|
| 727 |
-
<i class="fas fa-users
|
| 728 |
-
<span class="
|
| 729 |
</label>
|
| 730 |
</div>
|
| 731 |
|
| 732 |
-
<div class="bg-
|
| 733 |
-
<!-- Liste des
|
| 734 |
<div class="mb-4">
|
| 735 |
-
<h3 class="text-sm font-medium
|
| 736 |
<div class="flex flex-wrap gap-2" id="participants-list">
|
| 737 |
-
<label class="
|
| 738 |
-
<input type="checkbox" class="mr-2 rounded text-
|
| 739 |
-
<i class="fas fa-user-circle
|
| 740 |
Christophe Girard (christophe.girard@gmail.com)
|
| 741 |
</label>
|
| 742 |
-
<label class="
|
| 743 |
-
<input type="checkbox" class="mr-2 rounded text-
|
| 744 |
-
<i class="fas fa-user-circle
|
| 745 |
Nathalie Duval (okckool@yahoo.fr)
|
| 746 |
</label>
|
| 747 |
-
<label class="
|
| 748 |
-
<input type="checkbox" class="mr-2 rounded text-
|
| 749 |
-
<i class="fas fa-users
|
| 750 |
Tous les participants
|
| 751 |
</label>
|
| 752 |
</div>
|
|
@@ -754,11 +523,21 @@
|
|
| 754 |
|
| 755 |
<!-- Ajout manuel de participant -->
|
| 756 |
<div class="mt-4">
|
| 757 |
-
<h3 class="text-sm font-medium
|
| 758 |
-
<div class="
|
| 759 |
-
<input
|
| 760 |
-
|
| 761 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 762 |
<i class="fas fa-plus mr-1"></i> Ajouter
|
| 763 |
</button>
|
| 764 |
</div>
|
|
@@ -767,60 +546,65 @@
|
|
| 767 |
</div>
|
| 768 |
|
| 769 |
<!-- Tags -->
|
| 770 |
-
<div class="
|
| 771 |
-
<label class="block text-sm font-medium mb-2 flex items-center">
|
| 772 |
-
<i class="fas fa-tags
|
| 773 |
</label>
|
| 774 |
-
<div class="
|
| 775 |
-
<
|
|
|
|
|
|
|
| 776 |
<input
|
| 777 |
type="text"
|
| 778 |
id="tag-input"
|
| 779 |
-
class="
|
| 780 |
placeholder="Ajouter un tag (appuyez sur Entrée)"
|
| 781 |
>
|
|
|
|
|
|
|
|
|
|
| 782 |
</div>
|
| 783 |
</div>
|
| 784 |
|
| 785 |
<!-- Confidentialité -->
|
| 786 |
-
<div class="
|
| 787 |
-
<label class="block text-sm font-medium mb-4 flex items-center">
|
| 788 |
-
<i class="fas fa-lock
|
| 789 |
</label>
|
| 790 |
<div class="grid grid-cols-1 sm:grid-cols-3 gap-3">
|
| 791 |
<label class="radio-card">
|
| 792 |
<input type="radio" name="confidentiality" class="hidden" value="public" checked>
|
| 793 |
<div class="flex items-center">
|
| 794 |
-
<div class="w-5 h-5 rounded-full border-2 border-
|
| 795 |
-
<div class="w-3 h-3 rounded-full bg-
|
| 796 |
</div>
|
| 797 |
<div>
|
| 798 |
<div class="font-medium">Public</div>
|
| 799 |
-
<div class="text-xs text-
|
| 800 |
</div>
|
| 801 |
</div>
|
| 802 |
</label>
|
| 803 |
<label class="radio-card">
|
| 804 |
<input type="radio" name="confidentiality" class="hidden" value="restricted">
|
| 805 |
<div class="flex items-center">
|
| 806 |
-
<div class="w-5 h-5 rounded-full border-2 border-
|
| 807 |
-
<div class="w-3 h-3 rounded-full bg-
|
| 808 |
</div>
|
| 809 |
<div>
|
| 810 |
<div class="font-medium">Restreint</div>
|
| 811 |
-
<div class="text-xs text-
|
| 812 |
</div>
|
| 813 |
</div>
|
| 814 |
</label>
|
| 815 |
<label class="radio-card">
|
| 816 |
<input type="radio" name="confidentiality" class="hidden" value="private">
|
| 817 |
<div class="flex items-center">
|
| 818 |
-
<div class="w-5 h-5 rounded-full border-2 border-
|
| 819 |
-
<div class="w-3 h-3 rounded-full bg-
|
| 820 |
</div>
|
| 821 |
<div>
|
| 822 |
<div class="font-medium">Privé</div>
|
| 823 |
-
<div class="text-xs text-
|
| 824 |
</div>
|
| 825 |
</div>
|
| 826 |
</label>
|
|
@@ -828,62 +612,76 @@
|
|
| 828 |
</div>
|
| 829 |
|
| 830 |
<!-- Boutons d'action -->
|
| 831 |
-
<div class="flex justify-between pt-6 border-t border-
|
| 832 |
-
<button id="save-draft-btn" class="btn-secondary font-medium py-3 px-8 rounded-lg flex items-center
|
| 833 |
<i class="fas fa-save mr-2"></i> Enregistrer brouillon
|
| 834 |
</button>
|
| 835 |
-
<div class="flex gap-4">
|
| 836 |
-
<button id="preview-btn" class="btn-secondary font-medium py-3 px-8 rounded-lg flex items-center
|
| 837 |
<i class="fas fa-eye mr-2"></i> Prévisualiser
|
| 838 |
</button>
|
| 839 |
-
<button id="send-btn" class="btn-primary font-medium py-3 px-8 rounded-lg flex items-center
|
| 840 |
<i class="fas fa-paper-plane mr-2"></i> Envoyer
|
| 841 |
</button>
|
| 842 |
</div>
|
| 843 |
</div>
|
| 844 |
</div>
|
| 845 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 846 |
</div>
|
| 847 |
|
| 848 |
<!-- Modal de confirmation -->
|
| 849 |
-
<div id="confirmation-modal" class="fixed inset-0
|
| 850 |
-
<div class="
|
|
|
|
| 851 |
<div class="flex justify-between items-center mb-6">
|
| 852 |
-
<h3 class="text-xl font-bold text-
|
| 853 |
-
<
|
|
|
|
|
|
|
|
|
|
| 854 |
</h3>
|
| 855 |
-
<button id="close-modal" class="text-
|
| 856 |
<i class="fas fa-times"></i>
|
| 857 |
</button>
|
| 858 |
</div>
|
| 859 |
-
<p class="mb-6">Votre compte rendu de réunion a été envoyé avec succès aux collaborateurs sélectionnés.</p>
|
| 860 |
-
<div class="flex justify-end space-x-
|
| 861 |
-
<button id="
|
| 862 |
-
<i class="fas fa-rocket mr-2"></i> Let's Go !
|
| 863 |
-
</button>
|
| 864 |
-
<button id="confirm-btn" class="btn-secondary font-medium py-2 px-6 rounded-lg transition-colors">
|
| 865 |
Fermer
|
| 866 |
</button>
|
|
|
|
|
|
|
|
|
|
| 867 |
</div>
|
| 868 |
</div>
|
| 869 |
</div>
|
| 870 |
|
| 871 |
<!-- Modal de prévisualisation -->
|
| 872 |
-
<div id="preview-modal" class="fixed inset-0
|
| 873 |
-
<div class="
|
|
|
|
| 874 |
<div class="flex justify-between items-center mb-6">
|
| 875 |
-
<h3 class="text-xl font-bold text-
|
| 876 |
-
<
|
|
|
|
|
|
|
|
|
|
| 877 |
</h3>
|
| 878 |
-
<button id="close-preview-modal" class="text-
|
| 879 |
<i class="fas fa-times"></i>
|
| 880 |
</button>
|
| 881 |
</div>
|
| 882 |
-
<div id="preview-content" class="bg-
|
| 883 |
<!-- Le contenu de la prévisualisation sera généré ici -->
|
| 884 |
</div>
|
| 885 |
<div class="flex justify-end mt-6">
|
| 886 |
-
<button id="close-preview-btn" class="btn-primary
|
| 887 |
Fermer
|
| 888 |
</button>
|
| 889 |
</div>
|
|
@@ -902,27 +700,19 @@
|
|
| 902 |
localStorage.setItem('darkMode', isDark);
|
| 903 |
|
| 904 |
if (isDark) {
|
| 905 |
-
darkModeToggle.innerHTML = '<i class="fas fa-sun
|
| 906 |
-
darkModeToggle.querySelector('.tooltip-text').textContent = 'Basculer en mode clair';
|
| 907 |
} else {
|
| 908 |
-
darkModeToggle.innerHTML = '<i class="fas fa-moon
|
| 909 |
-
darkModeToggle.querySelector('.tooltip-text').textContent = 'Basculer en mode sombre';
|
| 910 |
}
|
| 911 |
});
|
| 912 |
|
| 913 |
// Vérifier le mode au chargement
|
| 914 |
-
if (localStorage.getItem('darkMode') === 'true'
|
| 915 |
-
(!('darkMode' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
|
| 916 |
html.classList.add('dark');
|
| 917 |
-
darkModeToggle.innerHTML = '<i class="fas fa-sun
|
| 918 |
-
darkModeToggle.querySelector('.tooltip-text').textContent = 'Basculer en mode clair';
|
| 919 |
-
} else {
|
| 920 |
-
html.classList.remove('dark');
|
| 921 |
-
darkModeToggle.innerHTML = '<i class="fas fa-moon text-yellow-400"></i>';
|
| 922 |
-
darkModeToggle.querySelector('.tooltip-text').textContent = 'Basculer en mode sombre';
|
| 923 |
}
|
| 924 |
|
| 925 |
-
// Gestion
|
| 926 |
const dropzone = document.getElementById('dropzone');
|
| 927 |
const fileNamesContainer = document.getElementById('file-names');
|
| 928 |
const files = [];
|
|
@@ -955,7 +745,6 @@
|
|
| 955 |
|
| 956 |
dropzone.addEventListener('drop', handleDrop, false);
|
| 957 |
dropzone.addEventListener('click', () => {
|
| 958 |
-
// Créer un input file caché pour le clic
|
| 959 |
const input = document.createElement('input');
|
| 960 |
input.type = 'file';
|
| 961 |
input.multiple = true;
|
|
@@ -966,12 +755,6 @@
|
|
| 966 |
input.click();
|
| 967 |
});
|
| 968 |
|
| 969 |
-
function handleDrop(e) {
|
| 970 |
-
const dt = e.dataTransfer;
|
| 971 |
-
const droppedFiles = dt.files;
|
| 972 |
-
handleFiles(droppedFiles);
|
| 973 |
-
}
|
| 974 |
-
|
| 975 |
function handleFiles(fileList) {
|
| 976 |
[...fileList].forEach(file => {
|
| 977 |
if (!files.some(f => f.name === file.name && f.size === file.size)) {
|
|
@@ -987,16 +770,16 @@
|
|
| 987 |
|
| 988 |
function addFileToUI(file) {
|
| 989 |
const fileElement = document.createElement('div');
|
| 990 |
-
fileElement.className = 'flex items-center justify-between bg-
|
| 991 |
fileElement.innerHTML = `
|
| 992 |
<div class="flex items-center">
|
| 993 |
<i class="fas ${getFileIconClass(file.name)} mr-3 text-lg"></i>
|
| 994 |
<div>
|
| 995 |
<div class="text-sm font-medium truncate max-w-xs">${file.name}</div>
|
| 996 |
-
<div class="text-xs text-
|
| 997 |
</div>
|
| 998 |
</div>
|
| 999 |
-
<button class="text-red-400 hover:text-red-
|
| 1000 |
<i class="fas fa-trash"></i>
|
| 1001 |
</button>
|
| 1002 |
`;
|
|
@@ -1018,12 +801,12 @@
|
|
| 1018 |
|
| 1019 |
function getFileIconClass(filename) {
|
| 1020 |
const ext = filename.split('.').pop().toLowerCase();
|
| 1021 |
-
if (['doc', 'docx'].includes(ext)) return 'fa-file-word text-blue-
|
| 1022 |
-
if (ext === 'pdf') return 'fa-file-pdf text-red-
|
| 1023 |
-
if (['jpg', 'jpeg', 'png', 'gif', 'svg'].includes(ext)) return 'fa-file-image text-green-
|
| 1024 |
-
if (ext === 'txt') return 'fa-file-alt text-yellow-
|
| 1025 |
-
if (['xlsx', 'xls'].includes(ext)) return 'fa-file-excel text-green-
|
| 1026 |
-
return 'fa-file text-gray-
|
| 1027 |
}
|
| 1028 |
|
| 1029 |
function formatFileSize(bytes) {
|
|
@@ -1036,45 +819,41 @@
|
|
| 1036 |
|
| 1037 |
// Gestion des participants
|
| 1038 |
const allParticipantsCheckbox = document.querySelector('input[name="all-participants"]');
|
| 1039 |
-
const individualCheckboxes = document.querySelectorAll('.
|
| 1040 |
const participantsList = document.getElementById('participants-list');
|
| 1041 |
const addParticipantBtn = document.getElementById('add-participant-btn');
|
| 1042 |
const participantNameInput = document.getElementById('participant-name');
|
| 1043 |
const participantEmailInput = document.getElementById('participant-email');
|
| 1044 |
|
| 1045 |
-
// Gestion de la case "Tous les participants"
|
| 1046 |
allParticipantsCheckbox.addEventListener('change', function() {
|
| 1047 |
if (this.checked) {
|
| 1048 |
individualCheckboxes.forEach(checkbox => {
|
| 1049 |
checkbox.checked = true;
|
| 1050 |
checkbox.disabled = true;
|
| 1051 |
-
checkbox.closest('.
|
| 1052 |
});
|
| 1053 |
} else {
|
| 1054 |
individualCheckboxes.forEach(checkbox => {
|
| 1055 |
checkbox.disabled = false;
|
| 1056 |
-
checkbox.closest('.
|
| 1057 |
});
|
| 1058 |
}
|
| 1059 |
updateProgressBar();
|
| 1060 |
});
|
| 1061 |
|
| 1062 |
-
// Gestion des cases individuelles
|
| 1063 |
individualCheckboxes.forEach(checkbox => {
|
| 1064 |
checkbox.addEventListener('change', function() {
|
| 1065 |
-
// Si on décoche une case individuelle, décocher "Tous"
|
| 1066 |
if (!this.checked && allParticipantsCheckbox.checked) {
|
| 1067 |
allParticipantsCheckbox.checked = false;
|
| 1068 |
individualCheckboxes.forEach(cb => {
|
| 1069 |
cb.disabled = false;
|
| 1070 |
-
cb.closest('.
|
| 1071 |
});
|
| 1072 |
}
|
| 1073 |
updateProgressBar();
|
| 1074 |
});
|
| 1075 |
});
|
| 1076 |
|
| 1077 |
-
// Ajout manuel de participant
|
| 1078 |
addParticipantBtn.addEventListener('click', function() {
|
| 1079 |
const name = participantNameInput.value.trim();
|
| 1080 |
const email = participantEmailInput.value.trim();
|
|
@@ -1089,8 +868,7 @@
|
|
| 1089 |
return;
|
| 1090 |
}
|
| 1091 |
|
| 1092 |
-
|
| 1093 |
-
const existingParticipants = Array.from(participantsList.querySelectorAll('.collaborator-chip'));
|
| 1094 |
const alreadyExists = existingParticipants.some(participant => {
|
| 1095 |
const text = participant.textContent.trim();
|
| 1096 |
return text.includes(`${name} (${email})`);
|
|
@@ -1101,30 +879,27 @@
|
|
| 1101 |
return;
|
| 1102 |
}
|
| 1103 |
|
| 1104 |
-
// Ajouter le nouveau participant
|
| 1105 |
const newParticipant = document.createElement('label');
|
| 1106 |
-
newParticipant.className = '
|
| 1107 |
newParticipant.innerHTML = `
|
| 1108 |
-
<input type="checkbox" class="mr-2 rounded text-
|
| 1109 |
-
<i class="fas fa-user-circle
|
| 1110 |
${name} (${email})
|
| 1111 |
`;
|
| 1112 |
|
| 1113 |
participantsList.appendChild(newParticipant);
|
| 1114 |
|
| 1115 |
-
// Ajouter l'événement change
|
| 1116 |
newParticipant.querySelector('input').addEventListener('change', function() {
|
| 1117 |
if (!this.checked && allParticipantsCheckbox.checked) {
|
| 1118 |
allParticipantsCheckbox.checked = false;
|
| 1119 |
individualCheckboxes.forEach(cb => {
|
| 1120 |
cb.disabled = false;
|
| 1121 |
-
cb.closest('.
|
| 1122 |
});
|
| 1123 |
}
|
| 1124 |
updateProgressBar();
|
| 1125 |
});
|
| 1126 |
|
| 1127 |
-
// Réinitialiser les champs
|
| 1128 |
participantNameInput.value = '';
|
| 1129 |
participantEmailInput.value = '';
|
| 1130 |
|
|
@@ -1140,41 +915,50 @@
|
|
| 1140 |
// Gestion des tags
|
| 1141 |
const tagInput = document.getElementById('tag-input');
|
| 1142 |
const tagsContainer = document.getElementById('tags');
|
|
|
|
| 1143 |
const tags = ['Réunion', 'Compte rendu', 'Important'];
|
| 1144 |
|
| 1145 |
-
// Ajouter les tags initiaux
|
| 1146 |
tags.forEach(tag => {
|
| 1147 |
addTag(tag);
|
| 1148 |
});
|
| 1149 |
|
| 1150 |
tagInput.addEventListener('keyup', function(e) {
|
| 1151 |
if (e.key === 'Enter' && this.value.trim() !== '') {
|
| 1152 |
-
|
| 1153 |
-
|
| 1154 |
-
|
| 1155 |
-
|
| 1156 |
-
|
| 1157 |
-
|
| 1158 |
-
|
| 1159 |
-
|
| 1160 |
-
|
| 1161 |
}
|
| 1162 |
});
|
| 1163 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1164 |
function addTag(text) {
|
| 1165 |
-
const tag = document.createElement('
|
| 1166 |
-
tag.className = 'tag';
|
| 1167 |
tag.innerHTML = `
|
| 1168 |
-
<span
|
| 1169 |
-
<
|
| 1170 |
<i class="fas fa-times"></i>
|
| 1171 |
-
</
|
| 1172 |
`;
|
| 1173 |
|
| 1174 |
tagsContainer.appendChild(tag);
|
| 1175 |
|
| 1176 |
-
|
| 1177 |
-
tag.querySelector('.tag-close-icon').addEventListener('click', function() {
|
| 1178 |
tag.remove();
|
| 1179 |
const index = tags.indexOf(text);
|
| 1180 |
if (index !== -1) {
|
|
@@ -1210,7 +994,6 @@
|
|
| 1210 |
});
|
| 1211 |
});
|
| 1212 |
|
| 1213 |
-
// Placeholder pour l'éditeur
|
| 1214 |
editorContent.addEventListener('focus', function() {
|
| 1215 |
if (this.textContent.trim() === '') {
|
| 1216 |
this.setAttribute('data-placeholder', '');
|
|
@@ -1226,68 +1009,70 @@
|
|
| 1226 |
// Gestion des points clés
|
| 1227 |
const keyPointsContainer = document.getElementById('key-points-container');
|
| 1228 |
const keyPointsList = document.getElementById('key-points-list');
|
|
|
|
|
|
|
| 1229 |
|
| 1230 |
-
|
| 1231 |
-
|
| 1232 |
-
|
| 1233 |
-
|
| 1234 |
-
|
| 1235 |
-
|
| 1236 |
-
|
| 1237 |
-
pointElement.className = 'key-point-item flex items-center justify-between animate-fadeIn';
|
| 1238 |
-
pointElement.innerHTML = `
|
| 1239 |
-
<div class="flex items-center">
|
| 1240 |
-
<i class="fas fa-circle text-xs text-primary-500 mr-3"></i>
|
| 1241 |
-
<span>${pointText}</span>
|
| 1242 |
-
</div>
|
| 1243 |
-
<button class="text-red-400 hover:text-red-300 transition-colors">
|
| 1244 |
-
<i class="fas fa-times"></i>
|
| 1245 |
-
</button>
|
| 1246 |
-
`;
|
| 1247 |
-
|
| 1248 |
-
keyPointsList.appendChild(pointElement);
|
| 1249 |
-
input.value = '';
|
| 1250 |
-
|
| 1251 |
-
// Suppression de point clé
|
| 1252 |
-
pointElement.querySelector('button').addEventListener('click', function() {
|
| 1253 |
-
pointElement.remove();
|
| 1254 |
-
showToast('Point clé supprimé', 'success');
|
| 1255 |
-
});
|
| 1256 |
-
|
| 1257 |
-
showToast('Point clé ajouté', 'success');
|
| 1258 |
-
updateProgressBar();
|
| 1259 |
-
}
|
| 1260 |
}
|
| 1261 |
});
|
| 1262 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1263 |
// Barre de progression
|
| 1264 |
function updateProgressBar() {
|
| 1265 |
const progressBar = document.getElementById('progress-bar');
|
|
|
|
| 1266 |
const requiredFields = [
|
| 1267 |
document.getElementById('meeting-title').value.trim(),
|
| 1268 |
editorContent.textContent.trim(),
|
| 1269 |
files.length > 0,
|
| 1270 |
-
document.querySelectorAll('.
|
| 1271 |
];
|
| 1272 |
|
| 1273 |
const filledFields = requiredFields.filter(field => Boolean(field)).length;
|
| 1274 |
const progress = (filledFields / requiredFields.length) * 100;
|
| 1275 |
|
| 1276 |
progressBar.style.width = `${progress}%`;
|
| 1277 |
-
|
| 1278 |
-
if (progress === 100) {
|
| 1279 |
-
progressBar.classList.add('bg-success-500');
|
| 1280 |
-
document.getElementById('floating-action-btn').classList.remove('hidden');
|
| 1281 |
-
} else {
|
| 1282 |
-
progressBar.classList.remove('bg-success-500');
|
| 1283 |
-
document.getElementById('floating-action-btn').classList.add('hidden');
|
| 1284 |
-
}
|
| 1285 |
}
|
| 1286 |
|
| 1287 |
// Écouteurs pour mettre à jour la barre de progression
|
| 1288 |
document.getElementById('meeting-title').addEventListener('input', updateProgressBar);
|
| 1289 |
editorContent.addEventListener('input', updateProgressBar);
|
| 1290 |
-
document.querySelectorAll('.
|
| 1291 |
checkbox.addEventListener('change', updateProgressBar);
|
| 1292 |
});
|
| 1293 |
|
|
@@ -1301,34 +1086,26 @@
|
|
| 1301 |
toastMessage.textContent = message;
|
| 1302 |
|
| 1303 |
if (type === 'success') {
|
| 1304 |
-
toastIcon.className = 'fas fa-check-circle mr-
|
| 1305 |
} else {
|
| 1306 |
-
toastIcon.className = 'fas fa-exclamation-circle mr-
|
| 1307 |
}
|
| 1308 |
|
| 1309 |
toast.classList.remove('hidden');
|
| 1310 |
-
toast.classList.add('show');
|
| 1311 |
|
| 1312 |
setTimeout(() => {
|
| 1313 |
-
toast.classList.
|
| 1314 |
-
setTimeout(() => toast.classList.add('hidden'), 300);
|
| 1315 |
}, 3000);
|
| 1316 |
}
|
| 1317 |
|
| 1318 |
// Envoi du formulaire
|
| 1319 |
const sendBtn = document.getElementById('send-btn');
|
| 1320 |
-
const floatingActionBtn = document.getElementById('floating-action-btn');
|
| 1321 |
const confirmationModal = document.getElementById('confirmation-modal');
|
| 1322 |
const saveDraftBtn = document.getElementById('save-draft-btn');
|
| 1323 |
const previewBtn = document.getElementById('preview-btn');
|
| 1324 |
const previewModal = document.getElementById('preview-modal');
|
| 1325 |
const viewReportBtn = document.getElementById('view-report-btn');
|
| 1326 |
|
| 1327 |
-
// Bouton flottant
|
| 1328 |
-
floatingActionBtn.addEventListener('click', function() {
|
| 1329 |
-
sendBtn.click();
|
| 1330 |
-
});
|
| 1331 |
-
|
| 1332 |
sendBtn.addEventListener('click', function() {
|
| 1333 |
const title = document.getElementById('meeting-title').value.trim();
|
| 1334 |
|
|
@@ -1347,8 +1124,7 @@
|
|
| 1347 |
return;
|
| 1348 |
}
|
| 1349 |
|
| 1350 |
-
|
| 1351 |
-
const selectedCollaborators = document.querySelectorAll('.collaborator-chip input[type="checkbox"]:checked');
|
| 1352 |
|
| 1353 |
if (selectedCollaborators.length === 0) {
|
| 1354 |
showToast('Veuillez sélectionner au moins un participant', 'error');
|
|
@@ -1366,7 +1142,7 @@
|
|
| 1366 |
];
|
| 1367 |
} else {
|
| 1368 |
selectedCollaborators.forEach(checkbox => {
|
| 1369 |
-
const label = checkbox.closest('.
|
| 1370 |
const text = label.textContent.trim();
|
| 1371 |
const matches = text.match(/(.+?)\s\((.+?)\)/);
|
| 1372 |
if (matches && matches.length === 3) {
|
|
@@ -1383,10 +1159,10 @@
|
|
| 1383 |
});
|
| 1384 |
}
|
| 1385 |
|
| 1386 |
-
// Afficher la modal de confirmation
|
| 1387 |
const confirmationMessage = `Votre compte rendu sera envoyé à :<br><br>
|
| 1388 |
${recipients.map(r => `<div class="flex items-center mb-2">
|
| 1389 |
-
<i class="fas fa-user-circle
|
| 1390 |
<span>${r.name} <${r.email}></span>
|
| 1391 |
</div>`).join('')}`;
|
| 1392 |
|
|
@@ -1396,11 +1172,9 @@
|
|
| 1396 |
|
| 1397 |
// Bouton "Let's Go!" dans la modal
|
| 1398 |
viewReportBtn.addEventListener('click', function() {
|
| 1399 |
-
// Simuler l'envoi des emails
|
| 1400 |
showToast('Emails envoyés avec succès', 'success');
|
| 1401 |
confirmationModal.classList.add('hidden');
|
| 1402 |
|
| 1403 |
-
// Rediriger vers une page de confirmation ou autre action
|
| 1404 |
setTimeout(() => {
|
| 1405 |
alert('Les emails ont bien été envoyés aux participants !');
|
| 1406 |
}, 500);
|
|
@@ -1422,39 +1196,39 @@
|
|
| 1422 |
// Générer la prévisualisation
|
| 1423 |
const previewContent = document.getElementById('preview-content');
|
| 1424 |
previewContent.innerHTML = `
|
| 1425 |
-
<div class="mb-6 pb-6 border-b border-
|
| 1426 |
-
<h2 class="text-2xl font-bold text-
|
| 1427 |
-
<div class="flex flex-wrap gap-4 text-sm text-
|
| 1428 |
-
<div><i class="fas fa-calendar-day mr-1"></i> ${formatDate(date)}</div>
|
| 1429 |
-
<div><i class="fas fa-clock mr-1"></i> ${duration} minutes</div>
|
| 1430 |
-
<div><i class="fas fa-tag mr-1"></i> ${getMeetingTypeLabel(meetingType)}</div>
|
| 1431 |
</div>
|
| 1432 |
</div>
|
| 1433 |
|
| 1434 |
<div class="mb-6">
|
| 1435 |
-
<h3 class="text-lg font-semibold mb-3 text-
|
| 1436 |
<ul class="list-disc pl-5 space-y-2">
|
| 1437 |
-
${Array.from(keyPointsList.querySelectorAll('
|
| 1438 |
</ul>
|
| 1439 |
</div>
|
| 1440 |
|
| 1441 |
<div class="mb-6">
|
| 1442 |
-
<h3 class="text-lg font-semibold mb-3 text-
|
| 1443 |
-
<div class="prose
|
| 1444 |
${content}
|
| 1445 |
</div>
|
| 1446 |
</div>
|
| 1447 |
|
| 1448 |
${files.length > 0 ? `
|
| 1449 |
<div class="mb-6">
|
| 1450 |
-
<h3 class="text-lg font-semibold mb-3 text-
|
| 1451 |
<div class="grid grid-cols-1 md:grid-cols-2 gap-3">
|
| 1452 |
${files.map(file => `
|
| 1453 |
-
<div class="flex items-center bg-
|
| 1454 |
<i class="fas ${getFileIconClass(file.name)} mr-3 text-lg"></i>
|
| 1455 |
<div>
|
| 1456 |
<div class="text-sm font-medium truncate">${file.name}</div>
|
| 1457 |
-
<div class="text-xs text-
|
| 1458 |
</div>
|
| 1459 |
</div>
|
| 1460 |
`).join('')}
|
|
@@ -1462,26 +1236,26 @@
|
|
| 1462 |
</div>
|
| 1463 |
` : ''}
|
| 1464 |
|
| 1465 |
-
<div class="pt-6 border-t border-
|
| 1466 |
-
<h3 class="text-lg font-semibold mb-3 text-
|
| 1467 |
<div class="flex flex-wrap gap-2">
|
| 1468 |
-
${Array.from(document.querySelectorAll('.
|
| 1469 |
-
const label = el.closest('.
|
| 1470 |
const text = label.textContent.trim();
|
| 1471 |
const matches = text.match(/(.+?)\s\((.+?)\)/);
|
| 1472 |
if (matches && matches.length === 3) {
|
| 1473 |
-
return `<span class="flex items-center bg-
|
| 1474 |
-
<i class="fas fa-user-circle mr-2 text-
|
| 1475 |
${matches[1]} <${matches[2]}>
|
| 1476 |
</span>`;
|
| 1477 |
} else if (text.includes("Tous les participants")) {
|
| 1478 |
return `
|
| 1479 |
-
<span class="flex items-center bg-
|
| 1480 |
-
<i class="fas fa-user-circle mr-2 text-
|
| 1481 |
Christophe Girard <christophe.girard@gmail.com>
|
| 1482 |
</span>
|
| 1483 |
-
<span class="flex items-center bg-
|
| 1484 |
-
<i class="fas fa-user-circle mr-2 text-
|
| 1485 |
Nathalie Duval <okckool@yahoo.fr>
|
| 1486 |
</span>`;
|
| 1487 |
}
|
|
@@ -1515,23 +1289,20 @@
|
|
| 1515 |
radioCards.forEach(card => {
|
| 1516 |
const radioInput = card.querySelector('input[type="radio"]');
|
| 1517 |
|
| 1518 |
-
// Vérifier si l'input est sélectionné au chargement
|
| 1519 |
if (radioInput.checked) {
|
| 1520 |
card.classList.add('selected');
|
| 1521 |
-
card.querySelector('.bg-
|
| 1522 |
}
|
| 1523 |
|
| 1524 |
card.addEventListener('click', function() {
|
| 1525 |
-
// Désélectionner toutes les cartes du même groupe
|
| 1526 |
document.querySelectorAll(`.radio-card input[name="${radioInput.name}"]`).forEach(input => {
|
| 1527 |
input.closest('.radio-card').classList.remove('selected');
|
| 1528 |
-
input.closest('.radio-card').querySelector('.bg-
|
| 1529 |
});
|
| 1530 |
|
| 1531 |
-
// Sélectionner la carte cliquée
|
| 1532 |
radioInput.checked = true;
|
| 1533 |
card.classList.add('selected');
|
| 1534 |
-
card.querySelector('.bg-
|
| 1535 |
});
|
| 1536 |
});
|
| 1537 |
|
|
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Compte rendu de réunion | Elegant</title>
|
| 7 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
<script>
|
| 10 |
tailwind.config = {
|
|
|
|
| 11 |
theme: {
|
| 12 |
extend: {
|
| 13 |
colors: {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
primary: {
|
| 15 |
+
50: '#fef2f2',
|
| 16 |
+
100: '#fee2e2',
|
| 17 |
+
200: '#fecaca',
|
| 18 |
+
300: '#fca5a5',
|
| 19 |
+
400: '#f87171',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
500: '#ef4444',
|
| 21 |
600: '#dc2626',
|
| 22 |
+
700: '#b91c1c',
|
| 23 |
+
800: '#991b1b',
|
| 24 |
+
900: '#7f1d1d',
|
| 25 |
+
},
|
| 26 |
+
secondary: {
|
| 27 |
+
500: '#6366f1',
|
| 28 |
+
600: '#4f46e5',
|
| 29 |
+
},
|
| 30 |
+
dark: {
|
| 31 |
+
100: '#1a1a1a',
|
| 32 |
+
200: '#2a2a2a',
|
| 33 |
+
300: '#3a3a3a',
|
| 34 |
+
400: '#4a4a4a',
|
| 35 |
+
500: '#5a5a5a',
|
| 36 |
+
},
|
| 37 |
+
light: {
|
| 38 |
+
100: '#f8fafc',
|
| 39 |
+
200: '#f1f5f9',
|
| 40 |
+
300: '#e2e8f0',
|
| 41 |
}
|
| 42 |
},
|
| 43 |
+
fontFamily: {
|
| 44 |
+
sans: ['Inter', 'sans-serif'],
|
| 45 |
+
},
|
| 46 |
boxShadow: {
|
| 47 |
+
'soft': '0 4px 24px rgba(0, 0, 0, 0.08)',
|
| 48 |
+
'glow': '0 0 0 4px rgba(239, 68, 68, 0.2)',
|
| 49 |
},
|
| 50 |
animation: {
|
| 51 |
+
'fade-in': 'fadeIn 0.3s ease-out',
|
| 52 |
+
'slide-up': 'slideUp 0.3s ease-out',
|
| 53 |
},
|
| 54 |
keyframes: {
|
| 55 |
+
fadeIn: {
|
| 56 |
+
'0%': { opacity: '0' },
|
| 57 |
+
'100%': { opacity: '1' },
|
| 58 |
+
},
|
| 59 |
+
slideUp: {
|
| 60 |
+
'0%': { transform: 'translateY(20px)', opacity: '0' },
|
| 61 |
+
'100%': { transform: 'translateY(0)', opacity: '1' },
|
| 62 |
}
|
| 63 |
}
|
| 64 |
}
|
|
|
|
| 66 |
}
|
| 67 |
</script>
|
| 68 |
<style>
|
| 69 |
+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
|
|
|
|
|
|
|
|
|
| 70 |
|
| 71 |
+
body {
|
| 72 |
+
font-family: 'Inter', sans-serif;
|
| 73 |
+
background-color: #f8fafc;
|
| 74 |
+
color: #1a1a1a;
|
| 75 |
}
|
| 76 |
|
| 77 |
+
.card {
|
| 78 |
+
background: white;
|
| 79 |
+
border-radius: 12px;
|
| 80 |
+
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
|
| 81 |
+
transition: all 0.3s ease;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
}
|
| 83 |
|
| 84 |
+
.card:hover {
|
| 85 |
+
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
|
| 86 |
+
transform: translateY(-2px);
|
|
|
|
| 87 |
}
|
| 88 |
|
| 89 |
+
.input-field {
|
| 90 |
transition: all 0.2s ease;
|
| 91 |
+
border: 1px solid #e2e8f0;
|
| 92 |
}
|
| 93 |
|
| 94 |
+
.input-field:focus {
|
| 95 |
+
border-color: #ef4444;
|
| 96 |
+
box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 97 |
}
|
| 98 |
|
| 99 |
+
.btn-primary {
|
| 100 |
+
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 101 |
color: white;
|
| 102 |
+
transition: all 0.3s ease;
|
| 103 |
}
|
| 104 |
|
| 105 |
+
.btn-primary:hover {
|
| 106 |
+
transform: translateY(-2px);
|
| 107 |
+
box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
|
| 108 |
}
|
| 109 |
|
| 110 |
+
.btn-secondary {
|
| 111 |
+
background: white;
|
| 112 |
+
border: 1px solid #e2e8f0;
|
| 113 |
+
transition: all 0.3s ease;
|
|
|
|
| 114 |
}
|
| 115 |
|
| 116 |
+
.btn-secondary:hover {
|
| 117 |
+
border-color: #ef4444;
|
| 118 |
+
color: #ef4444;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 119 |
}
|
| 120 |
|
| 121 |
+
.tag {
|
| 122 |
+
background: #fee2e2;
|
| 123 |
+
color: #991b1b;
|
| 124 |
+
transition: all 0.2s ease;
|
| 125 |
}
|
| 126 |
|
| 127 |
+
.tag:hover {
|
| 128 |
+
background: #fecaca;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 129 |
}
|
| 130 |
|
| 131 |
.editor-toolbar {
|
| 132 |
+
border-top-left-radius: 8px;
|
| 133 |
+
border-top-right-radius: 8px;
|
| 134 |
border-bottom: none;
|
|
|
|
| 135 |
}
|
| 136 |
|
| 137 |
.editor-content {
|
| 138 |
+
border-bottom-left-radius: 8px;
|
| 139 |
+
border-bottom-right-radius: 8px;
|
| 140 |
min-height: 200px;
|
| 141 |
+
background: white;
|
| 142 |
+
color: #1a1a1a;
|
| 143 |
+
padding: 16px;
|
| 144 |
+
border: 1px solid #e2e8f0;
|
| 145 |
}
|
| 146 |
|
| 147 |
.editor-content:focus {
|
| 148 |
outline: none;
|
| 149 |
+
border-color: #ef4444;
|
| 150 |
+
box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 151 |
}
|
| 152 |
|
| 153 |
.dropzone {
|
| 154 |
+
border: 2px dashed #e2e8f0;
|
| 155 |
+
border-radius: 8px;
|
| 156 |
+
padding: 32px;
|
| 157 |
text-align: center;
|
| 158 |
transition: all 0.3s ease;
|
| 159 |
+
background: #f8fafc;
|
| 160 |
cursor: pointer;
|
| 161 |
}
|
| 162 |
|
| 163 |
.dropzone.active {
|
| 164 |
+
border-color: #ef4444;
|
| 165 |
+
background: #fee2e2;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 166 |
}
|
| 167 |
|
| 168 |
.radio-card {
|
| 169 |
+
border: 1px solid #e2e8f0;
|
| 170 |
border-radius: 8px;
|
| 171 |
+
padding: 16px;
|
| 172 |
cursor: pointer;
|
| 173 |
+
transition: all 0.3s ease;
|
| 174 |
}
|
| 175 |
|
| 176 |
.radio-card:hover {
|
| 177 |
+
border-color: #ef4444;
|
|
|
|
| 178 |
}
|
| 179 |
|
| 180 |
.radio-card.selected {
|
| 181 |
+
border-color: #ef4444;
|
| 182 |
+
background: #fee2e2;
|
| 183 |
}
|
| 184 |
|
| 185 |
+
.participant-chip {
|
| 186 |
+
background: #f8fafc;
|
| 187 |
+
border: 1px solid #e2e8f0;
|
| 188 |
+
transition: all 0.2s ease;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 189 |
}
|
| 190 |
|
| 191 |
+
.participant-chip:hover {
|
| 192 |
+
border-color: #ef4444;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 193 |
}
|
| 194 |
|
| 195 |
+
.progress-bar {
|
| 196 |
+
height: 4px;
|
| 197 |
+
background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
|
| 198 |
+
width: 0%;
|
| 199 |
+
transition: width 0.4s ease;
|
| 200 |
}
|
| 201 |
|
| 202 |
+
.toast {
|
| 203 |
+
position: fixed;
|
| 204 |
+
bottom: 24px;
|
| 205 |
+
right: 24px;
|
| 206 |
+
padding: 12px 16px;
|
| 207 |
+
border-radius: 8px;
|
| 208 |
+
color: white;
|
| 209 |
+
z-index: 1000;
|
| 210 |
display: flex;
|
| 211 |
align-items: center;
|
| 212 |
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
| 213 |
+
animation: slideUp 0.3s ease-out;
|
|
|
|
| 214 |
}
|
| 215 |
|
| 216 |
+
.toast.success {
|
| 217 |
+
background: #10b981;
|
|
|
|
|
|
|
| 218 |
}
|
| 219 |
|
| 220 |
+
.toast.error {
|
| 221 |
+
background: #ef4444;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 222 |
}
|
| 223 |
|
| 224 |
+
.modal-overlay {
|
| 225 |
+
background: rgba(0, 0, 0, 0.5);
|
| 226 |
+
animation: fadeIn 0.3s ease-out;
|
| 227 |
}
|
| 228 |
|
| 229 |
+
.modal-content {
|
| 230 |
+
animation: slideUp 0.3s ease-out;
|
|
|
|
| 231 |
}
|
| 232 |
|
| 233 |
+
::-webkit-scrollbar {
|
| 234 |
+
width: 6px;
|
| 235 |
+
height: 6px;
|
| 236 |
}
|
| 237 |
|
| 238 |
+
::-webkit-scrollbar-track {
|
| 239 |
+
background: #f1f5f9;
|
|
|
|
|
|
|
| 240 |
}
|
| 241 |
|
| 242 |
+
::-webkit-scrollbar-thumb {
|
| 243 |
+
background: #cbd5e1;
|
| 244 |
+
border-radius: 3px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 245 |
}
|
| 246 |
|
| 247 |
+
::-webkit-scrollbar-thumb:hover {
|
| 248 |
+
background: #94a3b8;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 249 |
}
|
| 250 |
</style>
|
| 251 |
</head>
|
| 252 |
+
<body class="bg-gray-50">
|
| 253 |
+
<!-- Header -->
|
| 254 |
+
<header class="bg-white shadow-sm">
|
| 255 |
+
<div class="container mx-auto px-6 py-4 flex justify-between items-center">
|
| 256 |
+
<div class="flex items-center space-x-2">
|
| 257 |
+
<div class="w-10 h-10 rounded-lg bg-gradient-to-r from-red-500 to-red-600 flex items-center justify-center text-white">
|
| 258 |
+
<i class="fas fa-file-alt text-xl"></i>
|
| 259 |
+
</div>
|
| 260 |
+
<h1 class="text-2xl font-bold text-gray-900">Compte Rendu Pro</h1>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 261 |
</div>
|
| 262 |
<div class="flex items-center space-x-4">
|
| 263 |
+
<button id="dark-mode-toggle" class="w-10 h-10 rounded-full flex items-center justify-center text-gray-500 hover:bg-gray-100 transition-colors">
|
| 264 |
+
<i class="fas fa-moon"></i>
|
|
|
|
| 265 |
</button>
|
| 266 |
+
<div class="w-10 h-10 rounded-full bg-gradient-to-r from-red-500 to-red-600 flex items-center justify-center text-white font-medium">
|
| 267 |
JD
|
| 268 |
</div>
|
| 269 |
</div>
|
| 270 |
+
</div>
|
| 271 |
+
</header>
|
| 272 |
+
|
| 273 |
+
<!-- Main Content -->
|
| 274 |
+
<main class="container mx-auto px-6 py-8">
|
| 275 |
+
<div class="flex flex-col lg:flex-row gap-8">
|
| 276 |
+
<!-- Sidebar -->
|
| 277 |
+
<aside class="lg:w-1/4 space-y-6">
|
| 278 |
+
<div class="card p-6">
|
| 279 |
+
<h3 class="font-semibold text-lg mb-4 flex items-center">
|
| 280 |
+
<i class="fas fa-info-circle text-red-500 mr-2"></i> Instructions
|
| 281 |
+
</h3>
|
| 282 |
+
<p class="text-gray-600 text-sm">Remplissez tous les champs requis pour générer un compte rendu professionnel.</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 283 |
</div>
|
| 284 |
|
| 285 |
+
<div class="card p-6">
|
| 286 |
+
<h3 class="font-semibold text-lg mb-4 flex items-center">
|
| 287 |
+
<i class="fas fa-tasks text-red-500 mr-2"></i> Progression
|
| 288 |
+
</h3>
|
| 289 |
+
<div class="mb-2 flex justify-between text-sm">
|
| 290 |
+
<span class="text-gray-600">Complétion</span>
|
| 291 |
+
<span id="progress-percentage" class="font-medium">0%</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 292 |
</div>
|
| 293 |
+
<div class="w-full bg-gray-200 rounded-full h-2">
|
| 294 |
+
<div id="progress-bar" class="progress-bar rounded-full"></div>
|
| 295 |
+
</div>
|
| 296 |
+
</div>
|
| 297 |
+
|
| 298 |
+
<div class="card p-6">
|
| 299 |
+
<h3 class="font-semibold text-lg mb-4 flex items-center">
|
| 300 |
+
<i class="fas fa-history text-red-500 mr-2"></i> Derniers comptes rendus
|
| 301 |
+
</h3>
|
| 302 |
+
<ul class="space-y-3">
|
| 303 |
+
<li class="flex items-center text-sm">
|
| 304 |
+
<i class="fas fa-file-alt text-gray-400 mr-2"></i>
|
| 305 |
+
<span class="truncate">Revue trimestrielle Q2</span>
|
| 306 |
+
</li>
|
| 307 |
+
<li class="flex items-center text-sm">
|
| 308 |
+
<i class="fas fa-file-alt text-gray-400 mr-2"></i>
|
| 309 |
+
<span class="truncate">Réunion client Acme</span>
|
| 310 |
+
</li>
|
| 311 |
+
<li class="flex items-center text-sm">
|
| 312 |
+
<i class="fas fa-file-alt text-gray-400 mr-2"></i>
|
| 313 |
+
<span class="truncate">Point projet X</span>
|
| 314 |
+
</li>
|
| 315 |
+
</ul>
|
| 316 |
+
</div>
|
| 317 |
+
</aside>
|
| 318 |
+
|
| 319 |
+
<!-- Form Content -->
|
| 320 |
+
<div class="lg:w-3/4 space-y-6">
|
| 321 |
+
<!-- Titre et Date -->
|
| 322 |
+
<div class="card p-6">
|
| 323 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
| 324 |
+
<div>
|
| 325 |
+
<label for="meeting-title" class="block text-sm font-medium text-gray-700 mb-2 flex items-center">
|
| 326 |
+
<i class="fas fa-heading text-red-500 mr-2"></i>Titre de la réunion
|
| 327 |
+
<span class="ml-2 text-xs bg-red-100 text-red-800 px-2 py-1 rounded-full">Requis</span>
|
| 328 |
+
</label>
|
| 329 |
+
<input
|
| 330 |
+
type="text"
|
| 331 |
+
id="meeting-title"
|
| 332 |
+
class="w-full input-field rounded-lg px-4 py-3 focus:ring-red-500 focus:border-red-500"
|
| 333 |
+
placeholder="Ex: Revue trimestrielle Q3 2023"
|
| 334 |
+
>
|
| 335 |
+
</div>
|
| 336 |
+
<div>
|
| 337 |
+
<label for="meeting-date" class="block text-sm font-medium text-gray-700 mb-2 flex items-center">
|
| 338 |
+
<i class="fas fa-calendar-day text-red-500 mr-2"></i>Date de la réunion
|
| 339 |
+
</label>
|
| 340 |
+
<input
|
| 341 |
+
type="date"
|
| 342 |
+
id="meeting-date"
|
| 343 |
+
class="w-full input-field rounded-lg px-4 py-3 focus:ring-red-500 focus:border-red-500"
|
| 344 |
+
>
|
| 345 |
+
</div>
|
| 346 |
</div>
|
| 347 |
</div>
|
| 348 |
|
| 349 |
<!-- Type de réunion -->
|
| 350 |
+
<div class="card p-6">
|
| 351 |
+
<label class="block text-sm font-medium text-gray-700 mb-4 flex items-center">
|
| 352 |
+
<i class="fas fa-tag text-red-500 mr-2"></i>Type de réunion
|
| 353 |
</label>
|
| 354 |
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3">
|
| 355 |
<label class="radio-card">
|
| 356 |
<input type="radio" name="meeting-type" class="hidden" value="strategique" checked>
|
| 357 |
<div class="flex items-center">
|
| 358 |
+
<div class="w-5 h-5 rounded-full border-2 border-gray-300 flex items-center justify-center mr-3">
|
| 359 |
+
<div class="w-3 h-3 rounded-full bg-red-500 hidden"></div>
|
| 360 |
</div>
|
| 361 |
<span>Stratégique</span>
|
| 362 |
</div>
|
|
|
|
| 364 |
<label class="radio-card">
|
| 365 |
<input type="radio" name="meeting-type" class="hidden" value="operationnel">
|
| 366 |
<div class="flex items-center">
|
| 367 |
+
<div class="w-5 h-5 rounded-full border-2 border-gray-300 flex items-center justify-center mr-3">
|
| 368 |
+
<div class="w-3 h-3 rounded-full bg-red-500 hidden"></div>
|
| 369 |
</div>
|
| 370 |
<span>Opérationnel</span>
|
| 371 |
</div>
|
|
|
|
| 373 |
<label class="radio-card">
|
| 374 |
<input type="radio" name="meeting-type" class="hidden" value="projet">
|
| 375 |
<div class="flex items-center">
|
| 376 |
+
<div class="w-5 h-5 rounded-full border-2 border-gray-300 flex items-center justify-center mr-3">
|
| 377 |
+
<div class="w-3 h-3 rounded-full bg-red-500 hidden"></div>
|
| 378 |
</div>
|
| 379 |
<span>Projet</span>
|
| 380 |
</div>
|
|
|
|
| 382 |
<label class="radio-card">
|
| 383 |
<input type="radio" name="meeting-type" class="hidden" value="client">
|
| 384 |
<div class="flex items-center">
|
| 385 |
+
<div class="w-5 h-5 rounded-full border-2 border-gray-300 flex items-center justify-center mr-3">
|
| 386 |
+
<div class="w-3 h-3 rounded-full bg-red-500 hidden"></div>
|
| 387 |
</div>
|
| 388 |
<span>Client</span>
|
| 389 |
</div>
|
|
|
|
| 391 |
<label class="radio-card">
|
| 392 |
<input type="radio" name="meeting-type" class="hidden" value="equipe">
|
| 393 |
<div class="flex items-center">
|
| 394 |
+
<div class="w-5 h-5 rounded-full border-2 border-gray-300 flex items-center justify-center mr-3">
|
| 395 |
+
<div class="w-3 h-3 rounded-full bg-red-500 hidden"></div>
|
| 396 |
</div>
|
| 397 |
<span>Équipe</span>
|
| 398 |
</div>
|
|
|
|
| 401 |
</div>
|
| 402 |
|
| 403 |
<!-- Contenu du compte rendu -->
|
| 404 |
+
<div class="card p-6">
|
| 405 |
+
<label class="block text-sm font-medium text-gray-700 mb-2 flex items-center">
|
| 406 |
+
<i class="fas fa-align-left text-red-500 mr-2"></i>Contenu du compte rendu
|
| 407 |
+
<span class="ml-2 text-xs bg-red-100 text-red-800 px-2 py-1 rounded-full">Requis</span>
|
| 408 |
</label>
|
| 409 |
+
<div class="editor-toolbar border border-gray-200 p-2 flex flex-wrap gap-1">
|
| 410 |
+
<button class="p-2 hover:bg-gray-100 rounded text-gray-600 hover:text-gray-900" title="Gras" data-command="bold">
|
| 411 |
<i class="fas fa-bold"></i>
|
|
|
|
| 412 |
</button>
|
| 413 |
+
<button class="p-2 hover:bg-gray-100 rounded text-gray-600 hover:text-gray-900" title="Italique" data-command="italic">
|
| 414 |
<i class="fas fa-italic"></i>
|
|
|
|
| 415 |
</button>
|
| 416 |
+
<button class="p-2 hover:bg-gray-100 rounded text-gray-600 hover:text-gray-900" title="Souligné" data-command="underline">
|
| 417 |
<i class="fas fa-underline"></i>
|
|
|
|
| 418 |
</button>
|
| 419 |
+
<div class="w-px h-6 bg-gray-200 mx-1"></div>
|
| 420 |
+
<button class="p-2 hover:bg-gray-100 rounded text-gray-600 hover:text-gray-900" title="Liste à puces" data-command="insertUnorderedList">
|
| 421 |
<i class="fas fa-list-ul"></i>
|
|
|
|
| 422 |
</button>
|
| 423 |
+
<button class="p-2 hover:bg-gray-100 rounded text-gray-600 hover:text-gray-900" title="Liste numérotée" data-command="insertOrderedList">
|
| 424 |
<i class="fas fa-list-ol"></i>
|
|
|
|
| 425 |
</button>
|
| 426 |
+
<div class="w-px h-6 bg-gray-200 mx-1"></div>
|
| 427 |
+
<button class="p-2 hover:bg-gray-100 rounded text-gray-600 hover:text-gray-900" title="Lien" data-command="createLink">
|
| 428 |
<i class="fas fa-link"></i>
|
|
|
|
| 429 |
</button>
|
| 430 |
+
<button class="p-2 hover:bg-gray-100 rounded text-gray-600 hover:text-gray-900" title="Image" data-command="insertImage">
|
| 431 |
<i class="fas fa-image"></i>
|
|
|
|
| 432 |
</button>
|
| 433 |
+
<div class="w-px h-6 bg-gray-200 mx-1"></div>
|
| 434 |
+
<button class="p-2 hover:bg-gray-100 rounded text-gray-600 hover:text-gray-900" title="Annuler" data-command="undo">
|
| 435 |
<i class="fas fa-undo"></i>
|
|
|
|
| 436 |
</button>
|
| 437 |
+
<button class="p-2 hover:bg-gray-100 rounded text-gray-600 hover:text-gray-900" title="Rétablir" data-command="redo">
|
| 438 |
<i class="fas fa-redo"></i>
|
|
|
|
| 439 |
</button>
|
| 440 |
</div>
|
| 441 |
<div
|
| 442 |
id="editor-content"
|
| 443 |
+
class="editor-content"
|
| 444 |
contenteditable="true"
|
| 445 |
data-placeholder="Décrivez ici les points abordés, les décisions prises, les actions à mener..."
|
| 446 |
></div>
|
| 447 |
</div>
|
| 448 |
|
| 449 |
<!-- Points clés -->
|
| 450 |
+
<div class="card p-6">
|
| 451 |
+
<label class="block text-sm font-medium text-gray-700 mb-4 flex items-center">
|
| 452 |
+
<i class="fas fa-key text-red-500 mr-2"></i>Points clés
|
| 453 |
</label>
|
| 454 |
<div id="key-points-container">
|
| 455 |
<div class="flex mb-4">
|
| 456 |
<input
|
| 457 |
type="text"
|
| 458 |
+
id="key-point-input"
|
| 459 |
+
class="flex-1 input-field rounded-l-lg px-4 py-2 focus:ring-red-500 focus:border-red-500"
|
| 460 |
placeholder="Ajouter un point clé"
|
| 461 |
>
|
| 462 |
+
<button id="add-key-point" class="bg-red-500 hover:bg-red-600 text-white px-4 rounded-r-lg transition-colors">
|
| 463 |
<i class="fas fa-plus"></i>
|
| 464 |
</button>
|
| 465 |
</div>
|
|
|
|
| 469 |
</div>
|
| 470 |
</div>
|
| 471 |
|
| 472 |
+
<!-- Documents joints -->
|
| 473 |
+
<div class="card p-6">
|
| 474 |
+
<label class="block text-sm font-medium text-gray-700 mb-4 flex items-center">
|
| 475 |
+
<i class="fas fa-paperclip text-red-500 mr-2"></i>Documents joints
|
| 476 |
+
<span class="ml-2 text-xs bg-red-100 text-red-800 px-2 py-1 rounded-full">Requis</span>
|
| 477 |
</label>
|
| 478 |
|
| 479 |
<!-- Zone de dépôt -->
|
| 480 |
<div id="dropzone" class="dropzone mb-4">
|
| 481 |
+
<div class="text-red-500 mb-3">
|
| 482 |
+
<i class="fas fa-cloud-upload-alt text-3xl"></i>
|
| 483 |
</div>
|
| 484 |
+
<p class="text-gray-700 font-medium">Glissez-déposez vos fichiers ici</p>
|
| 485 |
+
<p class="text-gray-500 text-sm mt-1">ou cliquez pour sélectionner</p>
|
| 486 |
+
<span class="text-xs text-gray-400 mt-2 block">Formats supportés: PDF, Word, Excel, Images</span>
|
| 487 |
</div>
|
| 488 |
|
| 489 |
<div id="file-names" class="mt-3 grid grid-cols-1 md:grid-cols-2 gap-3"></div>
|
| 490 |
</div>
|
| 491 |
|
| 492 |
+
<!-- Participants -->
|
| 493 |
+
<div class="card p-6">
|
| 494 |
<div class="flex justify-between items-center mb-4">
|
| 495 |
+
<label class="block text-sm font-medium text-gray-700 flex items-center">
|
| 496 |
+
<i class="fas fa-users text-red-500 mr-2"></i>Participants
|
| 497 |
+
<span class="ml-2 text-xs bg-red-100 text-red-800 px-2 py-1 rounded-full">Requis</span>
|
| 498 |
</label>
|
| 499 |
</div>
|
| 500 |
|
| 501 |
+
<div class="bg-gray-50 rounded-lg p-4">
|
| 502 |
+
<!-- Liste des participants existants -->
|
| 503 |
<div class="mb-4">
|
| 504 |
+
<h3 class="text-sm font-medium text-gray-700 mb-3">Sélectionnez les participants</h3>
|
| 505 |
<div class="flex flex-wrap gap-2" id="participants-list">
|
| 506 |
+
<label class="participant-chip flex items-center rounded-full px-3 py-1 cursor-pointer">
|
| 507 |
+
<input type="checkbox" class="mr-2 rounded text-red-500" checked>
|
| 508 |
+
<i class="fas fa-user-circle text-red-500 mr-2"></i>
|
| 509 |
Christophe Girard (christophe.girard@gmail.com)
|
| 510 |
</label>
|
| 511 |
+
<label class="participant-chip flex items-center rounded-full px-3 py-1 cursor-pointer">
|
| 512 |
+
<input type="checkbox" class="mr-2 rounded text-red-500" checked>
|
| 513 |
+
<i class="fas fa-user-circle text-red-500 mr-2"></i>
|
| 514 |
Nathalie Duval (okckool@yahoo.fr)
|
| 515 |
</label>
|
| 516 |
+
<label class="participant-chip flex items-center rounded-full px-3 py-1 cursor-pointer">
|
| 517 |
+
<input type="checkbox" class="mr-2 rounded text-red-500" name="all-participants">
|
| 518 |
+
<i class="fas fa-users text-red-500 mr-2"></i>
|
| 519 |
Tous les participants
|
| 520 |
</label>
|
| 521 |
</div>
|
|
|
|
| 523 |
|
| 524 |
<!-- Ajout manuel de participant -->
|
| 525 |
<div class="mt-4">
|
| 526 |
+
<h3 class="text-sm font-medium text-gray-700 mb-3">Ajouter un participant</h3>
|
| 527 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-3">
|
| 528 |
+
<input
|
| 529 |
+
type="text"
|
| 530 |
+
id="participant-name"
|
| 531 |
+
placeholder="Nom"
|
| 532 |
+
class="input-field rounded-lg px-4 py-2 focus:ring-red-500 focus:border-red-500"
|
| 533 |
+
>
|
| 534 |
+
<input
|
| 535 |
+
type="email"
|
| 536 |
+
id="participant-email"
|
| 537 |
+
placeholder="Email"
|
| 538 |
+
class="input-field rounded-lg px-4 py-2 focus:ring-red-500 focus:border-red-500"
|
| 539 |
+
>
|
| 540 |
+
<button id="add-participant-btn" class="btn-primary rounded-lg py-2">
|
| 541 |
<i class="fas fa-plus mr-1"></i> Ajouter
|
| 542 |
</button>
|
| 543 |
</div>
|
|
|
|
| 546 |
</div>
|
| 547 |
|
| 548 |
<!-- Tags -->
|
| 549 |
+
<div class="card p-6">
|
| 550 |
+
<label class="block text-sm font-medium text-gray-700 mb-2 flex items-center">
|
| 551 |
+
<i class="fas fa-tags text-red-500 mr-2"></i>Tags
|
| 552 |
</label>
|
| 553 |
+
<div class="flex flex-wrap gap-2 mb-3" id="tags">
|
| 554 |
+
<!-- Les tags seront ajoutés ici -->
|
| 555 |
+
</div>
|
| 556 |
+
<div class="flex">
|
| 557 |
<input
|
| 558 |
type="text"
|
| 559 |
id="tag-input"
|
| 560 |
+
class="flex-1 input-field rounded-l-lg px-4 py-2 focus:ring-red-500 focus:border-red-500"
|
| 561 |
placeholder="Ajouter un tag (appuyez sur Entrée)"
|
| 562 |
>
|
| 563 |
+
<button id="add-tag-btn" class="bg-gray-100 hover:bg-gray-200 text-gray-700 px-4 rounded-r-lg transition-colors border border-gray-200 border-l-0">
|
| 564 |
+
<i class="fas fa-plus"></i>
|
| 565 |
+
</button>
|
| 566 |
</div>
|
| 567 |
</div>
|
| 568 |
|
| 569 |
<!-- Confidentialité -->
|
| 570 |
+
<div class="card p-6">
|
| 571 |
+
<label class="block text-sm font-medium text-gray-700 mb-4 flex items-center">
|
| 572 |
+
<i class="fas fa-lock text-red-500 mr-2"></i>Confidentialité
|
| 573 |
</label>
|
| 574 |
<div class="grid grid-cols-1 sm:grid-cols-3 gap-3">
|
| 575 |
<label class="radio-card">
|
| 576 |
<input type="radio" name="confidentiality" class="hidden" value="public" checked>
|
| 577 |
<div class="flex items-center">
|
| 578 |
+
<div class="w-5 h-5 rounded-full border-2 border-gray-300 flex items-center justify-center mr-3">
|
| 579 |
+
<div class="w-3 h-3 rounded-full bg-red-500 hidden"></div>
|
| 580 |
</div>
|
| 581 |
<div>
|
| 582 |
<div class="font-medium">Public</div>
|
| 583 |
+
<div class="text-xs text-gray-500">Tous les membres peuvent voir</div>
|
| 584 |
</div>
|
| 585 |
</div>
|
| 586 |
</label>
|
| 587 |
<label class="radio-card">
|
| 588 |
<input type="radio" name="confidentiality" class="hidden" value="restricted">
|
| 589 |
<div class="flex items-center">
|
| 590 |
+
<div class="w-5 h-5 rounded-full border-2 border-gray-300 flex items-center justify-center mr-3">
|
| 591 |
+
<div class="w-3 h-3 rounded-full bg-red-500 hidden"></div>
|
| 592 |
</div>
|
| 593 |
<div>
|
| 594 |
<div class="font-medium">Restreint</div>
|
| 595 |
+
<div class="text-xs text-gray-500">Seulement les participants</div>
|
| 596 |
</div>
|
| 597 |
</div>
|
| 598 |
</label>
|
| 599 |
<label class="radio-card">
|
| 600 |
<input type="radio" name="confidentiality" class="hidden" value="private">
|
| 601 |
<div class="flex items-center">
|
| 602 |
+
<div class="w-5 h-5 rounded-full border-2 border-gray-300 flex items-center justify-center mr-3">
|
| 603 |
+
<div class="w-3 h-3 rounded-full bg-red-500 hidden"></div>
|
| 604 |
</div>
|
| 605 |
<div>
|
| 606 |
<div class="font-medium">Privé</div>
|
| 607 |
+
<div class="text-xs text-gray-500">Seulement moi</div>
|
| 608 |
</div>
|
| 609 |
</div>
|
| 610 |
</label>
|
|
|
|
| 612 |
</div>
|
| 613 |
|
| 614 |
<!-- Boutons d'action -->
|
| 615 |
+
<div class="flex flex-col sm:flex-row justify-between gap-4 pt-6 border-t border-gray-200">
|
| 616 |
+
<button id="save-draft-btn" class="btn-secondary font-medium py-3 px-8 rounded-lg flex items-center justify-center">
|
| 617 |
<i class="fas fa-save mr-2"></i> Enregistrer brouillon
|
| 618 |
</button>
|
| 619 |
+
<div class="flex flex-col sm:flex-row gap-4">
|
| 620 |
+
<button id="preview-btn" class="btn-secondary font-medium py-3 px-8 rounded-lg flex items-center justify-center">
|
| 621 |
<i class="fas fa-eye mr-2"></i> Prévisualiser
|
| 622 |
</button>
|
| 623 |
+
<button id="send-btn" class="btn-primary font-medium py-3 px-8 rounded-lg flex items-center justify-center">
|
| 624 |
<i class="fas fa-paper-plane mr-2"></i> Envoyer
|
| 625 |
</button>
|
| 626 |
</div>
|
| 627 |
</div>
|
| 628 |
</div>
|
| 629 |
</div>
|
| 630 |
+
</main>
|
| 631 |
+
|
| 632 |
+
<!-- Toast Notification -->
|
| 633 |
+
<div id="toast" class="toast hidden">
|
| 634 |
+
<i id="toast-icon" class="fas fa-check-circle mr-2"></i>
|
| 635 |
+
<span id="toast-message"></span>
|
| 636 |
</div>
|
| 637 |
|
| 638 |
<!-- Modal de confirmation -->
|
| 639 |
+
<div id="confirmation-modal" class="fixed inset-0 z-50 flex items-center justify-center hidden">
|
| 640 |
+
<div class="modal-overlay absolute inset-0 bg-black bg-opacity-50"></div>
|
| 641 |
+
<div class="modal-content bg-white rounded-xl shadow-2xl p-8 w-full max-w-md relative z-10">
|
| 642 |
<div class="flex justify-between items-center mb-6">
|
| 643 |
+
<h3 class="text-xl font-bold text-gray-900 flex items-center">
|
| 644 |
+
<div class="w-10 h-10 rounded-full bg-red-100 flex items-center justify-center mr-3">
|
| 645 |
+
<i class="fas fa-check text-red-500"></i>
|
| 646 |
+
</div>
|
| 647 |
+
Confirmation
|
| 648 |
</h3>
|
| 649 |
+
<button id="close-modal" class="text-gray-400 hover:text-gray-500">
|
| 650 |
<i class="fas fa-times"></i>
|
| 651 |
</button>
|
| 652 |
</div>
|
| 653 |
+
<p class="mb-6 text-gray-600">Votre compte rendu de réunion a été envoyé avec succès aux collaborateurs sélectionnés.</p>
|
| 654 |
+
<div class="flex justify-end space-x-3">
|
| 655 |
+
<button id="confirm-btn" class="btn-secondary px-6 py-2 rounded-lg">
|
|
|
|
|
|
|
|
|
|
| 656 |
Fermer
|
| 657 |
</button>
|
| 658 |
+
<button id="view-report-btn" class="btn-primary px-6 py-2 rounded-lg">
|
| 659 |
+
<i class="fas fa-rocket mr-1"></i> Let's Go !
|
| 660 |
+
</button>
|
| 661 |
</div>
|
| 662 |
</div>
|
| 663 |
</div>
|
| 664 |
|
| 665 |
<!-- Modal de prévisualisation -->
|
| 666 |
+
<div id="preview-modal" class="fixed inset-0 z-50 flex items-start justify-center hidden overflow-y-auto py-10">
|
| 667 |
+
<div class="modal-overlay absolute inset-0 bg-black bg-opacity-50"></div>
|
| 668 |
+
<div class="modal-content bg-white rounded-xl shadow-2xl p-8 w-full max-w-4xl mx-4 my-8 relative z-10">
|
| 669 |
<div class="flex justify-between items-center mb-6">
|
| 670 |
+
<h3 class="text-xl font-bold text-gray-900 flex items-center">
|
| 671 |
+
<div class="w-10 h-10 rounded-full bg-red-100 flex items-center justify-center mr-3">
|
| 672 |
+
<i class="fas fa-eye text-red-500"></i>
|
| 673 |
+
</div>
|
| 674 |
+
Prévisualisation
|
| 675 |
</h3>
|
| 676 |
+
<button id="close-preview-modal" class="text-gray-400 hover:text-gray-500">
|
| 677 |
<i class="fas fa-times"></i>
|
| 678 |
</button>
|
| 679 |
</div>
|
| 680 |
+
<div id="preview-content" class="bg-white rounded-lg p-6 border border-gray-200">
|
| 681 |
<!-- Le contenu de la prévisualisation sera généré ici -->
|
| 682 |
</div>
|
| 683 |
<div class="flex justify-end mt-6">
|
| 684 |
+
<button id="close-preview-btn" class="btn-primary px-6 py-2 rounded-lg">
|
| 685 |
Fermer
|
| 686 |
</button>
|
| 687 |
</div>
|
|
|
|
| 700 |
localStorage.setItem('darkMode', isDark);
|
| 701 |
|
| 702 |
if (isDark) {
|
| 703 |
+
darkModeToggle.innerHTML = '<i class="fas fa-sun"></i>';
|
|
|
|
| 704 |
} else {
|
| 705 |
+
darkModeToggle.innerHTML = '<i class="fas fa-moon"></i>';
|
|
|
|
| 706 |
}
|
| 707 |
});
|
| 708 |
|
| 709 |
// Vérifier le mode au chargement
|
| 710 |
+
if (localStorage.getItem('darkMode') === 'true') {
|
|
|
|
| 711 |
html.classList.add('dark');
|
| 712 |
+
darkModeToggle.innerHTML = '<i class="fas fa-sun"></i>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 713 |
}
|
| 714 |
|
| 715 |
+
// Gestion des fichiers
|
| 716 |
const dropzone = document.getElementById('dropzone');
|
| 717 |
const fileNamesContainer = document.getElementById('file-names');
|
| 718 |
const files = [];
|
|
|
|
| 745 |
|
| 746 |
dropzone.addEventListener('drop', handleDrop, false);
|
| 747 |
dropzone.addEventListener('click', () => {
|
|
|
|
| 748 |
const input = document.createElement('input');
|
| 749 |
input.type = 'file';
|
| 750 |
input.multiple = true;
|
|
|
|
| 755 |
input.click();
|
| 756 |
});
|
| 757 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 758 |
function handleFiles(fileList) {
|
| 759 |
[...fileList].forEach(file => {
|
| 760 |
if (!files.some(f => f.name === file.name && f.size === file.size)) {
|
|
|
|
| 770 |
|
| 771 |
function addFileToUI(file) {
|
| 772 |
const fileElement = document.createElement('div');
|
| 773 |
+
fileElement.className = 'flex items-center justify-between bg-white border border-gray-200 rounded-lg p-3 animate-fade-in';
|
| 774 |
fileElement.innerHTML = `
|
| 775 |
<div class="flex items-center">
|
| 776 |
<i class="fas ${getFileIconClass(file.name)} mr-3 text-lg"></i>
|
| 777 |
<div>
|
| 778 |
<div class="text-sm font-medium truncate max-w-xs">${file.name}</div>
|
| 779 |
+
<div class="text-xs text-gray-500">${formatFileSize(file.size)}</div>
|
| 780 |
</div>
|
| 781 |
</div>
|
| 782 |
+
<button class="text-red-400 hover:text-red-500 transition-colors" data-file="${file.name}">
|
| 783 |
<i class="fas fa-trash"></i>
|
| 784 |
</button>
|
| 785 |
`;
|
|
|
|
| 801 |
|
| 802 |
function getFileIconClass(filename) {
|
| 803 |
const ext = filename.split('.').pop().toLowerCase();
|
| 804 |
+
if (['doc', 'docx'].includes(ext)) return 'fa-file-word text-blue-500';
|
| 805 |
+
if (ext === 'pdf') return 'fa-file-pdf text-red-500';
|
| 806 |
+
if (['jpg', 'jpeg', 'png', 'gif', 'svg'].includes(ext)) return 'fa-file-image text-green-500';
|
| 807 |
+
if (ext === 'txt') return 'fa-file-alt text-yellow-500';
|
| 808 |
+
if (['xlsx', 'xls'].includes(ext)) return 'fa-file-excel text-green-600';
|
| 809 |
+
return 'fa-file text-gray-500';
|
| 810 |
}
|
| 811 |
|
| 812 |
function formatFileSize(bytes) {
|
|
|
|
| 819 |
|
| 820 |
// Gestion des participants
|
| 821 |
const allParticipantsCheckbox = document.querySelector('input[name="all-participants"]');
|
| 822 |
+
const individualCheckboxes = document.querySelectorAll('.participant-chip input:not([name="all-participants"])');
|
| 823 |
const participantsList = document.getElementById('participants-list');
|
| 824 |
const addParticipantBtn = document.getElementById('add-participant-btn');
|
| 825 |
const participantNameInput = document.getElementById('participant-name');
|
| 826 |
const participantEmailInput = document.getElementById('participant-email');
|
| 827 |
|
|
|
|
| 828 |
allParticipantsCheckbox.addEventListener('change', function() {
|
| 829 |
if (this.checked) {
|
| 830 |
individualCheckboxes.forEach(checkbox => {
|
| 831 |
checkbox.checked = true;
|
| 832 |
checkbox.disabled = true;
|
| 833 |
+
checkbox.closest('.participant-chip').classList.add('opacity-50');
|
| 834 |
});
|
| 835 |
} else {
|
| 836 |
individualCheckboxes.forEach(checkbox => {
|
| 837 |
checkbox.disabled = false;
|
| 838 |
+
checkbox.closest('.participant-chip').classList.remove('opacity-50');
|
| 839 |
});
|
| 840 |
}
|
| 841 |
updateProgressBar();
|
| 842 |
});
|
| 843 |
|
|
|
|
| 844 |
individualCheckboxes.forEach(checkbox => {
|
| 845 |
checkbox.addEventListener('change', function() {
|
|
|
|
| 846 |
if (!this.checked && allParticipantsCheckbox.checked) {
|
| 847 |
allParticipantsCheckbox.checked = false;
|
| 848 |
individualCheckboxes.forEach(cb => {
|
| 849 |
cb.disabled = false;
|
| 850 |
+
cb.closest('.participant-chip').classList.remove('opacity-50');
|
| 851 |
});
|
| 852 |
}
|
| 853 |
updateProgressBar();
|
| 854 |
});
|
| 855 |
});
|
| 856 |
|
|
|
|
| 857 |
addParticipantBtn.addEventListener('click', function() {
|
| 858 |
const name = participantNameInput.value.trim();
|
| 859 |
const email = participantEmailInput.value.trim();
|
|
|
|
| 868 |
return;
|
| 869 |
}
|
| 870 |
|
| 871 |
+
const existingParticipants = Array.from(participantsList.querySelectorAll('.participant-chip'));
|
|
|
|
| 872 |
const alreadyExists = existingParticipants.some(participant => {
|
| 873 |
const text = participant.textContent.trim();
|
| 874 |
return text.includes(`${name} (${email})`);
|
|
|
|
| 879 |
return;
|
| 880 |
}
|
| 881 |
|
|
|
|
| 882 |
const newParticipant = document.createElement('label');
|
| 883 |
+
newParticipant.className = 'participant-chip flex items-center rounded-full px-3 py-1 cursor-pointer animate-fade-in';
|
| 884 |
newParticipant.innerHTML = `
|
| 885 |
+
<input type="checkbox" class="mr-2 rounded text-red-500" checked>
|
| 886 |
+
<i class="fas fa-user-circle text-red-500 mr-2"></i>
|
| 887 |
${name} (${email})
|
| 888 |
`;
|
| 889 |
|
| 890 |
participantsList.appendChild(newParticipant);
|
| 891 |
|
|
|
|
| 892 |
newParticipant.querySelector('input').addEventListener('change', function() {
|
| 893 |
if (!this.checked && allParticipantsCheckbox.checked) {
|
| 894 |
allParticipantsCheckbox.checked = false;
|
| 895 |
individualCheckboxes.forEach(cb => {
|
| 896 |
cb.disabled = false;
|
| 897 |
+
cb.closest('.participant-chip').classList.remove('opacity-50');
|
| 898 |
});
|
| 899 |
}
|
| 900 |
updateProgressBar();
|
| 901 |
});
|
| 902 |
|
|
|
|
| 903 |
participantNameInput.value = '';
|
| 904 |
participantEmailInput.value = '';
|
| 905 |
|
|
|
|
| 915 |
// Gestion des tags
|
| 916 |
const tagInput = document.getElementById('tag-input');
|
| 917 |
const tagsContainer = document.getElementById('tags');
|
| 918 |
+
const addTagBtn = document.getElementById('add-tag-btn');
|
| 919 |
const tags = ['Réunion', 'Compte rendu', 'Important'];
|
| 920 |
|
|
|
|
| 921 |
tags.forEach(tag => {
|
| 922 |
addTag(tag);
|
| 923 |
});
|
| 924 |
|
| 925 |
tagInput.addEventListener('keyup', function(e) {
|
| 926 |
if (e.key === 'Enter' && this.value.trim() !== '') {
|
| 927 |
+
addNewTag(this.value.trim());
|
| 928 |
+
this.value = '';
|
| 929 |
+
}
|
| 930 |
+
});
|
| 931 |
+
|
| 932 |
+
addTagBtn.addEventListener('click', function() {
|
| 933 |
+
if (tagInput.value.trim() !== '') {
|
| 934 |
+
addNewTag(tagInput.value.trim());
|
| 935 |
+
tagInput.value = '';
|
| 936 |
}
|
| 937 |
});
|
| 938 |
|
| 939 |
+
function addNewTag(text) {
|
| 940 |
+
if (!tags.includes(text)) {
|
| 941 |
+
addTag(text);
|
| 942 |
+
tags.push(text);
|
| 943 |
+
showToast('Tag ajouté', 'success');
|
| 944 |
+
} else {
|
| 945 |
+
showToast('Ce tag existe déjà', 'error');
|
| 946 |
+
}
|
| 947 |
+
}
|
| 948 |
+
|
| 949 |
function addTag(text) {
|
| 950 |
+
const tag = document.createElement('div');
|
| 951 |
+
tag.className = 'tag flex items-center rounded-full px-3 py-1 text-sm';
|
| 952 |
tag.innerHTML = `
|
| 953 |
+
<span>${text}</span>
|
| 954 |
+
<button class="ml-2 text-red-500 hover:text-red-700" data-tag="${text}">
|
| 955 |
<i class="fas fa-times"></i>
|
| 956 |
+
</button>
|
| 957 |
`;
|
| 958 |
|
| 959 |
tagsContainer.appendChild(tag);
|
| 960 |
|
| 961 |
+
tag.querySelector('button').addEventListener('click', function() {
|
|
|
|
| 962 |
tag.remove();
|
| 963 |
const index = tags.indexOf(text);
|
| 964 |
if (index !== -1) {
|
|
|
|
| 994 |
});
|
| 995 |
});
|
| 996 |
|
|
|
|
| 997 |
editorContent.addEventListener('focus', function() {
|
| 998 |
if (this.textContent.trim() === '') {
|
| 999 |
this.setAttribute('data-placeholder', '');
|
|
|
|
| 1009 |
// Gestion des points clés
|
| 1010 |
const keyPointsContainer = document.getElementById('key-points-container');
|
| 1011 |
const keyPointsList = document.getElementById('key-points-list');
|
| 1012 |
+
const addKeyPointBtn = document.getElementById('add-key-point');
|
| 1013 |
+
const keyPointInput = document.getElementById('key-point-input');
|
| 1014 |
|
| 1015 |
+
addKeyPointBtn.addEventListener('click', function() {
|
| 1016 |
+
addKeyPoint();
|
| 1017 |
+
});
|
| 1018 |
+
|
| 1019 |
+
keyPointInput.addEventListener('keyup', function(e) {
|
| 1020 |
+
if (e.key === 'Enter') {
|
| 1021 |
+
addKeyPoint();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1022 |
}
|
| 1023 |
});
|
| 1024 |
|
| 1025 |
+
function addKeyPoint() {
|
| 1026 |
+
const pointText = keyPointInput.value.trim();
|
| 1027 |
+
|
| 1028 |
+
if (pointText) {
|
| 1029 |
+
const pointElement = document.createElement('div');
|
| 1030 |
+
pointElement.className = 'flex items-center justify-between bg-gray-50 rounded-lg p-3 animate-fade-in';
|
| 1031 |
+
pointElement.innerHTML = `
|
| 1032 |
+
<div class="flex items-center">
|
| 1033 |
+
<i class="fas fa-circle text-xs text-red-500 mr-3"></i>
|
| 1034 |
+
<span>${pointText}</span>
|
| 1035 |
+
</div>
|
| 1036 |
+
<button class="text-red-400 hover:text-red-500 transition-colors">
|
| 1037 |
+
<i class="fas fa-times"></i>
|
| 1038 |
+
</button>
|
| 1039 |
+
`;
|
| 1040 |
+
|
| 1041 |
+
keyPointsList.appendChild(pointElement);
|
| 1042 |
+
keyPointInput.value = '';
|
| 1043 |
+
|
| 1044 |
+
pointElement.querySelector('button').addEventListener('click', function() {
|
| 1045 |
+
pointElement.remove();
|
| 1046 |
+
showToast('Point clé supprimé', 'success');
|
| 1047 |
+
});
|
| 1048 |
+
|
| 1049 |
+
showToast('Point clé ajouté', 'success');
|
| 1050 |
+
updateProgressBar();
|
| 1051 |
+
}
|
| 1052 |
+
}
|
| 1053 |
+
|
| 1054 |
// Barre de progression
|
| 1055 |
function updateProgressBar() {
|
| 1056 |
const progressBar = document.getElementById('progress-bar');
|
| 1057 |
+
const progressPercentage = document.getElementById('progress-percentage');
|
| 1058 |
const requiredFields = [
|
| 1059 |
document.getElementById('meeting-title').value.trim(),
|
| 1060 |
editorContent.textContent.trim(),
|
| 1061 |
files.length > 0,
|
| 1062 |
+
document.querySelectorAll('.participant-chip input[type="checkbox"]:checked').length > 0
|
| 1063 |
];
|
| 1064 |
|
| 1065 |
const filledFields = requiredFields.filter(field => Boolean(field)).length;
|
| 1066 |
const progress = (filledFields / requiredFields.length) * 100;
|
| 1067 |
|
| 1068 |
progressBar.style.width = `${progress}%`;
|
| 1069 |
+
progressPercentage.textContent = `${Math.round(progress)}%`;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1070 |
}
|
| 1071 |
|
| 1072 |
// Écouteurs pour mettre à jour la barre de progression
|
| 1073 |
document.getElementById('meeting-title').addEventListener('input', updateProgressBar);
|
| 1074 |
editorContent.addEventListener('input', updateProgressBar);
|
| 1075 |
+
document.querySelectorAll('.participant-chip input[type="checkbox"]').forEach(checkbox => {
|
| 1076 |
checkbox.addEventListener('change', updateProgressBar);
|
| 1077 |
});
|
| 1078 |
|
|
|
|
| 1086 |
toastMessage.textContent = message;
|
| 1087 |
|
| 1088 |
if (type === 'success') {
|
| 1089 |
+
toastIcon.className = 'fas fa-check-circle mr-2';
|
| 1090 |
} else {
|
| 1091 |
+
toastIcon.className = 'fas fa-exclamation-circle mr-2';
|
| 1092 |
}
|
| 1093 |
|
| 1094 |
toast.classList.remove('hidden');
|
|
|
|
| 1095 |
|
| 1096 |
setTimeout(() => {
|
| 1097 |
+
toast.classList.add('hidden');
|
|
|
|
| 1098 |
}, 3000);
|
| 1099 |
}
|
| 1100 |
|
| 1101 |
// Envoi du formulaire
|
| 1102 |
const sendBtn = document.getElementById('send-btn');
|
|
|
|
| 1103 |
const confirmationModal = document.getElementById('confirmation-modal');
|
| 1104 |
const saveDraftBtn = document.getElementById('save-draft-btn');
|
| 1105 |
const previewBtn = document.getElementById('preview-btn');
|
| 1106 |
const previewModal = document.getElementById('preview-modal');
|
| 1107 |
const viewReportBtn = document.getElementById('view-report-btn');
|
| 1108 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1109 |
sendBtn.addEventListener('click', function() {
|
| 1110 |
const title = document.getElementById('meeting-title').value.trim();
|
| 1111 |
|
|
|
|
| 1124 |
return;
|
| 1125 |
}
|
| 1126 |
|
| 1127 |
+
const selectedCollaborators = document.querySelectorAll('.participant-chip input[type="checkbox"]:checked');
|
|
|
|
| 1128 |
|
| 1129 |
if (selectedCollaborators.length === 0) {
|
| 1130 |
showToast('Veuillez sélectionner au moins un participant', 'error');
|
|
|
|
| 1142 |
];
|
| 1143 |
} else {
|
| 1144 |
selectedCollaborators.forEach(checkbox => {
|
| 1145 |
+
const label = checkbox.closest('.participant-chip');
|
| 1146 |
const text = label.textContent.trim();
|
| 1147 |
const matches = text.match(/(.+?)\s\((.+?)\)/);
|
| 1148 |
if (matches && matches.length === 3) {
|
|
|
|
| 1159 |
});
|
| 1160 |
}
|
| 1161 |
|
| 1162 |
+
// Afficher la modal de confirmation
|
| 1163 |
const confirmationMessage = `Votre compte rendu sera envoyé à :<br><br>
|
| 1164 |
${recipients.map(r => `<div class="flex items-center mb-2">
|
| 1165 |
+
<i class="fas fa-user-circle text-red-500 mr-2"></i>
|
| 1166 |
<span>${r.name} <${r.email}></span>
|
| 1167 |
</div>`).join('')}`;
|
| 1168 |
|
|
|
|
| 1172 |
|
| 1173 |
// Bouton "Let's Go!" dans la modal
|
| 1174 |
viewReportBtn.addEventListener('click', function() {
|
|
|
|
| 1175 |
showToast('Emails envoyés avec succès', 'success');
|
| 1176 |
confirmationModal.classList.add('hidden');
|
| 1177 |
|
|
|
|
| 1178 |
setTimeout(() => {
|
| 1179 |
alert('Les emails ont bien été envoyés aux participants !');
|
| 1180 |
}, 500);
|
|
|
|
| 1196 |
// Générer la prévisualisation
|
| 1197 |
const previewContent = document.getElementById('preview-content');
|
| 1198 |
previewContent.innerHTML = `
|
| 1199 |
+
<div class="mb-6 pb-6 border-b border-gray-200">
|
| 1200 |
+
<h2 class="text-2xl font-bold text-gray-900 mb-2">${title}</h2>
|
| 1201 |
+
<div class="flex flex-wrap gap-4 text-sm text-gray-500">
|
| 1202 |
+
<div><i class="fas fa-calendar-day mr-1 text-red-500"></i> ${formatDate(date)}</div>
|
| 1203 |
+
<div><i class="fas fa-clock mr-1 text-red-500"></i> ${duration} minutes</div>
|
| 1204 |
+
<div><i class="fas fa-tag mr-1 text-red-500"></i> ${getMeetingTypeLabel(meetingType)}</div>
|
| 1205 |
</div>
|
| 1206 |
</div>
|
| 1207 |
|
| 1208 |
<div class="mb-6">
|
| 1209 |
+
<h3 class="text-lg font-semibold mb-3 text-red-500">Points clés</h3>
|
| 1210 |
<ul class="list-disc pl-5 space-y-2">
|
| 1211 |
+
${Array.from(keyPointsList.querySelectorAll('span')).map(el => `<li>${el.textContent}</li>`).join('') || '<li>Aucun point clé ajouté</li>'}
|
| 1212 |
</ul>
|
| 1213 |
</div>
|
| 1214 |
|
| 1215 |
<div class="mb-6">
|
| 1216 |
+
<h3 class="text-lg font-semibold mb-3 text-red-500">Compte rendu</h3>
|
| 1217 |
+
<div class="prose max-w-none">
|
| 1218 |
${content}
|
| 1219 |
</div>
|
| 1220 |
</div>
|
| 1221 |
|
| 1222 |
${files.length > 0 ? `
|
| 1223 |
<div class="mb-6">
|
| 1224 |
+
<h3 class="text-lg font-semibold mb-3 text-red-500">Documents joints</h3>
|
| 1225 |
<div class="grid grid-cols-1 md:grid-cols-2 gap-3">
|
| 1226 |
${files.map(file => `
|
| 1227 |
+
<div class="flex items-center bg-white border border-gray-200 rounded-lg p-3">
|
| 1228 |
<i class="fas ${getFileIconClass(file.name)} mr-3 text-lg"></i>
|
| 1229 |
<div>
|
| 1230 |
<div class="text-sm font-medium truncate">${file.name}</div>
|
| 1231 |
+
<div class="text-xs text-gray-500">${formatFileSize(file.size)}</div>
|
| 1232 |
</div>
|
| 1233 |
</div>
|
| 1234 |
`).join('')}
|
|
|
|
| 1236 |
</div>
|
| 1237 |
` : ''}
|
| 1238 |
|
| 1239 |
+
<div class="pt-6 border-t border-gray-200">
|
| 1240 |
+
<h3 class="text-lg font-semibold mb-3 text-red-500">Participants</h3>
|
| 1241 |
<div class="flex flex-wrap gap-2">
|
| 1242 |
+
${Array.from(document.querySelectorAll('.participant-chip input[type="checkbox"]:checked')).map(el => {
|
| 1243 |
+
const label = el.closest('.participant-chip');
|
| 1244 |
const text = label.textContent.trim();
|
| 1245 |
const matches = text.match(/(.+?)\s\((.+?)\)/);
|
| 1246 |
if (matches && matches.length === 3) {
|
| 1247 |
+
return `<span class="flex items-center bg-gray-100 rounded-full px-3 py-1">
|
| 1248 |
+
<i class="fas fa-user-circle mr-2 text-red-500"></i>
|
| 1249 |
${matches[1]} <${matches[2]}>
|
| 1250 |
</span>`;
|
| 1251 |
} else if (text.includes("Tous les participants")) {
|
| 1252 |
return `
|
| 1253 |
+
<span class="flex items-center bg-gray-100 rounded-full px-3 py-1">
|
| 1254 |
+
<i class="fas fa-user-circle mr-2 text-red-500"></i>
|
| 1255 |
Christophe Girard <christophe.girard@gmail.com>
|
| 1256 |
</span>
|
| 1257 |
+
<span class="flex items-center bg-gray-100 rounded-full px-3 py-1">
|
| 1258 |
+
<i class="fas fa-user-circle mr-2 text-red-500"></i>
|
| 1259 |
Nathalie Duval <okckool@yahoo.fr>
|
| 1260 |
</span>`;
|
| 1261 |
}
|
|
|
|
| 1289 |
radioCards.forEach(card => {
|
| 1290 |
const radioInput = card.querySelector('input[type="radio"]');
|
| 1291 |
|
|
|
|
| 1292 |
if (radioInput.checked) {
|
| 1293 |
card.classList.add('selected');
|
| 1294 |
+
card.querySelector('.bg-red-500').classList.remove('hidden');
|
| 1295 |
}
|
| 1296 |
|
| 1297 |
card.addEventListener('click', function() {
|
|
|
|
| 1298 |
document.querySelectorAll(`.radio-card input[name="${radioInput.name}"]`).forEach(input => {
|
| 1299 |
input.closest('.radio-card').classList.remove('selected');
|
| 1300 |
+
input.closest('.radio-card').querySelector('.bg-red-500').classList.add('hidden');
|
| 1301 |
});
|
| 1302 |
|
|
|
|
| 1303 |
radioInput.checked = true;
|
| 1304 |
card.classList.add('selected');
|
| 1305 |
+
card.querySelector('.bg-red-500').classList.remove('hidden');
|
| 1306 |
});
|
| 1307 |
});
|
| 1308 |
|