|
@@ -93,7 +93,7 @@
|
|
|
|
|
|
row = [XLFormRowDescriptor formRowDescriptorWithTag:@"accountRequest" rowType:XLFormRowDescriptorTypeBooleanSwitch title:NSLocalizedString(@"_settings_account_request_", nil)];
|
|
|
row.cellConfigAtConfigure[@"backgroundColor"] = NCBrandColor.shared.backgroundView;
|
|
|
- [row.cellConfig setObject:[[UIImage imageNamed:@"users"] imageWithColor:NCBrandColor.shared.icon size:25] forKey:@"imageView.image"];
|
|
|
+ [row.cellConfig setObject:[[UIImage imageNamed:@"users"] imageWithColor:NCBrandColor.shared.icon size:20] forKey:@"imageView.image"];
|
|
|
[row.cellConfig setObject:[UIFont systemFontOfSize:15.0] forKey:@"textLabel.font"];
|
|
|
[row.cellConfig setObject:NCBrandColor.shared.textView forKey:@"textLabel.textColor"];
|
|
|
if ([CCUtility getAccountRequest]) row.value = @1;
|
|
@@ -115,7 +115,7 @@
|
|
|
row = [XLFormRowDescriptor formRowDescriptorWithTag:@"addAccount" rowType:XLFormRowDescriptorTypeButton title:NSLocalizedString(@"_add_account_", nil)];
|
|
|
row.cellConfigAtConfigure[@"backgroundColor"] = NCBrandColor.shared.backgroundView;
|
|
|
[row.cellConfig setObject:[UIFont systemFontOfSize:15.0] forKey:@"textLabel.font"];
|
|
|
- [row.cellConfig setObject:[[UIImage imageNamed:@"add"] imageWithColor:NCBrandColor.shared.icon size:25] forKey:@"imageView.image"];
|
|
|
+ [row.cellConfig setObject:[[UIImage imageNamed:@"add"] imageWithColor:NCBrandColor.shared.icon size:20] forKey:@"imageView.image"];
|
|
|
[row.cellConfig setObject:@(NSTextAlignmentLeft) forKey:@"textLabel.textAlignment"];
|
|
|
[row.cellConfig setObject:NCBrandColor.shared.textView forKey:@"textLabel.textColor"];
|
|
|
row.action.formSelector = @selector(addAccount:);
|
|
@@ -127,7 +127,7 @@
|
|
|
row.cellConfigAtConfigure[@"backgroundColor"] = NCBrandColor.shared.backgroundView;
|
|
|
[row.cellConfig setObject:NCBrandColor.shared.textView forKey:@"textLabel.textColor"];
|
|
|
[row.cellConfig setObject:[UIFont systemFontOfSize:15.0] forKey:@"textLabel.font"];
|
|
|
- [row.cellConfig setObject:[[NCUtility shared] loadImageWithNamed:@"trash" color:NCBrandColor.shared.icon size:25] forKey:@"imageView.image"];
|
|
|
+ [row.cellConfig setObject:[[NCUtility shared] loadImageWithNamed:@"trash" color:NCBrandColor.shared.icon size:20] forKey:@"imageView.image"];
|
|
|
[row.cellConfig setObject:@(NSTextAlignmentLeft) forKey:@"textLabel.textAlignment"];
|
|
|
row.action.formSelector = @selector(deleteAccount:);
|
|
|
if (accounts.count == 0) row.disabled = @YES;
|
|
@@ -142,7 +142,7 @@
|
|
|
row.cellConfigAtConfigure[@"backgroundColor"] = NCBrandColor.shared.backgroundView;
|
|
|
[row.cellConfig setObject:NCBrandColor.shared.textView forKey:@"textLabel.textColor"];
|
|
|
[row.cellConfig setObject:[UIFont systemFontOfSize:15.0] forKey:@"textLabel.font"];
|
|
|
- [row.cellConfig setObject:[[UIImage imageNamed:@"userStatusAway"] imageWithColor:NCBrandColor.shared.icon size:25] forKey:@"imageView.image"];
|
|
|
+ [row.cellConfig setObject:[[UIImage imageNamed:@"userStatusAway"] imageWithColor:NCBrandColor.shared.icon size:20] forKey:@"imageView.image"];
|
|
|
[row.cellConfig setObject:@(NSTextAlignmentLeft) forKey:@"textLabel.textAlignment"];
|
|
|
row.action.formSelector = @selector(setUserStatus:);
|
|
|
if (accounts.count == 0) row.disabled = @YES;
|
|
@@ -164,7 +164,7 @@
|
|
|
[row.cellConfig setObject:[UIFont systemFontOfSize:15.0] forKey:@"textLabel.font"];
|
|
|
[row.cellConfig setObject:NCBrandColor.shared.textView forKey:@"textLabel.textColor"];
|
|
|
[row.cellConfig setObject:[UIFont systemFontOfSize:15.0] forKey:@"detailTextLabel.font"];
|
|
|
- [row.cellConfig setObject:[[UIImage imageNamed:@"user"] imageWithColor:NCBrandColor.shared.icon size:25] forKey:@"imageView.image"];
|
|
|
+ [row.cellConfig setObject:[[UIImage imageNamed:@"user"] imageWithColor:NCBrandColor.shared.icon size:20] forKey:@"imageView.image"];
|
|
|
row.value = accountActive.displayName;
|
|
|
[section addFormRow:row];
|
|
|
}
|
|
@@ -176,7 +176,7 @@
|
|
|
[row.cellConfig setObject:[UIFont systemFontOfSize:15.0] forKey:@"textLabel.font"];
|
|
|
[row.cellConfig setObject:[UIFont systemFontOfSize:15.0] forKey:@"detailTextLabel.font"];
|
|
|
[row.cellConfig setObject:NCBrandColor.shared.textView forKey:@"textLabel.textColor"];
|
|
|
- [row.cellConfig setObject:[[UIImage imageNamed:@"address"] imageWithColor:NCBrandColor.shared.icon size:25] forKey:@"imageView.image"];
|
|
|
+ [row.cellConfig setObject:[[UIImage imageNamed:@"address"] imageWithColor:NCBrandColor.shared.icon size:20] forKey:@"imageView.image"];
|
|
|
row.value = accountActive.address;
|
|
|
[section addFormRow:row];
|
|
|
}
|
|
@@ -188,7 +188,7 @@
|
|
|
[row.cellConfig setObject:[UIFont systemFontOfSize:15.0] forKey:@"textLabel.font"];
|
|
|
[row.cellConfig setObject:[UIFont systemFontOfSize:15.0] forKey:@"detailTextLabel.font"];
|
|
|
[row.cellConfig setObject:NCBrandColor.shared.textView forKey:@"textLabel.textColor"];
|
|
|
- [row.cellConfig setObject:[[UIImage imageNamed:@"city"] imageWithColor:NCBrandColor.shared.icon size:25] forKey:@"imageView.image"];
|
|
|
+ [row.cellConfig setObject:[[UIImage imageNamed:@"city"] imageWithColor:NCBrandColor.shared.icon size:20] forKey:@"imageView.image"];
|
|
|
row.value = accountActive.city;
|
|
|
if ([accountActive.zip length] > 0) {
|
|
|
row.value = [NSString stringWithFormat:@"%@ %@", row.value, accountActive.zip];
|
|
@@ -203,7 +203,7 @@
|
|
|
[row.cellConfig setObject:[UIFont systemFontOfSize:15.0] forKey:@"textLabel.font"];
|
|
|
[row.cellConfig setObject:[UIFont systemFontOfSize:15.0] forKey:@"detailTextLabel.font"];
|
|
|
[row.cellConfig setObject:NCBrandColor.shared.textView forKey:@"textLabel.textColor"];
|
|
|
- [row.cellConfig setObject:[[UIImage imageNamed:@"country"] imageWithColor:NCBrandColor.shared.icon size:25] forKey:@"imageView.image"];
|
|
|
+ [row.cellConfig setObject:[[UIImage imageNamed:@"country"] imageWithColor:NCBrandColor.shared.icon size:20] forKey:@"imageView.image"];
|
|
|
row.value = [[NSLocale systemLocale] displayNameForKey:NSLocaleCountryCode value:accountActive.country];
|
|
|
//NSArray *countryCodes = [NSLocale ISOCountryCodes];
|
|
|
[section addFormRow:row];
|
|
@@ -216,7 +216,7 @@
|
|
|
[row.cellConfig setObject:[UIFont systemFontOfSize:15.0] forKey:@"textLabel.font"];
|
|
|
[row.cellConfig setObject:[UIFont systemFontOfSize:15.0] forKey:@"detailTextLabel.font"];
|
|
|
[row.cellConfig setObject:NCBrandColor.shared.textView forKey:@"textLabel.textColor"];
|
|
|
- [row.cellConfig setObject:[[UIImage imageNamed:@"phone"] imageWithColor:NCBrandColor.shared.icon size:25] forKey:@"imageView.image"];
|
|
|
+ [row.cellConfig setObject:[[UIImage imageNamed:@"phone"] imageWithColor:NCBrandColor.shared.icon size:20] forKey:@"imageView.image"];
|
|
|
row.value = accountActive.phone;
|
|
|
[section addFormRow:row];
|
|
|
}
|
|
@@ -228,7 +228,7 @@
|
|
|
[row.cellConfig setObject:[UIFont systemFontOfSize:15.0] forKey:@"textLabel.font"];
|
|
|
[row.cellConfig setObject:[UIFont systemFontOfSize:15.0] forKey:@"detailTextLabel.font"];
|
|
|
[row.cellConfig setObject:NCBrandColor.shared.textView forKey:@"textLabel.textColor"];
|
|
|
- [row.cellConfig setObject:[[UIImage imageNamed:@"email"] imageWithColor:NCBrandColor.shared.icon size:25] forKey:@"imageView.image"];
|
|
|
+ [row.cellConfig setObject:[[UIImage imageNamed:@"email"] imageWithColor:NCBrandColor.shared.icon size:20] forKey:@"imageView.image"];
|
|
|
row.value = accountActive.email;
|
|
|
[section addFormRow:row];
|
|
|
}
|
|
@@ -240,7 +240,7 @@
|
|
|
[row.cellConfig setObject:[UIFont systemFontOfSize:15.0] forKey:@"textLabel.font"];
|
|
|
[row.cellConfig setObject:[UIFont systemFontOfSize:15.0] forKey:@"detailTextLabel.font"];
|
|
|
[row.cellConfig setObject:NCBrandColor.shared.textView forKey:@"textLabel.textColor"];
|
|
|
- [row.cellConfig setObject:[[NCUtility shared] loadImageWithNamed:@"network" color:NCBrandColor.shared.icon size:25] forKey:@"imageView.image"];
|
|
|
+ [row.cellConfig setObject:[[NCUtility shared] loadImageWithNamed:@"network" color:NCBrandColor.shared.icon size:20] forKey:@"imageView.image"];
|
|
|
row.value = accountActive.webpage;
|
|
|
[section addFormRow:row];
|
|
|
}
|
|
@@ -252,7 +252,7 @@
|
|
|
[row.cellConfig setObject:[UIFont systemFontOfSize:15.0] forKey:@"textLabel.font"];
|
|
|
[row.cellConfig setObject:[UIFont systemFontOfSize:15.0] forKey:@"detailTextLabel.font"];
|
|
|
[row.cellConfig setObject:NCBrandColor.shared.textView forKey:@"textLabel.textColor"];
|
|
|
- [row.cellConfig setObject:[[UIImage imageNamed:@"twitter"] imageWithColor:NCBrandColor.shared.icon size:25] forKey:@"imageView.image"];
|
|
|
+ [row.cellConfig setObject:[[UIImage imageNamed:@"twitter"] imageWithColor:NCBrandColor.shared.icon size:20] forKey:@"imageView.image"];
|
|
|
row.value = accountActive.twitter;
|
|
|
[section addFormRow:row];
|
|
|
}
|
|
@@ -270,7 +270,7 @@
|
|
|
[row.cellConfig setObject:[UIFont systemFontOfSize:15.0] forKey:@"textLabel.font"];
|
|
|
[row.cellConfig setObject:[UIFont systemFontOfSize:15.0] forKey:@"detailTextLabel.font"];
|
|
|
[row.cellConfig setObject:NCBrandColor.shared.textView forKey:@"textLabel.textColor"];
|
|
|
- [row.cellConfig setObject:[[UIImage imageNamed:@"businesstype"] imageWithColor:NCBrandColor.shared.icon size:25] forKey:@"imageView.image"];
|
|
|
+ [row.cellConfig setObject:[[UIImage imageNamed:@"businesstype"] imageWithColor:NCBrandColor.shared.icon size:20] forKey:@"imageView.image"];
|
|
|
row.value = accountActive.businessType;
|
|
|
[section addFormRow:row];
|
|
|
|
|
@@ -280,7 +280,7 @@
|
|
|
[row.cellConfig setObject:[UIFont systemFontOfSize:15.0] forKey:@"textLabel.font"];
|
|
|
[row.cellConfig setObject:[UIFont systemFontOfSize:15.0] forKey:@"detailTextLabel.font"];
|
|
|
[row.cellConfig setObject:NCBrandColor.shared.textView forKey:@"textLabel.textColor"];
|
|
|
- [row.cellConfig setObject:[[UIImage imageNamed:@"users"] imageWithColor:NCBrandColor.shared.icon size:25] forKey:@"imageView.image"];
|
|
|
+ [row.cellConfig setObject:[[UIImage imageNamed:@"users"] imageWithColor:NCBrandColor.shared.icon size:20] forKey:@"imageView.image"];
|
|
|
row.value = accountActive.businessSize;
|
|
|
[section addFormRow:row];
|
|
|
|
|
@@ -290,7 +290,7 @@
|
|
|
[row.cellConfig setObject:[UIFont systemFontOfSize:15.0] forKey:@"textLabel.font"];
|
|
|
[row.cellConfig setObject:[UIFont systemFontOfSize:15.0] forKey:@"detailTextLabel.font"];
|
|
|
[row.cellConfig setObject:NCBrandColor.shared.textView forKey:@"textLabel.textColor"];
|
|
|
- [row.cellConfig setObject:[[UIImage imageNamed:@"role"] imageWithColor:NCBrandColor.shared.icon size:25] forKey:@"imageView.image"];
|
|
|
+ [row.cellConfig setObject:[[UIImage imageNamed:@"role"] imageWithColor:NCBrandColor.shared.icon size:20] forKey:@"imageView.image"];
|
|
|
if ([accountActive.role isEqualToString:@"owner"]) row.value = NSLocalizedString(@"_user_owner_", nil);
|
|
|
else if ([accountActive.role isEqualToString:@"employee"]) row.value = NSLocalizedString(@"_user_employee_", nil);
|
|
|
else if ([accountActive.role isEqualToString:@"contractor"]) row.value = NSLocalizedString(@"_user_contractor_", nil);
|
|
@@ -303,7 +303,7 @@
|
|
|
[row.cellConfig setObject:[UIFont systemFontOfSize:15.0] forKey:@"textLabel.font"];
|
|
|
[row.cellConfig setObject:[UIFont systemFontOfSize:15.0] forKey:@"detailTextLabel.font"];
|
|
|
[row.cellConfig setObject:NCBrandColor.shared.textView forKey:@"textLabel.textColor"];
|
|
|
- [row.cellConfig setObject:[[UIImage imageNamed:@"company"] imageWithColor:NCBrandColor.shared.icon size:25] forKey:@"imageView.image"];
|
|
|
+ [row.cellConfig setObject:[[UIImage imageNamed:@"company"] imageWithColor:NCBrandColor.shared.icon size:20] forKey:@"imageView.image"];
|
|
|
row.value = accountActive.company;
|
|
|
[section addFormRow:row];
|
|
|
|
|
@@ -318,7 +318,7 @@
|
|
|
[row.cellConfig setObject:[UIFont systemFontOfSize:15.0] forKey:@"detailTextLabel.font"];
|
|
|
[row.cellConfig setObject:[UIColor redColor] forKey:@"textLabel.textColor"];
|
|
|
[row.cellConfig setObject:[UIColor redColor] forKey:@"detailTextLabel.textColor"];
|
|
|
- [row.cellConfig setObject:[[UIImage imageNamed:@"timer"] imageWithColor:NCBrandColor.shared.icon size:25] forKey:@"imageView.image"];
|
|
|
+ [row.cellConfig setObject:[[UIImage imageNamed:@"timer"] imageWithColor:NCBrandColor.shared.icon size:20] forKey:@"imageView.image"];
|
|
|
NSInteger numberOfDays = accountActive.hcTrialRemainingSec / (24*3600);
|
|
|
row.value = [@(numberOfDays) stringValue];
|
|
|
[section addFormRow:row];
|
|
@@ -331,7 +331,7 @@
|
|
|
row = [XLFormRowDescriptor formRowDescriptorWithTag:@"editUserProfile" rowType:XLFormRowDescriptorTypeButton title:NSLocalizedString(@"_user_editprofile_", nil)];
|
|
|
row.cellConfigAtConfigure[@"backgroundColor"] = NCBrandColor.shared.backgroundView;
|
|
|
[row.cellConfig setObject:[UIFont systemFontOfSize:15.0] forKey:@"textLabel.font"];
|
|
|
- [row.cellConfig setObject:[[UIImage imageNamed:@"editUserProfile"] imageWithColor:NCBrandColor.shared.icon size:25] forKey:@"imageView.image"];
|
|
|
+ [row.cellConfig setObject:[[UIImage imageNamed:@"editUserProfile"] imageWithColor:NCBrandColor.shared.icon size:20] forKey:@"imageView.image"];
|
|
|
[row.cellConfig setObject:@(NSTextAlignmentLeft) forKey:@"textLabel.textAlignment"];
|
|
|
[row.cellConfig setObject:NCBrandColor.shared.textView forKey:@"textLabel.textColor"];
|
|
|
#if defined(HC)
|