Browse Source

add images

marinofaggiana 5 years ago
parent
commit
07c9ec7256

+ 15 - 0
iOSClient/Images.xcassets/editUserProfile.imageset/Contents.json

@@ -0,0 +1,15 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "filename" : "editUserProfile.pdf"
+    }
+  ],
+  "info" : {
+    "version" : 1,
+    "author" : "xcode"
+  },
+  "properties" : {
+    "preserves-vector-representation" : true
+  }
+}

BIN
iOSClient/Images.xcassets/editUserProfile.imageset/editUserProfile.pdf


+ 13 - 0
iOSClient/Settings/CCManageAccount.m

@@ -301,6 +301,19 @@
         [row.cellConfig setObject:[CCGraphics changeThemingColorImage:[UIImage imageNamed:@"company"] width:50 height:50 color:[NCBrandColor sharedInstance].icon] forKey:@"imageView.image"];
         row.value = tableAccount.company;
         [section addFormRow:row];
+        
+        section = [XLFormSectionDescriptor formSection];
+        [form addFormSection:section];
+        
+        // Modify Account
+        row = [XLFormRowDescriptor formRowDescriptorWithTag:@"editUserProfile" rowType:XLFormRowDescriptorTypeButton title:NSLocalizedString(@"_user_editprofile_", nil)];
+        [row.cellConfig setObject:[UIFont systemFontOfSize:15.0]forKey:@"textLabel.font"];
+        [row.cellConfig setObject:[CCGraphics changeThemingColorImage:[UIImage imageNamed:@"editUserProfile"] width:50 height:50 color:[NCBrandColor sharedInstance].icon] forKey:@"imageView.image"];
+        [row.cellConfig setObject:@(NSTextAlignmentLeft) forKey:@"textLabel.textAlignment"];
+        [row.cellConfig setObject:[UIColor blackColor] forKey:@"textLabel.textColor"];
+        row.action.formSelector = @selector(xxxxx:);
+        if (listAccount.count == 0) row.disabled = @YES;
+        [section addFormRow:row];
     }
     
     self.form = form;

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

@@ -198,6 +198,7 @@
 "_user_owner_"                  = "Owner";
 "_user_employee_"               = "Employee";
 "_user_contractor_"             = "Contractor";
+"_user_editprofile_"            = "Edit profile";
 "_favorite_offline_"            = "Favorites available offline";
 "_favorite_offline_footer_"     = "Making all favorites available offline may take a while and use a lot of memory while doing it.";
 "_advanced_"                    = "Advanced";