From 386d22c35bc9a747109ed58b54d8699ce17759f5 Mon Sep 17 00:00:00 2001 From: Christophe Robillard Date: Sun, 22 Mar 2026 22:15:11 +0100 Subject: [PATCH] show mood pic in form --- app/views/day_logs/edit.html.haml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/app/views/day_logs/edit.html.haml b/app/views/day_logs/edit.html.haml index 1f3fcaa..fb32673 100644 --- a/app/views/day_logs/edit.html.haml +++ b/app/views/day_logs/edit.html.haml @@ -1,3 +1,13 @@ -%h1 Modifier le journal +%main.columns.m-auto + .current-day.column.is-hidden-mobile + %section.m-4 + %figure.image.has-ratio + = image_tag @mood ? @mood.mode.image_url : "unknown.jpg" -= render 'form', day_log: @day_log + %section.section.column.has-background-primary-light + %h1.title.is-4 + %span.icon + %i.fa-regular.fa-calendar + %span= l @day_log.day, format: :long + + = render 'form', day_log: @day_log