{
    "anonpages": {
        "checking": {
            "nav-button": "Checking",
            "nav-route": "/",
            "header": "",
            "card": {
                "cardMsg":""
            },
            "id": "checking-page",
            "valueIfNotLoggedIn": "",
            "valueIfNoData": ""
        },
        "savings": {
            "nav-button": "Savings",
            "nav-route": "/",
            "header": "",
            "card": {
                "cardMsg":""
            },
            "id": "savings-page",
            "valueIfNotLoggedIn": "",
            "valueIfNoData": ""
        },
        "creditcards": {
            "nav-button": "Credit Cards",
            "nav-route": "/",
            "header": "",
            "card": {
                "cardMsg":""
            },
            "id": "creditcards-page",
            "valueIfNotLoggedIn": "",
            "valueIfNoData": ""
        },
        "homeloans": {
            "nav-button": "Home Loans",
            "nav-route": "/",
            "header": "",
            "card": {
                "cardMsg":""
            },
            "id": "homeloans-page",
            "valueIfNotLoggedIn": "",
            "valueIfNoData": ""
        }
        ,
        "autoloans": {
            "nav-button": "Auto Loans",
            "nav-route": "/",
            "header": "",
            "card": {
                "cardMsg":""
            },
            "id": "autoloans-page",
            "valueIfNotLoggedIn": "",
            "valueIfNoData": ""
        }
        ,
        "investing": {
            "nav-button": "Investing",
            "nav-route": "/",
            "header": "",
            "card": {
                "cardMsg":""
            },
            "id": "investing-page",
            "valueIfNotLoggedIn": "",
            "valueIfNoData": ""
        }
        ,
        "betterhabits": {
            "nav-button": "Better Money Habits®",
            "nav-route": "/",
            "header": "",
            "card": {
                "cardMsg":""
            },
            "id": "betterhabits-page",
            "valueIfNotLoggedIn": "",
            "valueIfNoData": ""
        }
    },
    "pages": {
        "home": {
            "nav-button": "Home",
            "nav-tool-tip": "Return to Home",
            "nav-route": "/",
            "header": "Welcome to Bad Bank of America",
            "card": {
                "cardMsg":"See how Bad Bank of America® banking solutions and Bad Merrill Edge® Investment services can help make your personal financial life easier."
            },
            "id": "home-page",
            "valueIfNotLoggedIn": "",
            "valueIfNoData": ""
        },
        "createAccount": {
            "nav-button": "Create Account",
            "nav-tool-tip": "Create an Account",
            "nav-route": "/create-account/",
            "header": "Create a New Account",
            "card": {
                "cardMsg": "Enter your name, email, and password and click submit to create a new account!"
            },
            "id": "create-account-page",
            "valueIfNotLoggedIn": "",
            "valueIfNoData": ""
        },
        "deposit": {
            "nav-button": "Deposit",
            "nav-tool-tip": "Deposit to Your Account",
            "nav-route": "/deposit/",
            "header": "Make a Deposit",
            "card": {
                "cardMsg": "Enter an amount and click submit to make a deposit to your account!",
                "balanceMsg": "Current Balance: $"
            },
            "id": "deposit-page",
            "valueIfNotLoggedIn": "You must be logged in to deposit.",
            "valueIfNoData": ""
        },
        "withdraw": {
            "nav-button": "Withdraw",
            "nav-tool-tip": "Withdraw from Your Account",
            "nav-route": "/withdraw/",
            "header": "Make a Withdrawal",
            "card": {
                "cardMsg": "Enter an amount and click the button to make a withdrawal from your account!",
                "balanceMsg": "Current Balance: $"
            },
            "id": "withdraw-page",
            "valueIfNotLoggedIn": "You must be logged in and have a positive balance in order to request a withdrawal!",
            "valueIfNoData": "You must have a positive balance amount in order to make a withdrawal from your account!"
        },
        "transactions": {
            "nav-button": "Transactions",
            "nav-tool-tip": "View Your Transaction Data",
            "nav-route": "/transactions/",
            "header": "Recent Transactions",
            "card": {
                "cardMsg": "",
                "cardCols": ["Date","Description","Credit","Debit","Balance"]
            },
            "id": "all-data-page",
            "valueIfNotLoggedIn": "You must be logged in to see recent transaction data.",
            "valueIfNoData": "No data available to display."
        },
        "allData": {
            "nav-button": "All Data",
            "nav-tool-tip": "View All User Data",
            "nav-route": "/all-data/",
            "header": "All User Data",
            "card": {
                "cardMsg": "",
                "cardCols": ["Date","Name","Email","Password"]
            },
            "id": "user-data-page",
            "valueIfNotLoggedIn": "",
            "valueIfNoData": "No data available to display."
        }
    },

    "forms": {
        "createAccount": {
            "formSubmission" : {
                    "buttons": [ {"type":"submit",
                                "name":"submit",
                                "display":"Create Account",
                                "altDisplay": "Add Another Account",
                                "className":"btn btn-primary",
                                "dependency":"UsersExist"}],
                    "success": "Your account has been created and you have automatically been logged in. You may now make deposits and withdrawals.",
                    "failure": "An account is already associated with that email! Please use a different one.",
                    "idRoot": "create-account",
                    "typeOfAction" : "Account created",
                    "displayAlt": "accountCreated"
            },
            "formFields" : [
                    {
                    "name" : "name",
                    "display" : "Name",
                    "type" : "text",
                    "validation": [
                        {"functionName": "hasInput", "error":"Please enter your name"},
                        {"functionName": "hasInput", "args":[{"name":"len","value":4}],"error": "Name must be 4 or more characters long"}]
                    },
                    {
                        "name" : "email",
                        "display" : "Email",
                        "type" : "text",
                        "validation": [
                            {"functionName": "hasInput", "error":"Please enter your email address"},
                            {"functionName": "isValidEmailFormat", "error": "Please enter a valid email address"}
                        ]
                    },
                    {
                        "name" : "password",
                        "display" : "Password",
                        "type" : "password",
                        "validation": [
                            {"functionName": "hasInput", "args":[{"name":"len","value":8}], "error":"Must be 8 characters or longer"},
                            {"functionName": "isValidPasswordFormat", "error": "Must include letter, number & special character."}
                        ]
                    }
                ],
            "valueIfNotLoggedIn": "",
            "valueIfNoData": ""
        },
        "deposit": {
            "formSubmission" : {
                    "buttons": [ {"type":"submit",
                                "name":"submit",
                                "display":"Deposit",
                                "className":"btn btn-primary",
                                "dependency":false}],
                    "success": "Your deposit has been recorded!",
                    "failure": "We were unable to make a deposit. Please try again later.",
                    "idRoot": "deposit-form",
                    "typeOfAction" : "Deposit to account"
            },
            "formFields" : [{
                "name" : "deposit",
                "display" : "Amount ($)",
                "type" : "text",
                "validation": [
                    {"functionName": "hasInput", "error":"Please enter an amount to deposit"},
                    {"functionName": "isPositive", "error": "Please enter a positive amount to deposit"},
                    {"functionName": "isNumber", "error": "Please enter a valid number, with no currency symbol"},
                    {"functionName": "hasTwoSigFigs", "error": "Please only enter 2 decimal points"}
                ]
            }],
            "valueIfNotLoggedIn": "You must be logged in to deposit.",
            "valueIfNoData": ""
        },
        "withdraw": {
            "formSubmission" : {
                    "buttons": [ {"type":"submit",
                                "name":"submit",
                                "display":"Withdraw",
                                "className":"btn btn-primary",
                                "dependency":false}],
                    "success": "Your withdrawal has been recorded!",
                    "failure": "We were unable to make a withdrawal. Please try again later.",
                    "idRoot": "withdraw-form",
                    "typeOfAction" : "Withdrawal from account"
            },
            "formFields" : [{
                "name" : "withdraw",
                "display" : "Amount ($)",
                "type" : "text",
                "validation": [
                    {"functionName": "hasInput", "error":"Please enter an amount to withdraw"},
                    {"functionName": "isPositive", "error": "Please enter a positive amount to withdraw"},
                    {"functionName": "isNumber", "error": "Please enter a valid number, with no currency symbol"},
                    {"functionName": "hasTwoSigFigs", "error": "Please only enter 2 decimal points"},
                    {"functionName": "isLessThanBalance", "args":[{"name":"balance","value":""}], "error": "Overdraw alert: Amount is more than your available balance"}
                ]
            }],
            "valueIfNotLoggedIn": "You must be logged in and have a positive balance in order to request a withdrawal!",
            "valueIfNoData": "You must have a positive balance amount in order to make a withdrawal from your account!"
        },
        "signIn": {
            "formSubmission" : {
                    "buttons": [ {"type":"submit",
                                "name":"submit",
                                "display":"Log In",
                                "altDisplay": "Log In",
                                "className":"login-button",
                                "dependency":false}],
                    "success": "You have been logged in. You may now make deposits and withdrawals.",
                    "failure": "There was a problem with your credentials. Please try again.",
                    "idRoot": "sign-in",
                    "typeOfAction" : "Sign In Successful"
            },
            "formFields" : [
                    {
                        "name" : "username",
                        "display" : "",
                        "type" : "text",
                        "placeholder": "Username",
                        "validation": [
                            {"functionName": "hasInput", "error":"Please enter your username"}
                        ]
                    },
                    {
                        "name" : "password",
                        "display" : "",
                        "placeholder": "Password",
                        "type" : "password",
                        "validation": [
                            {"functionName": "hasInput", "args":[{"name":"len","value":8}], "error":"Please enter a valid password"}
                        ]
                    }
                ],
            "valueIfNotLoggedIn": "",
            "valueIfNoData": ""
        }
    },
    "components": {
       "footer": {
           "links": ["Locations","Contact Us","Accessible Banking","Careers","Privacy","Security","Sitemap"],
           "connectCTA": "Connect with us",
           "memberFDIC": "Member FDIC.",
           "rightsReserved": "All rights reserved."
       
       },
       "locations": {
        "labels": {
            "branch":"Branch",
            "atm": "ATM",
            "address": "Address",
            "hours": "Hours",
            "directions": "Directions"
            },  
        "id": "location-page"
        }
    },
    "general": {
        "successTitle":"Success",
        "failureTitle":"Error",
        "signIn":"Sign In",
        "signInHeader": "Sign In to Your Account",
        "signOut":"Sign Out",
        "en":"English",
        "es":"Spanish"
    }
}