From 4b07b0332822d7479360f70797f5cad08af9f2fd Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Sun, 22 Jun 2025 15:05:08 +0200 Subject: [PATCH] add course buttons --- teleforma/static/teleforma/css/teleforma.css | 33 +++++++++++++++++-- .../templates/teleforma/course_detail.html | 24 +++++++++++--- 2 files changed, 50 insertions(+), 7 deletions(-) diff --git a/teleforma/static/teleforma/css/teleforma.css b/teleforma/static/teleforma/css/teleforma.css index 09be8596..ff22c025 100644 --- a/teleforma/static/teleforma/css/teleforma.css +++ b/teleforma/static/teleforma/css/teleforma.css @@ -1,6 +1,9 @@ body {margin: 0; padding: 0;} a {text-decoration: none; color: #969696;} a img {border: none;} +html { + scroll-behavior: smooth; +} html, input, select, textarea, h1, h2, h3, h4, h5, h6 { font-size: 100%; } @@ -1709,7 +1712,7 @@ form.add_actus #id_text_parent{ } .course { - margin: 0em 0em 2em 0em; + margin: 1em 0em 1em 0em; background-color: #FFF; -moz-border-radius: 8px 0px 8px 8px; -webkit-border-radius: 8px 0px 8px 8px; @@ -1719,19 +1722,45 @@ form.add_actus #id_text_parent{ background-repeat:repeat; } +.course_main_title { + color: #355ea2; + -moz-border-radius: 8px 0px 0px 0px; + -webkit-border-radius: 8px 0px 0px 0px; + border-radius: 8px 0px 0px 0px; + padding: 0.25em 0em 1em 0em; + font-weight: bold; + font-size: 1.75em; + display: flex; + flex-direction: row; + justify-content: space-between; +} + +.course_button { + padding: 10px; + line-height: 3em; +} + +.course_button:hover { + padding: 10px; + line-height: 3em; +} + .course_title { color: #355ea2; -moz-border-radius: 8px 0px 0px 0px; -webkit-border-radius: 8px 0px 0px 0px; border-radius: 8px 0px 0px 0px; - padding: 0em; + padding: 1em 0em 0.5em 0em; font-weight: bold; font-size: 1.2em; display: flex; flex-direction: row; justify-content: space-between; + scroll-margin-block-start: 1em; + scroll-margin-block-end: 1em; } + .create-bbb-conference { font-size: 0.8em; } diff --git a/teleforma/templates/teleforma/course_detail.html b/teleforma/templates/teleforma/course_detail.html index 3f7ca1fd..989dd767 100644 --- a/teleforma/templates/teleforma/course_detail.html +++ b/teleforma/templates/teleforma/course_detail.html @@ -24,13 +24,27 @@ {% endif %} - -

{% for c in courses %} {% with c.course as course %} +
+ {{ course.title }} +
+
+ {% for type in c.types %} + + {{ type }} + + {% endfor %} + + Webclasses + + + Corrections de copies + +
{% for type in c.types %}
-
{{ course.title }} - {{ type }}{% if course.description %} - +
{{ type }}{% if course.description %} - {{ course.description }}{% endif %}
@@ -70,7 +84,7 @@ {% endfor %}
-
{{ course.title }} - Webclass{% if course.description %} - +
Webclasses{% if course.description %} - {{ course.description }}{% endif %}
{% block webclass %} @@ -80,7 +94,7 @@
-
{{ course.title }} - Corrections de copies{% if course.description %} - +
Corrections de copies{% if course.description %} - {{ course.description }}{% endif %} {% if user.is_staff or user.professor.count %}Créer une correction de copie{% endif %} -- 2.39.5