From e283114cdf5eeca424c6c01e5a65584a48b03622 Mon Sep 17 00:00:00 2001
From: antoine37120 <ant.dupre@gmail.com>
Date: Wed, 10 May 2023 13:15:31 +0200
Subject: [PATCH] feature: update community form
 applications/tzcld/management/11

---
 src/custom-tzcld.js   | 24 +++++-------------------
 src/styles/index.scss |  7 +++++++
 2 files changed, 12 insertions(+), 19 deletions(-)

diff --git a/src/custom-tzcld.js b/src/custom-tzcld.js
index a8d17c5..a8f8857 100644
--- a/src/custom-tzcld.js
+++ b/src/custom-tzcld.js
@@ -287,7 +287,7 @@ import("./utils.js").then((utils) => {
         fields="segment1(phone, phone_type, phone_public)"
         class-segment1="segment full sm-full rowClear"
         class-phone="segment margin-bottom-medium width-45 sm-full padding-right-small sm-padding-none text-xlarge text-semibold text-color-heading"
-        class-phone_type="segment margin-bottom-medium width-45 sm-full padding-left-small padding-right-small sm-padding-none text-xlarge text-semibold text-color-heading"
+        class-phone_type="segment margin-bottom-medium width-45 sm-full padding-left-small sm-padding-none text-xlarge text-semibold text-color-heading"
         class-phone_public="segment margin-bottom-medium width-10 sm-full padding-left-small padding-right-small sm-padding-none text-xlarge text-semibold text-color-heading  text-uppercase tzcld-checkbox"
         widget-phone_public="solid-form-checkbox-label"
         label-phone="Téléphone *"
@@ -308,7 +308,7 @@ import("./utils.js").then((utils) => {
         fields="segment1(email, email_type, email_public)"
         class-segment1="segment full sm-full rowClear"
         class-email="segment margin-bottom-medium width-45 sm-full padding-right-small sm-padding-none text-xlarge text-semibold text-color-heading"
-        class-email_type="segment margin-bottom-medium width-45 sm-full padding-left-small padding-right-small sm-padding-none text-xlarge text-semibold text-color-heading"
+        class-email_type="segment margin-bottom-medium width-45 sm-full padding-left-small sm-padding-none text-xlarge text-semibold text-color-heading"
         class-email_public="segment margin-bottom-medium width-10 sm-full padding-left-small padding-right-small sm-padding-none text-xlarge text-semibold text-color-heading text-uppercase tzcld-checkbox"
         widget-email_public="solid-form-checkbox-label"
         label-email="E-mail *"
@@ -382,30 +382,19 @@ import("./utils.js").then((utils) => {
       data-src="\${value}"
       data-holder
       naked
-      fields="segment11(name), segment12(address, postal_code), segment13(city, department), phones, emails, link, segment14(twitter_link, linkedin_link)"
+      fields="segment11(name), segment12(address), segment13(postal_code, city), phones, emails"
       value-profile="\${value}"
       class-segment11="segment full sm-full rowClear"
       class-segment12="segment full sm-full rowClear"
       class-segment13="segment full sm-full rowClear"
-      class-segment14="segment full sm-full rowClear"
       class-name="segment margin-bottom-medium full sm-full sm-padding-none text-xlarge text-semibold text-color-heading"
       class-address="segment margin-bottom-medium half sm-full padding-right-small sm-padding-none text-xlarge text-semibold text-color-heading"
-      class-postal_code="segment margin-bottom-medium half sm-full padding-left-small sm-padding-none text-xlarge text-semibold text-color-heading"
-      class-city="segment margin-bottom-medium half sm-full padding-right-small sm-padding-none text-xlarge text-semibold text-color-heading"
-      class-department="segment margin-bottom-medium half sm-full padding-left-small padding-right-small sm-padding-none text-xlarge text-semibold text-color-heading"
-      
-      class-link="segment margin-bottom-medium full sm-full sm-padding-none text-xlarge text-semibold text-color-heading"
-      class-twitter_link="segment margin-bottom-medium half sm-full padding-right-small sm-padding-none text-xlarge text-semibold text-color-heading"
-      class-linkedin_link="segment margin-bottom-medium half sm-full padding-left-small sm-padding-none text-xlarge text-semibold text-color-heading"
-
+      class-postal_code="segment margin-bottom-medium half sm-full padding-right-small sm-padding-none text-xlarge text-semibold text-color-heading"
+      class-city="segment margin-bottom-medium half sm-full padding-left-small sm-padding-none text-xlarge text-semibold text-color-heading"
       label-name="Nom de l'adresse"
       label-address="Adresse"
       label-postal_code="Code postal"
       label-city="Ville"
-      label-department="Département"
-      label-link="URL Site internet"
-      label-twitter_link="URL Twitter"
-      label-linkedin_link="URL Linkedin"
       multiple-phones
       widget-phones="customtzcld-form-profile-phone-widget"
       multiple-phones-label= "Téléphone"
@@ -417,9 +406,6 @@ import("./utils.js").then((utils) => {
       multiple-emails-add-label= "Ajouter un E-mail"
       multiple-emails-remove-label= "Supprimer"
       multiple-emails-remove-class= "multiple-delete"
-      
-      widget-department="solid-form-dropdown-label"
-      range-department="${dataSrc}tzcld-departments/"
 
     ></solid-form>
     </template>
diff --git a/src/styles/index.scss b/src/styles/index.scss
index c8c487b..fcbdac0 100644
--- a/src/styles/index.scss
+++ b/src/styles/index.scss
@@ -279,6 +279,13 @@ solid-form {
     line-height: 25px;
   }
   solid-form-radio-label {
+    >div {
+      padding: 12px;
+      margin-top: 5px;
+      label {
+        padding-right: 10px;
+      }
+    }
     div>label>span {
       color: var(--color-bold-grey);
       font-size: 16px;
-- 
GitLab