From 163c3bd03a0753078ad07d55b8670d7af030fc21 Mon Sep 17 00:00:00 2001 From: Pat Date: Mon, 5 Feb 2024 11:57:14 -0700 Subject: [PATCH] Adds Class Note media --- css/ucb-class-notes.css | 4 +++ .../content/node--ucb-class-notes.html.twig | 29 +++++++++++++------ 2 files changed, 24 insertions(+), 9 deletions(-) diff --git a/css/ucb-class-notes.css b/css/ucb-class-notes.css index 33c8fe9c..12dd89fd 100644 --- a/css/ucb-class-notes.css +++ b/css/ucb-class-notes.css @@ -1,3 +1,7 @@ .ucb-class-notes{ padding: 20px 0; +} + +.ucb-class-notes-image{ + margin-bottom: 20px; } \ No newline at end of file diff --git a/templates/content/node--ucb-class-notes.html.twig b/templates/content/node--ucb-class-notes.html.twig index 1f2aa0fe..b2576902 100644 --- a/templates/content/node--ucb-class-notes.html.twig +++ b/templates/content/node--ucb-class-notes.html.twig @@ -6,14 +6,25 @@ 'container', ] %} - - - {{ label }} - - {% if content %} - - {{ content }} + + + + {{ label }} + + {% if content %} + +
+ {{ content.body }}
- {% endif %} - + +
+ {{ content.field_ucb_class_note_image }} +
+ +
+ {{ content.field_ucb_class_year }} +
+ + {% endif %} + \ No newline at end of file