From 900940825dc048f9ebeb5f5c04d2bfc3d1bdffc7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come@opensides.be>
Date: Wed, 11 Jul 2018 11:29:06 +0200
Subject: [PATCH] :ambulance: fix(core) Small fixes for public form support

issue #5854
---
 html/themes/breezy/less/login.less | 1 +
 html/themes/breezy/login.css       | 1 +
 include/class_template.inc         | 4 ++++
 3 files changed, 6 insertions(+)

diff --git a/html/themes/breezy/less/login.less b/html/themes/breezy/less/login.less
index 78d9cde0a..cf592fedb 100644
--- a/html/themes/breezy/less/login.less
+++ b/html/themes/breezy/less/login.less
@@ -27,6 +27,7 @@ div#window-container {
 div#window-div {
   min-width: 50%;
   margin-top: 100px;
+  margin-bottom: 30px;
   border: 1px solid @border-color-1;
   background-color: @background-second-color;
   display: inline-block;
diff --git a/html/themes/breezy/login.css b/html/themes/breezy/login.css
index e4bf9e079..93115953a 100644
--- a/html/themes/breezy/login.css
+++ b/html/themes/breezy/login.css
@@ -25,6 +25,7 @@ div#window-container {
 div#window-div {
   min-width: 50%;
   margin-top: 100px;
+  margin-bottom: 30px;
   border: 1px solid #c0c2c3;
   background-color: #f3f4f4;
   display: inline-block;
diff --git a/include/class_template.inc b/include/class_template.inc
index f3a01461c..f589585fd 100644
--- a/include/class_template.inc
+++ b/include/class_template.inc
@@ -96,6 +96,10 @@ class template
             $this->attributes[$class][] = $attr;
           }
         }
+        if (empty($this->attributes[$class]) && $tab->ignore_account) {
+          // Do not show empty sections for tabs which are not explicitely enabled
+          unset($this->attributes[$class]);
+        }
       }
     }
   }
-- 
GitLab