From af973cbce3f838a6931888a4032882ba437a097d Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 16 Oct 2017 09:12:52 -0400 Subject: [PATCH] add add UI for cards and identity --- src/_locales/en/messages.json | 122 ++++++++++++++++- .../app/vault/vaultAddCipherController.js | 4 +- src/popup/app/vault/views/vaultAddCipher.html | 123 +++++++++++++++--- 3 files changed, 228 insertions(+), 21 deletions(-) diff --git a/src/_locales/en/messages.json b/src/_locales/en/messages.json index dffbb06242..0810775b74 100644 --- a/src/_locales/en/messages.json +++ b/src/_locales/en/messages.json @@ -785,7 +785,127 @@ "message": "Disable Website Icons" }, "disableFaviconDesc": { - "message": "Website Icons, also known as \"Favicons\", provides an image next to the login vault." + "message": "Website Icons provides a recognizable icon next to each login item in your vault." + }, + "cardholderName": { + "message": "Cardholder Name" + }, + "number": { + "message": "Number" + }, + "brand": { + "message": "Brand" + }, + "expirationMonth": { + "message": "Expiration Month" + }, + "expirationYear": { + "message": "Expiration Year" + }, + "january": { + "message": "January" + }, + "february": { + "message": "February" + }, + "march": { + "message": "March" + }, + "april": { + "message": "April" + }, + "may": { + "message": "May" + }, + "june": { + "message": "June" + }, + "july": { + "message": "July" + }, + "august": { + "message": "August" + }, + "september": { + "message": "September" + }, + "october": { + "message": "October" + }, + "november": { + "message": "November" + }, + "december": { + "message": "December" + }, + "securityCode": { + "message": "Security Code" + }, + "ex": { + "message": "ex." + }, + "title": { + "message": "Title" + }, + "mr": { + "message": "Mr" + }, + "mrs": { + "message": "Mrs" + }, + "ms": { + "message": "Ms" + }, + "dr": { + "message": "Dr" + }, + "firstName": { + "message": "First Name" + }, + "middleName": { + "message": "Middle Name" + }, + "lastName": { + "message": "Last Name" + }, + "company": { + "message": "Company" + }, + "ssn": { + "message": "Social Security Number" + }, + "passportNumber": { + "message": "Passport Number" + }, + "licenseNumber": { + "message": "License Number" + }, + "email": { + "message": "Email" + }, + "phone": { + "message": "Phone" + }, + "address1": { + "message": "Address 1" + }, + "address2": { + "message": "Address 2" + }, + "address3": { + "message": "Address 3" + }, + "cityTown": { + "message": "City / Town" + }, + "stateProvince": { + "message": "State / Province" + }, + "zipPostalCode": { + "message": "Zip / Postal Code" + }, + "country": { + "message": "Country" }, "type": { "message": "Type" diff --git a/src/popup/app/vault/vaultAddCipherController.js b/src/popup/app/vault/vaultAddCipherController.js index 37ceec89b0..58377b90af 100644 --- a/src/popup/app/vault/vaultAddCipherController.js +++ b/src/popup/app/vault/vaultAddCipherController.js @@ -20,7 +20,7 @@ } }; - if($stateParams.uri) { + if ($stateParams.uri) { $scope.cipher.login.uri = $stateParams.uri; } @@ -40,7 +40,7 @@ $scope.folders = folders; }); - $scope.typeChanged = function() { + $scope.typeChanged = function () { $scope.cipher.type = parseInt($scope.selectedType); }; diff --git a/src/popup/app/vault/views/vaultAddCipher.html b/src/popup/app/vault/views/vaultAddCipher.html index 7811d34b85..7855abe5db 100644 --- a/src/popup/app/vault/views/vaultAddCipher.html +++ b/src/popup/app/vault/views/vaultAddCipher.html @@ -20,9 +20,9 @@
@@ -60,20 +60,22 @@
- +
- - + +
@@ -98,10 +101,94 @@
- +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
- +
@@ -150,13 +237,13 @@