From 9866298f19ef7e8a0903986b5c510a25f8cd0bd3 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Thu, 5 Jul 2018 08:10:42 +0200 Subject: [PATCH] Improved settings appearance --- assets/css/pages/groups/pages/settings.css | 6 ++++++ assets/js/pages/groups/pages/settings.js | 19 +++++++++++-------- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/assets/css/pages/groups/pages/settings.css b/assets/css/pages/groups/pages/settings.css index e4d4c6e0..db01b751 100644 --- a/assets/css/pages/groups/pages/settings.css +++ b/assets/css/pages/groups/pages/settings.css @@ -15,6 +15,12 @@ margin-bottom: 15px; } +.group-settings-container .separated-block { + margin-top: 25px; + margin-bottom: 30px; + display: block; +} + .group-settings-container .submit-button-container { text-align: center; } diff --git a/assets/js/pages/groups/pages/settings.js b/assets/js/pages/groups/pages/settings.js index 3aa543ef..cb108528 100644 --- a/assets/js/pages/groups/pages/settings.js +++ b/assets/js/pages/groups/pages/settings.js @@ -121,16 +121,17 @@ ComunicWeb.pages.groups.pages.settings = { - //Group visibility - createElem2({ - appendTo: formContainer, - type: "label", - innerHTML: "Group visibility" - }); + //Group visibility var visibilityForm = createElem2({ type: "form", - appendTo: formContainer + appendTo: formContainer, + class: "separated-block" + }); + createElem2({ + appendTo: visibilityForm, + type: "label", + innerHTML: "Group visibility" }); //Open @@ -165,10 +166,12 @@ ComunicWeb.pages.groups.pages.settings = { + //Group registration levels var registrationLevelForm = createElem2({ appendTo: formContainer, type: "form", + class: "separated-block" }); createElem2({ appendTo: registrationLevelForm, @@ -189,7 +192,7 @@ ComunicWeb.pages.groups.pages.settings = { //Moderated createFormGroup({ target: registrationLevelForm, - label: "Moderated registration (anyone can request a membership, but a moderator must review the request)", + label: "Moderated registration (anyone can request a membership, but a moderator review the requests)", name: "group-registration-level", type: "radio", value: "moderated",