diff --git a/src/Android/Android.csproj b/src/Android/Android.csproj
index 50c483397..588c747cb 100644
--- a/src/Android/Android.csproj
+++ b/src/Android/Android.csproj
@@ -79,6 +79,8 @@
+
+
diff --git a/src/App/Pages/Vault/AddEditPage.xaml b/src/App/Pages/Vault/AddEditPage.xaml
index ef417649e..b522c2fec 100644
--- a/src/App/Pages/Vault/AddEditPage.xaml
+++ b/src/App/Pages/Vault/AddEditPage.xaml
@@ -33,7 +33,7 @@
-
+
@@ -41,6 +41,178 @@
Text="{Binding Cipher.Name}"
StyleClass="box-value" />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/App/Pages/Vault/AddEditPage.xaml.cs b/src/App/Pages/Vault/AddEditPage.xaml.cs
index f3c1545f5..3c2b94d18 100644
--- a/src/App/Pages/Vault/AddEditPage.xaml.cs
+++ b/src/App/Pages/Vault/AddEditPage.xaml.cs
@@ -20,6 +20,10 @@ namespace Bit.App.Pages
_vm.OrganizationId = organizationId;
_vm.Init();
SetActivityIndicator();
+
+ _cardBrandPicker.ItemDisplayBinding = new Binding("Key");
+ _cardExpMonthPicker.ItemDisplayBinding = new Binding("Key");
+ _identityTitlePicker.ItemDisplayBinding = new Binding("Key");
}
protected override async void OnAppearing()
diff --git a/src/App/Pages/Vault/AddEditPageViewModel.cs b/src/App/Pages/Vault/AddEditPageViewModel.cs
index 166d302d5..fdb8d7dd9 100644
--- a/src/App/Pages/Vault/AddEditPageViewModel.cs
+++ b/src/App/Pages/Vault/AddEditPageViewModel.cs
@@ -37,6 +37,44 @@ namespace Bit.App.Pages
TogglePasswordCommand = new Command(TogglePassword);
ToggleCardCodeCommand = new Command(ToggleCardCode);
CheckPasswordCommand = new Command(CheckPasswordAsync);
+
+ CardBrandOptions = new List>
+ {
+ new KeyValuePair($"-- {AppResources.Select} --", null),
+ new KeyValuePair("Visa", "Visa"),
+ new KeyValuePair("Mastercard", "Mastercard"),
+ new KeyValuePair("American Express", "Amex"),
+ new KeyValuePair("Discover", "Discover"),
+ new KeyValuePair("Diners Club", "Diners Club"),
+ new KeyValuePair("JCB", "JCB"),
+ new KeyValuePair("Maestro", "Maestro"),
+ new KeyValuePair("UnionPay", "UnionPay"),
+ new KeyValuePair(AppResources.Other, "Other")
+ };
+ CardExpMonthOptions = new List>
+ {
+ new KeyValuePair($"-- {AppResources.Select} --", null),
+ new KeyValuePair($"01 - {AppResources.January}", "1"),
+ new KeyValuePair($"02 - {AppResources.February}", "2"),
+ new KeyValuePair($"03 - {AppResources.March}", "3"),
+ new KeyValuePair($"04 - {AppResources.April}", "4"),
+ new KeyValuePair($"05 - {AppResources.May}", "5"),
+ new KeyValuePair($"06 - {AppResources.June}", "6"),
+ new KeyValuePair($"07 - {AppResources.July}", "7"),
+ new KeyValuePair($"08 - {AppResources.August}", "8"),
+ new KeyValuePair($"09 - {AppResources.September}", "9"),
+ new KeyValuePair($"10 - {AppResources.October}", "10"),
+ new KeyValuePair($"11 - {AppResources.November}", "11"),
+ new KeyValuePair($"12 - {AppResources.December}", "12")
+ };
+ IdentityTitleOptions = new List>
+ {
+ new KeyValuePair($"-- {AppResources.Select} --", null),
+ new KeyValuePair(AppResources.Mr, AppResources.Mr),
+ new KeyValuePair(AppResources.Mrs, AppResources.Mrs),
+ new KeyValuePair(AppResources.Ms, AppResources.Ms),
+ new KeyValuePair(AppResources.Dr, AppResources.Dr),
+ };
}
public Command GeneratePasswordCommand { get; set; }
@@ -48,6 +86,9 @@ namespace Bit.App.Pages
public string FolderId { get; set; }
public CipherType? Type { get; set; }
public List CollectionIds { get; set; }
+ public List> CardBrandOptions { get; set; }
+ public List> CardExpMonthOptions { get; set; }
+ public List> IdentityTitleOptions { get; set; }
public CipherView Cipher
{
get => _cipher;
@@ -203,7 +244,7 @@ namespace Bit.App.Pages
public void GeneratePassword()
{
-
+ // TODO: push modal for generate page
}
public void TogglePassword()
diff --git a/src/App/Styles/Base.xaml b/src/App/Styles/Base.xaml
index d892f906e..9876921a7 100644
--- a/src/App/Styles/Base.xaml
+++ b/src/App/Styles/Base.xaml
@@ -232,6 +232,16 @@
+
+