- Success! -
-- Information successfully updated. -
++ Direct Deposit & Pay +
+Manage your direct deposit accounts and payment settings
+Success!
+Information successfully updated.
+Error!
+Failed to update. Please try again.
+- Error! -
-- Failed to update. -
-+ Add Direct Deposit +
+Set up a new account
+| - Encrypted Bank Account Number - <%=link_to "#", { :style => "color:#AA6F93", :id => "encrypted_acct_question"} do %> - - - - <% end %> - | -- Bank Routing Number - | -- Percentage of Deposit - | -- Action - | -
|---|
+ Decrypt Account Number +
+View unencrypted account number
++ Direct Deposit Accounts +
+Your configured bank accounts
+| + Encrypted Account Number + | ++ Routing Number + | ++ Deposit % + | ++ Actions + | +
|---|
+ Instant Access +
++ Your paycheck is deposited directly into your account on payday. +
++ Secure & Encrypted +
++ All banking information is encrypted using industry-standard security. +
++ Split Deposits +
++ Allocate different percentages of your pay to multiple accounts. +
+' + val.bank_account_num + '',
+ '' + val.bank_routing_num + '',
+ '' + val.percent_of_deposit + '%',
+ buildDeleteLink(val.id)
] );
});
-
};
/*
@@ -198,7 +298,10 @@ function populateTable() {
*/
function createDataTable(){
$('#data_table').dataTable({
- "sPaginationType": "full_numbers"
+ "sPaginationType": "full_numbers",
+ "language": {
+ "emptyTable": "No direct deposit accounts configured yet"
+ }
});
};
@@ -206,12 +309,12 @@ function createDataTable(){
This function doesn't really work right now but is supposed to offer the user a
"delete confirmation" message
*/
-$('.delete-row').click(function () {
- var conf = confirm('Continue delete?');
- if (conf) $(this).parents('tr').fadeOut(function () {
- $(this).remove();
- });
+$(document).on('click', '.delete-row', function (e) {
+ var conf = confirm('Are you sure you want to delete this account?');
+ if (!conf) {
+ e.preventDefault();
return false;
+ }
});
/*
@@ -220,7 +323,27 @@ $('.delete-row').click(function () {
*/
function decryptShow(response){
var msg = jQuery.parseJSON(JSON.stringify(response));
- alert("Decrypted Account Number: " + msg.account_num);
+
+ // Modern alert using Bootstrap modal-like appearance
+ var alertHtml = 'Decrypted Account Number
' + + '' + msg.account_num + '
' + + 'Why Are Account Numbers Encrypted?
' + + '' + + 'For your safety, your account number is stored encrypted in our database and presented to you in an encrypted form.
' + + 'For your convenience, you can decrypt your bank account number at any time using our conveniently located decryption function.
' + + '