Jelajahi Sumber

fix(admin-ui): Add missing "company" field to address components

Fixes #1591
Michael Bromley 3 tahun lalu
induk
melakukan
e218932e02

+ 20 - 10
packages/admin-ui/src/lib/core/src/shared/components/address-form/address-form.component.html

@@ -1,20 +1,30 @@
 <form [formGroup]="formGroup">
-    <clr-input-container>
-        <label>{{ 'customer.full-name' | translate }}</label>
-        <input formControlName="fullName" type="text" clrInput/>
-    </clr-input-container>
+    <div class="clr-row">
+        <div class="clr-col-md-4">
+            <clr-input-container>
+                <label>{{ 'customer.full-name' | translate }}</label>
+                <input formControlName="fullName" type="text" clrInput />
+            </clr-input-container>
+        </div>
+        <div class="clr-col-md-4">
+            <clr-input-container>
+                <label>{{ 'customer.company' | translate }}</label>
+                <input formControlName="company" type="text" clrInput />
+            </clr-input-container>
+        </div>
+    </div>
 
     <div class="clr-row">
         <div class="clr-col-md-4">
             <clr-input-container>
                 <label>{{ 'customer.street-line-1' | translate }}</label>
-                <input formControlName="streetLine1" type="text" clrInput/>
+                <input formControlName="streetLine1" type="text" clrInput />
             </clr-input-container>
         </div>
         <div class="clr-col-md-4">
             <clr-input-container>
                 <label>{{ 'customer.street-line-2' | translate }}</label>
-                <input formControlName="streetLine2" type="text" clrInput/>
+                <input formControlName="streetLine2" type="text" clrInput />
             </clr-input-container>
         </div>
     </div>
@@ -22,13 +32,13 @@
         <div class="clr-col-md-4">
             <clr-input-container>
                 <label>{{ 'customer.city' | translate }}</label>
-                <input formControlName="city" type="text" clrInput/>
+                <input formControlName="city" type="text" clrInput />
             </clr-input-container>
         </div>
         <div class="clr-col-md-4">
             <clr-input-container>
                 <label>{{ 'customer.province' | translate }}</label>
-                <input formControlName="province" type="text" clrInput/>
+                <input formControlName="province" type="text" clrInput />
             </clr-input-container>
         </div>
     </div>
@@ -36,7 +46,7 @@
         <div class="clr-col-md-4">
             <clr-input-container>
                 <label>{{ 'customer.postal-code' | translate }}</label>
-                <input formControlName="postalCode" type="text" clrInput/>
+                <input formControlName="postalCode" type="text" clrInput />
             </clr-input-container>
         </div>
         <div class="clr-col-md-4">
@@ -52,7 +62,7 @@
     </div>
     <clr-input-container>
         <label>{{ 'customer.phone-number' | translate }}</label>
-        <input formControlName="phoneNumber" type="text" clrInput/>
+        <input formControlName="phoneNumber" type="text" clrInput />
     </clr-input-container>
     <section formGroupName="customFields" *ngIf="formGroup.get('customFields') as customFieldsGroup">
         <label>{{ 'common.custom-fields' | translate }}</label>

+ 1 - 0
packages/admin-ui/src/lib/core/src/shared/components/formatted-address/formatted-address.component.html

@@ -1,5 +1,6 @@
 <ul class="address-lines">
     <li *ngIf="address.fullName">{{ address.fullName }}</li>
+    <li *ngIf="address.company">{{ address.company }}</li>
     <li *ngIf="address.streetLine1">{{ address.streetLine1 }}</li>
     <li *ngIf="address.streetLine2">{{ address.streetLine2 }}</li>
     <li *ngIf="address.city">{{ address.city }}</li>

+ 1 - 0
packages/admin-ui/src/lib/static/i18n-messages/cs.json

@@ -272,6 +272,7 @@
     "add-customers-to-group-with-name": "Add customers to \"{ groupName }\"",
     "addresses": "Adresy",
     "city": "Město",
+    "company": "",
     "confirm-delete-customer-group": "Delete customer group?",
     "confirm-remove-customer-from-group": "Remove customer from group?",
     "country": "Země",

+ 1 - 0
packages/admin-ui/src/lib/static/i18n-messages/de.json

@@ -272,6 +272,7 @@
     "add-customers-to-group-with-name": "Kunden zu \"{ groupName }\" hinzufügen",
     "addresses": "Adressen",
     "city": "Stadt",
+    "company": "",
     "confirm-delete-customer-group": "Kundengruppe löschen?",
     "confirm-remove-customer-from-group": "Von Kundengruppe entfernen?",
     "country": "Land",

+ 1 - 0
packages/admin-ui/src/lib/static/i18n-messages/en.json

@@ -272,6 +272,7 @@
     "add-customers-to-group-with-name": "Add customers to \"{ groupName }\"",
     "addresses": "Addresses",
     "city": "City",
+    "company": "Company",
     "confirm-delete-customer-group": "Delete customer group?",
     "confirm-remove-customer-from-group": "Remove customer from group?",
     "country": "Country",

+ 1 - 0
packages/admin-ui/src/lib/static/i18n-messages/es.json

@@ -272,6 +272,7 @@
     "add-customers-to-group-with-name": "Añadir clientes a \"{ groupName }\"",
     "addresses": "Direcciones",
     "city": "Ciudad",
+    "company": "",
     "confirm-delete-customer-group": "¿Eliminar grupo de clientes?",
     "confirm-remove-customer-from-group": "¿Eliminar cliente del grupo?",
     "country": "País",

+ 1 - 0
packages/admin-ui/src/lib/static/i18n-messages/fr.json

@@ -272,6 +272,7 @@
     "add-customers-to-group-with-name": "Ajouter les clients à \"{ groupName }\"",
     "addresses": "Adresses",
     "city": "Ville",
+    "company": "",
     "confirm-delete-customer-group": "Supprimer le groupe de clients ?",
     "confirm-remove-customer-from-group": "Retirer le client du groupe ?",
     "country": "Pays",

+ 1 - 0
packages/admin-ui/src/lib/static/i18n-messages/it.json

@@ -272,6 +272,7 @@
     "add-customers-to-group-with-name": "Aggiungi clienti a \"{ groupName }\"",
     "addresses": "Indirizzi",
     "city": "Città",
+    "company": "",
     "confirm-delete-customer-group": "Eliminare gruppo di clienti?",
     "confirm-remove-customer-from-group": "Rimuovere il cliente dal gruppo?",
     "country": "Nazione",

+ 1 - 0
packages/admin-ui/src/lib/static/i18n-messages/pl.json

@@ -272,6 +272,7 @@
     "add-customers-to-group-with-name": "",
     "addresses": "Adres",
     "city": "Miasto",
+    "company": "",
     "confirm-delete-customer-group": "",
     "confirm-remove-customer-from-group": "",
     "country": "Kraj",

+ 1 - 0
packages/admin-ui/src/lib/static/i18n-messages/pt_BR.json

@@ -272,6 +272,7 @@
     "add-customers-to-group-with-name": "Adicionado clientes para \"{ groupName }\"",
     "addresses": "Endereços",
     "city": "Cidade",
+    "company": "",
     "confirm-delete-customer-group": "Excluir grupo de cliente?",
     "confirm-remove-customer-from-group": "Excluir cliente do grupo?",
     "country": "País",

+ 1 - 0
packages/admin-ui/src/lib/static/i18n-messages/pt_PT.json

@@ -272,6 +272,7 @@
     "add-customers-to-group-with-name": "Clientes adicionados ao grupo \"{ groupName }\"",
     "addresses": "Moradas",
     "city": "Cidade",
+    "company": "",
     "confirm-delete-customer-group": "Eliminar grupo de cliente?",
     "confirm-remove-customer-from-group": "Eliminar cliente do grupo?",
     "country": "País",

+ 1 - 0
packages/admin-ui/src/lib/static/i18n-messages/ru.json

@@ -272,6 +272,7 @@
     "add-customers-to-group-with-name": "Добавить клиентов в \"{ groupName }\"",
     "addresses": "Адреса",
     "city": "Город",
+    "company": "",
     "confirm-delete-customer-group": "Удалить группу клиентов?",
     "confirm-remove-customer-from-group": "Удалить клиента из группы?",
     "country": "Страна",

+ 1 - 0
packages/admin-ui/src/lib/static/i18n-messages/uk.json

@@ -272,6 +272,7 @@
     "add-customers-to-group-with-name": "Додати клієнтів в \"{ groupName }\"",
     "addresses": "Адреси",
     "city": "Місто",
+    "company": "",
     "confirm-delete-customer-group": "Видалити групу клієнтів?",
     "confirm-remove-customer-from-group": "Видалити клієнта з групи?",
     "country": "Країна",

+ 1 - 0
packages/admin-ui/src/lib/static/i18n-messages/zh_Hans.json

@@ -272,6 +272,7 @@
     "add-customers-to-group-with-name": "添加客户到\"{ groupName }\"分组",
     "addresses": "地址",
     "city": "市",
+    "company": "",
     "confirm-delete-customer-group": "确认删除客户分组?",
     "confirm-remove-customer-from-group": "确认从分组移除客户?",
     "country": "国家",

+ 1 - 0
packages/admin-ui/src/lib/static/i18n-messages/zh_Hant.json

@@ -272,6 +272,7 @@
     "add-customers-to-group-with-name": "",
     "addresses": "地址",
     "city": "市",
+    "company": "",
     "confirm-delete-customer-group": "",
     "confirm-remove-customer-from-group": "",
     "country": "國家",