From 011085ab6c3bc3a90aa9b7465e66d42004120f14 Mon Sep 17 00:00:00 2001
From: gaelle morin <gmorin.dev@gmail.com>
Date: Tue, 13 Apr 2021 22:18:24 +0200
Subject: [PATCH] patch: profile-edit - last commit to post + styles

---
 .../communities/page-community-edit.pug       | 44 ++++++++-----------
 1 file changed, 18 insertions(+), 26 deletions(-)

diff --git a/src/views/partials/communities/page-community-edit.pug b/src/views/partials/communities/page-community-edit.pug
index 0d919599..57cca4a9 100644
--- a/src/views/partials/communities/page-community-edit.pug
+++ b/src/views/partials/communities/page-community-edit.pug
@@ -93,34 +93,26 @@ div.bg-color-white
 
       h3.segment.full.padding-bottom-small.border-bottom.border-color-grey.text-color-heading.text-bold.text-letter-spacing-large(data-trans="communities.edit.subTitle1")
 
-      solid-ac-checker(permission='acl:Append', bind-resources, nested-field='members')
-        solid-form.segment.half.sm-full.margin-bottom-xlarge.form(
-          bind-resources 
-          nested-field='addresses'
-          fields='address_line1'
-
-          label-address_line1=""
-          class-address_line1='add-member'
-          widget-address_line1="solid-form-label-text"
-
-          submit-button=''
-          submit-widget="button"
-          data-trans="label-address_line1=communities.edit.labelAddressLine1"
-        )
+      solid-form.form(
+        bind-resources
+        nested-field="addresses"
+        fields="address_line1, address_line2"
 
-        solid-form.segment.half-sm-full.margin-bottom-xlarge.form(
-          bind-resources 
-          nested-field='addresses'
-          fields='address_line2'
+        label-address_line1=""
+        label-address_line2=""
 
-          label-address_line2=""
-          class-address_line2='add-member'
-          widget-address_line2="solid-form-label-text"
+        class-address_line1="segment half sm-full sm-margin-bottom-xsmall padding-right-small text-small text-semibold text-uppercase text-color-heading"
+        class-address_line2="segment half sm-full sm-margin-bottom-xsmall padding-left-small text-small text-semibold text-uppercase text-color-heading"
 
-          submit-button=''
-          submit-widget="button"
-          data-trans="label-address_line1=communities.edit.labelAddressLine2"
-        )
+        widget-community="solid-form-hidden"
+        widget-address_line1="solid-form-label-text"
+        widget-address_line2="solid-form-label-text"
+
+        submit-button=""
+        submit-widget="button"
+
+        data-trans="label-address_line1=communities.edit.labelAddressLine1;label-address_line2=communities.edit.labelAddressLine2"     
+      )
 
       .segment.table-wrapper.margin-top-medium
         .table
@@ -146,7 +138,7 @@ div.bg-color-white
             multiple-addresses
             multiple-addresses-fields="address_line1, address_line2"
 
-            action-remove='self'
+            action-remove='remove'
             widget-remove='hubl-circle-edit-members-delete'
           )
 
-- 
GitLab