diff options
author | polo <ordipolo@gmx.fr> | 2025-06-23 17:22:28 +0200 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2025-06-23 17:22:45 +0200 |
commit | ff2a45feb0080b89db8c6193306a4676705ea607 (patch) | |
tree | 216ad216f31591d22929ceb35bef43da6e6e0530 /public | |
parent | cebc19ef236aac2968d2ffccfcff9b975b63fa8d (diff) | |
download | cms-ff2a45feb0080b89db8c6193306a4676705ea607.zip |
diverses améliorations de l'affichage
Diffstat (limited to 'public')
-rw-r--r-- | public/css/calendar.css | 21 | ||||
-rw-r--r-- | public/css/foot.css | 1 | ||||
-rw-r--r-- | public/js/calendar.js | 29 | ||||
-rw-r--r-- | public/js/calendar_admin.js | 4 |
4 files changed, 39 insertions, 16 deletions
diff --git a/public/css/calendar.css b/public/css/calendar.css index 87ce75f..fb2b2fa 100644 --- a/public/css/calendar.css +++ b/public/css/calendar.css | |||
@@ -2,15 +2,16 @@ | |||
2 | border: 2px double; | 2 | border: 2px double; |
3 | border-radius: 5px; | 3 | border-radius: 5px; |
4 | width: max-content; | 4 | width: max-content; |
5 | padding: 5px; | ||
5 | } | 6 | } |
6 | #calendar_zone{ | 7 | #calendar_zone{ |
7 | display: flex; | 8 | display: flex; |
8 | gap: 15px; | 9 | gap: 5px; |
9 | padding: 15px; | 10 | padding: 15px; |
10 | /*max-width: 1000px;*/ | 11 | /*max-width: 1000px;*/ |
11 | } | 12 | } |
12 | #calendar{ | 13 | #calendar{ |
13 | width: -moz-available; | 14 | width: 1170px; |
14 | } | 15 | } |
15 | .event_title_box{ | 16 | .event_title_box{ |
16 | display: flex; | 17 | display: flex; |
@@ -49,3 +50,19 @@ td .fc-timegrid-axis{ | |||
49 | background-color: #00679e; | 50 | background-color: #00679e; |
50 | border-radius: 5px; | 51 | border-radius: 5px; |
51 | } | 52 | } |
53 | |||
54 | @media screen and (max-width: 900px){ | ||
55 | #calendar_zone{ | ||
56 | padding: 0; | ||
57 | } | ||
58 | .fc-toolbar-title{ | ||
59 | font-size: large !important; | ||
60 | } | ||
61 | } | ||
62 | @media screen and (max-width: 650px){ | ||
63 | .fc-toolbar-chunk{ | ||
64 | font-size: smaller; | ||
65 | } | ||
66 | } | ||
67 | @media screen and (max-width: 550px){ | ||
68 | } \ No newline at end of file | ||
diff --git a/public/css/foot.css b/public/css/foot.css index 023a0f2..dd9b953 100644 --- a/public/css/foot.css +++ b/public/css/foot.css | |||
@@ -134,6 +134,7 @@ footer > div | |||
134 | background-color: #ffff00; | 134 | background-color: #ffff00; |
135 | position: fixed; | 135 | position: fixed; |
136 | bottom: 0px; | 136 | bottom: 0px; |
137 | z-index: 1; /* augmenter la valeur si nécessaire */ | ||
137 | } | 138 | } |
138 | .logged_in button | 139 | .logged_in button |
139 | { | 140 | { |
diff --git a/public/js/calendar.js b/public/js/calendar.js index 2193272..7450a91 100644 --- a/public/js/calendar.js +++ b/public/js/calendar.js | |||
@@ -12,8 +12,8 @@ document.addEventListener('DOMContentLoaded', function(){ | |||
12 | headerToolbar:{ | 12 | headerToolbar:{ |
13 | left: 'prev,next today', | 13 | left: 'prev,next today', |
14 | center: 'title', | 14 | center: 'title', |
15 | right: 'dayGridMonth,timeGridWeek,timeGridDay,listWeek' | 15 | //right: 'dayGridMonth,timeGridWeek,timeGridDay,listWeek' |
16 | //right: 'dayGridMonth,timeGridWeek' | 16 | right: 'dayGridMonth,timeGridWeek,listWeek' |
17 | }, | 17 | }, |
18 | slotMinWidth: 70, | 18 | slotMinWidth: 70, |
19 | defaultAllDay: false, | 19 | defaultAllDay: false, |
@@ -62,20 +62,25 @@ document.addEventListener('DOMContentLoaded', function(){ | |||
62 | const start = formatDate(info.event.start); | 62 | const start = formatDate(info.event.start); |
63 | const start_date = start.split('T')[0]; | 63 | const start_date = start.split('T')[0]; |
64 | const start_hour = (info.event.allDay ? '' : '<br>à ' + start.split('T')[1]).replace(":", "h"); | 64 | const start_hour = (info.event.allDay ? '' : '<br>à ' + start.split('T')[1]).replace(":", "h"); |
65 | const formated_start = 'le ' + start_date.split('-')[2] + '/' + start_date.split('-')[1] + '/' + start_date.split('-')[0] + start_hour; | 65 | const formated_start = start_date.split('-')[2] + '/' + start_date.split('-')[1] + '/' + start_date.split('-')[0] + start_hour; |
66 | const end = formatDate(info.event.allDay ? minusOneDay(info.event.end) : info.event.end, info.event.allDay); | 66 | const end = formatDate(info.event.allDay ? minusOneDay(info.event.end) : info.event.end, info.event.allDay); |
67 | const end_date = end.split('T')[0]; | 67 | const end_date = end.split('T')[0]; |
68 | const end_hour = (info.event.allDay ? '' : '<br>à ' + end.split('T')[1]).replace(":", "h"); | 68 | const end_hour = (info.event.allDay ? '' : '<br>à ' + end.split('T')[1]).replace(":", "h"); |
69 | const formated_end = 'le ' + end_date.split('-')[2] + '/' + end_date.split('-')[1] + '/' + end_date.split('-')[0] + end_hour; | 69 | const formated_end = end_date.split('-')[2] + '/' + end_date.split('-')[1] + '/' + end_date.split('-')[0] + end_hour; |
70 | 70 | ||
71 | const aside_content = `<div class="event" style="border-color: ` + info.event.backgroundColor +`;"> | 71 | let aside_content = `<div class="event" style="border-color: ` + info.event.backgroundColor +`;"> |
72 | <h3>` + info.event.title + `</h3> | 72 | <h3>` + info.event.title + `</h3> |
73 | <p><i>` + info.event.extendedProps.description + `</i></p> | 73 | <p><i>` + info.event.extendedProps.description + `</i></p>`; |
74 | <p>Journée entière: <br>` + (checked ? 'oui' : 'non') + `</p> | 74 | if(checked && (formated_start === formated_end)){ // affichage simplifié évènement d'un jour |
75 | <p>Début: <br>` + formated_start + `</p> | 75 | aside_content = aside_content + `<p>le ` + formated_start + `</p> |
76 | <p>Fin: <br> ` + formated_end + `</p> | ||
77 | </div>`; | 76 | </div>`; |
78 | 77 | } | |
78 | else{ | ||
79 | aside_content = aside_content + `<p>du ` + formated_start + `</p> | ||
80 | <p>au ` + formated_end + `</p> | ||
81 | </div>`; | ||
82 | } | ||
83 | |||
79 | aside.innerHTML = aside_content; | 84 | aside.innerHTML = aside_content; |
80 | calendar.updateSize(); | 85 | calendar.updateSize(); |
81 | }, | 86 | }, |
@@ -94,7 +99,7 @@ document.addEventListener('DOMContentLoaded', function(){ | |||
94 | } | 99 | } |
95 | 100 | ||
96 | document.addEventListener('keydown', function(event){ | 101 | document.addEventListener('keydown', function(event){ |
97 | if(event.key === 'Escape') { | 102 | if(event.key === 'Escape'){ |
98 | hideModal(); | 103 | hideModal(); |
99 | } | 104 | } |
100 | }); | 105 | }); |
diff --git a/public/js/calendar_admin.js b/public/js/calendar_admin.js index a99b069..8d764d8 100644 --- a/public/js/calendar_admin.js +++ b/public/js/calendar_admin.js | |||
@@ -13,8 +13,8 @@ document.addEventListener('DOMContentLoaded', function(){ | |||
13 | headerToolbar:{ | 13 | headerToolbar:{ |
14 | left: 'prev,next today', | 14 | left: 'prev,next today', |
15 | center: 'title', | 15 | center: 'title', |
16 | right: 'dayGridMonth,timeGridWeek,timeGridDay,listWeek' | 16 | //right: 'dayGridMonth,timeGridWeek,timeGridDay,listWeek' |
17 | //right: 'dayGridMonth,timeGridWeek' | 17 | right: 'dayGridMonth,timeGridWeek,listWeek' |
18 | }, | 18 | }, |
19 | slotMinWidth: 70, | 19 | slotMinWidth: 70, |
20 | defaultAllDay: false, | 20 | defaultAllDay: false, |