File tree Expand file tree Collapse file tree 4 files changed +14
-5
lines changed Expand file tree Collapse file tree 4 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 83
83
#links_content {
84
84
overflow : auto ;
85
85
box-shadow : $shadow-color 1px 1px 1px ;
86
- height : 20em ;
86
+ min-height : 20em ;
87
+ padding-bottom : 1em ;
87
88
88
89
h4 {
89
90
margin-left : 5px ;
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ const WEEKDAYS = [
37
37
] as const ;
38
38
39
39
const SLOT_HEIGHT = 20 as const ; // Each 15min has a height of 20px in the timetable
40
- const SLOT_WIDTH = 400 as const ; // Each weekday ha a width of 400px in the timetable
40
+ const SLOT_WIDTH = 250 as const ; // Each weekday ha a width of 400px in the timetable
41
41
const MINUTES_PER_SLOT = 15 as const ;
42
42
43
43
interface TimetableSlot {
Original file line number Diff line number Diff line change 23
23
display : flex ;
24
24
flex-direction : column ;
25
25
justify-content : center ;
26
+
27
+ .course-type {
28
+ position : absolute ;
29
+ top : 0 ;
30
+ right : 0 ;
31
+ padding : 10px ;
32
+ }
26
33
}
27
34
}
28
35
}
Original file line number Diff line number Diff line change 9
9
{% - endblock -%}
10
10
11
11
{% block title %}
12
- {% trans %} Timeplan generator{% endtrans %}
12
+ {% trans %} Timetable generator{% endtrans %}
13
13
{% endblock %}
14
14
15
15
{% block content %}
16
16
<div x-data =" timetableGenerator" >
17
17
<form @submit.prevent =" generate()" >
18
18
<h1 >Générateur d'emploi du temps</h1 >
19
19
<div class =" alert alert-red" x-show =" !!error" x-cloak >
20
- <p class =" alert-main" x-text =" error" ></p >
20
+ <span class =" alert-main" x-text =" error" ></span >
21
21
</div >
22
22
<div class =" form-group" >
23
23
<label for =" timetable-input" >Colle ton emploi du temps (sans l'entête)</label >
38
38
<div class =" content" >
39
39
<template x-for =" course in courses" >
40
40
<div class =" slot" :style =" getStyle(course)" >
41
- <span x-text =" `${course.ueCode} (${course.courseType})`" ></span >
41
+ <span class =" course-type" x-text =" course.courseType" ></span >
42
+ <span x-text =" course.ueCode" ></span >
42
43
<span x-text =" `${course.startHour} - ${course.endHour}`" ></span >
43
44
<span x-text =" (course.weekGroup ? `\nGroupe ${course.weekGroup}` : '')" ></span >
44
45
<span x-text =" course.room" ></span >
You can’t perform that action at this time.
0 commit comments