From 96ab6269014573773f2379e93d13dd762516b9c8 Mon Sep 17 00:00:00 2001 From: Christian Beeznest Date: Fri, 31 Oct 2025 16:36:53 -0500 Subject: [PATCH] Session: Improve summary UI/UX --- .../default/session/resume_session.html.twig | 337 +++++++++++------- 1 file changed, 204 insertions(+), 133 deletions(-) diff --git a/public/main/template/default/session/resume_session.html.twig b/public/main/template/default/session/resume_session.html.twig index 18e7904f6b5..cbe6a301082 100644 --- a/public/main/template/default/session/resume_session.html.twig +++ b/public/main/template/default/session/resume_session.html.twig @@ -2,139 +2,210 @@ {% block content %} -{% autoescape false %} -{{ session_header }} -{{ title }} - - - - - - - - - - - {% if session.category %} - - - - - {% endif %} - - {% if session.duration > 0 %} - - - - - {% else %} - - - - - - - - - - - - - {% endif %} - - - - - - - - - - - - - - {% if session.promotion %} - - - - - - - - - {% endif %} - - {% if url_list %} - - - - - {% endif %} - - {% for extra_field in extra_fields %} - - - {% if extra_field.value is iterable %} - - {% else %} - + + {# Scheduled announcements #} + {% if programmed_announcement %} +
+ + + {{ 'Scheduled announcements'|trans }} + +
{% endif %} - - {% endfor %} - - {% if programmed_announcement %} - - - - - {% endif %} -
{{ 'Created by'|trans }} - {% for session_admin in session.sessionAdmins %} - {{ session_admin | user_complete_name_with_link }}
- {% endfor %} -
{{ 'General coach' | trans}} : - {% for coach in session.generalCoaches %} - {{ coach | user_complete_name_with_link }}
- {% endfor %} -
{{ 'Session category' | trans}} {{ session.category.title }}
{{ 'Duration' | trans}} - {{ session.duration }} {{ 'Days' | trans }} -
{{ 'Dates shown' | trans}} {{ session_dates.display }}
{{ 'Access dates for students' | trans}} {{ session_dates.access }}
{{ 'Access dates for coaches' | trans}} {{ session_dates.coach }}
{{ 'Description' | trans}} - {{ session.description }} -
{{ 'Show description' | trans}} - {% if session.showDescription == 1 %} - {{ 'Yes' | trans}} - {% else %} - {{ 'No' | trans}} +
+ + {% autoescape false %} +
+ {{ session_header }} + {{ title }} +
+ {% endautoescape %} + + {# Session overview card #} +
+
+ +

{{ 'Session overview'|trans }}

+
+ +
+ + {# Created by #} +
+
{{ 'Created by'|trans }}
+
+ {% autoescape false %} + {% for session_admin in session.sessionAdmins %} + {{ session_admin | user_complete_name_with_link }}
+ {% else %} + {{ 'None'|trans }} + {% endfor %} + {% endautoescape %} +
+
+ + {# General coach #} +
+
{{ 'General coach'|trans }}
+
+ {% autoescape false %} + {% for coach in session.generalCoaches %} + {{ coach | user_complete_name_with_link }}
+ {% else %} + {{ 'None'|trans }} + {% endfor %} + {% endautoescape %} +
+
+ + {# Session category #} + {% if session.category %} +
+
{{ 'Session category'|trans }}
+
{{ session.category.title }}
+
+ {% endif %} + + {# Duration / Dates #} + {% if session.duration > 0 %} +
+
{{ 'Duration'|trans }}
+
{{ session.duration }} {{ 'Days'|trans }}
+
+ {% else %} +
+
{{ 'Dates shown'|trans }}
+
{{ session_dates.display }}
+
+
+
{{ 'Access dates for students'|trans }}
+
{{ session_dates.access }}
+
+
+
{{ 'Access dates for coaches'|trans }}
+
{{ session_dates.coach }}
+
+ {% endif %} + + {# Visibility #} +
+
{{ 'Visibility after end date'|trans }}
+
+ + {{ session_visibility }} + +
+
+ + {# Career / Promotion #} + {% if session.promotion %} +
+
{{ 'Career'|trans }}
+
+ + {{ session.promotion.career.title }} + +
+
+
+
{{ 'Promotion'|trans }}
+
+ + {{ session.promotion.title }} + +
+
+ {% endif %} + + {# URLs #} + {% if url_list %} +
+
URL
+
+ {% for url in url_list %} + + {{ url.url }} + + {% endfor %} +
+
+ {% endif %} + + {# Extra fields #} + {% if extra_fields is not empty %} +
+
{{ 'Extra fields'|trans }}
+
+ {% for extra_field in extra_fields %} +
+
{{ extra_field.text }}
+
+ {% if extra_field.value is iterable %} + {{ extra_field.value.value|raw }} + {% else %} + {{ extra_field.value|raw }} + {% endif %} +
+
+ {% endfor %} +
+
+ {% endif %} +
+ + {# Description #} + {% if session.description %} +
+

{{ 'Description'|trans }}

+
+ {{ session.description|raw }} +
+
{% endif %} -
{{ 'Visibility after end date' | trans}} - {{ session_visibility }} -
{{ 'Career' | trans}} - - {{ session.promotion.career.title }} - -
{{ 'Promotion' | trans}} - - {{ session.promotion.title }} - -
URL - {% for url in url_list %} - {{ url.url }} - {% endfor %} -
{{ extra_field.text }}{{ extra_field.value.value }}{{ extra_field.value }}
{{ 'Scheduled announcements' | trans }} - - {{ 'Edit' | trans }} - -
- -{{ course_list }} -{{ user_list }} -{{ requirements }} -{{ dependencies }} - -{% endautoescape %} + + + {# Course list #} +
+
+ + {{ 'Course list'|trans }} +
+
+
+ {% autoescape false %}{{ course_list }}{% endautoescape %} +
+
+
+ + {# User list #} + {% if user_list is not empty %} +
+
+ + {{ 'User list'|trans }} +
+
+
+ {% autoescape false %}{{ user_list }}{% endautoescape %} +
+
+
+ {% endif %} + + {# Requirements / Dependencies #} + {% if requirements %} +
+ {% autoescape false %}{{ requirements }}{% endautoescape %} +
+ {% endif %} + {% if dependencies %} +
+ {% autoescape false %}{{ dependencies }}{% endautoescape %} +
+ {% endif %} + + {% endblock %}