marinofaggiana 6 年 前
コミット
27dd4ad603

+ 1 - 0
iOSClient/Database/NCManageDatabase.swift

@@ -501,6 +501,7 @@ class NCManageDatabase: NSObject {
                     result.businessSize = Double(userProfile.businessSize)
                     result.businessType = userProfile.businessType
                     result.city = userProfile.city
+                    result.country = userProfile.country
                     result.company = userProfile.company
                     result.role = userProfile.role
                     result.zip = userProfile.zip

+ 9 - 0
iOSClient/Settings/CCManageAccount.m

@@ -132,6 +132,15 @@
         [section addFormRow:row];
     }
     
+    // Country
+    if ([tableAccount.country length] > 0) {
+        row = [XLFormRowDescriptor formRowDescriptorWithTag:@"usercity" rowType:XLFormRowDescriptorTypeInfo title:NSLocalizedString(@"_user_country_", nil)];
+        [row.cellConfig setObject:[UIFont systemFontOfSize:15.0]forKey:@"textLabel.font"];
+        [row.cellConfig setObject:[UIFont systemFontOfSize:15.0]forKey:@"detailTextLabel.font"];
+        row.value = tableAccount.country;
+        [section addFormRow:row];
+    }
+    
     // Zip
     if ([tableAccount.zip length] > 0) {
         row = [XLFormRowDescriptor formRowDescriptorWithTag:@"userzip" rowType:XLFormRowDescriptorTypeInfo title:NSLocalizedString(@"_user_zip_", nil)];

+ 1 - 0
iOSClient/Supporting Files/en.lproj/Localizable.strings

@@ -190,6 +190,7 @@
 "_user_businesssize_"           = "Business size";
 "_user_businesstype_"           = "Business type";
 "_user_city_"                   = "City";
+"_user_country_"                = "Country";
 "_user_company_"                = "Company";
 "_user_role_"                   = "Role";
 "_user_zip_"                    = "Zip";