From 46b4b30575198a2bb158acc7c73f83765f8a574e Mon Sep 17 00:00:00 2001 From: yasanthaniroshan Date: Tue, 31 Oct 2023 01:40:18 +0530 Subject: [PATCH 01/40] Fixed errors in auth system of bank --- Auth/auth.py | 20 +- Auth/models.py | 9 + BankAccount/bank_account.py | 79 ++++++++ Database/database_quaries.py | 4 + templates/auth/login.html | 22 ++- templates/auth/register.html | 12 +- .../existingFixedIndividual.html | 24 ++- .../bankAccount/existingUserCreateMain.html | 2 +- .../bankAccount/newCurrentIndividual.html | 177 ++++++++++++++++++ .../bankAccount/newSavingsIndividual.html | 27 ++- .../bankAccount/newUserCreationMain.html | 2 +- templates/dashboard/employee_dashboard.html | 12 +- 12 files changed, 361 insertions(+), 29 deletions(-) rename templates/{createAccount => bankAccount}/existingFixedIndividual.html (89%) create mode 100644 templates/bankAccount/newCurrentIndividual.html diff --git a/Auth/auth.py b/Auth/auth.py index aa52b8b..3243451 100644 --- a/Auth/auth.py +++ b/Auth/auth.py @@ -1,4 +1,4 @@ -from flask import Blueprint,render_template,request,session,redirect,flash,abort +from flask import Blueprint,render_template,request,session,redirect,flash,abort,url_for from Settings.settings import * from .models import * from Database.connection import Connector @@ -19,7 +19,7 @@ def login()->str: elif request.method == 'POST': if not is_user_exsists(request.form['username'],connector): - flash("User doesn't exists", 'error') + flash("User doesn't exists", 'Error') return render_template('auth/login.html') else: user_id = authenticate_user(request.form,connector) @@ -42,11 +42,13 @@ def find_from_account_number(): user_id = is_account_exsists(request.form['account_number'],connector) if user_id: if have_a_user_account(user_id,connector): + flash("User already have an account", 'Error') return redirect('login') else: return redirect('register') else: - abort(401) + flash("Please contact your neaerest branch for more details ", 'No Account Found') + return redirect('login') else: return render_template('auth/account.html') @@ -58,16 +60,22 @@ def sigup()->str: return redirect('/dashboard') if request.method == 'POST': + print(valid_account_number(request.form['account_number'],connector)) + if valid_account_number(request.form['account_number'],connector): + flash('Account number is not correct', 'Error') + return redirect(url_for('auth.register')) + if is_user_exsists(request.form['username'],connector): - flash('Username already exists', 'error') - redirect('register') + flash('Username already exists', 'Error') + return redirect(url_for('auth.register')) else: print("username",request.form['username']) print('password',request.form['password']) print('confirm password',request.form['confirm_password']) print('account number',request.form['account_number']) if request.form['confirm_password'] != request.form['password']: - flash('Passwords are mismatch','error') + flash('Passwords are mismatch','Error') + return redirect(url_for('auth.register')) user_id = create_user(request.form['username'],request.form['password'],request.form['account_number'],connector) session['user_id'] = int(user_id) print(user_id) diff --git a/Auth/models.py b/Auth/models.py index c92ae77..842be96 100644 --- a/Auth/models.py +++ b/Auth/models.py @@ -97,6 +97,15 @@ def is_account_exsists(account_number:str,connector:Connector)->bool: print("Exception has happened in verify_user ! Error : ",e) return False +def valid_account_number(account_number:str,connector:Connector)->bool: + try: + with connector: + connector.cursor.execute(CHECK_ACCOUNT_IS_VALID, (account_number,)) + return connector.cursor.fetchone() == None + except Exception as e: + print("Exception has happened in verify_user ! Error : ",e) + return False + def have_a_user_account(user_id:int,connector:Connector)->bool: try: with connector: diff --git a/BankAccount/bank_account.py b/BankAccount/bank_account.py index 3d6a728..25e994b 100644 --- a/BankAccount/bank_account.py +++ b/BankAccount/bank_account.py @@ -41,6 +41,15 @@ def get_customer_first_name_and_no_accounts(account_number): print("Error in get_customer_first_name",e) return None +def get_savings_account_id(account_number): + connector = Connector() + try : + with connector: + connector.cursor.execute(GET_SAVINGS_ACCOUNT_ID,(account_number,)) + return connector.cursor.fetchone() + except Exception as e: + print("Error in get_savings_account_id",e) + return None def create_savings_account_for_exsisting_user_individual(user_id,account_number_of_new_account,account_number_of_old_account,amount): connector = Connector() @@ -66,6 +75,17 @@ def create_current_account_for_exsisting_user_individual(user_id,account_number_ print("Error in create_current_account_for_exsisting_user",e) return False +def creat_fixed_account_for_for_exsisting_user_individual(user_id,savings_account_id,amount,duration): + connector = Connector() + try: + with connector: + connector.cursor.execute(CREATE_FIXED_DEPOSIT,(user_id,savings_account_id,amount,duration,)) + connector.connection.commit() + return True + except Exception as e: + print("Error in create_fixed_account_for_for_exsisting_user",e) + return False + def create_savings_account_for_new_user_individual(first_name,last_name,branch_id,nic,telephone,home_town,date_of_birth,first_deposit,account_number): connector = Connector() try: @@ -78,6 +98,17 @@ def create_savings_account_for_new_user_individual(first_name,last_name,branch_i return False +def create_current_account_for_new_user_individual(first_name,last_name,branch_id,nic,telephone,home_town,date_of_birth,first_deposit,account_number): + connector = Connector() + try: + with connector: + connector.cursor.execute(CREATE_BANK_ACCOUNT_FOR_NEW_USERS,(first_name,last_name,branch_id,nic,telephone,home_town,date_of_birth,first_deposit,account_number,'CURRENT')) + connector.connection.commit() + return True + except Exception as e: + print("Error in create_current_account_for_exsisting_user",e) + return False + @bank_account_app.route('/transfer',methods = DEFUALT_SUBMISSION_METHODS,endpoint='transfer') @valid_session @@ -153,6 +184,24 @@ def create_current_account_existing_individual(): elif request.method == 'GET': return render_template('bankAccount/existingCurrentIndividual.html') +@bank_account_app.route('/create-exsisting/fixed',methods = DEFUALT_SUBMISSION_METHODS,endpoint='create_fixed_account_exsisting') +@valid_employee +@valid_session +def create_fixed_account_existing_individual(): + if request.method == 'POST': + savings_account_id = get_savings_account_id(request.form['account_number']) + if savings_account_id is None: + flash("Savings Account doesn't Exists", 'Error') + return redirect(url_for('bank_account.create_fixed_account_exsisting')) + if creat_fixed_account_for_for_exsisting_user_individual(session['user_id'],savings_account_id['savings_account_id'],request.form['first_deposit'],request.form['duration']): + flash("Fixed Deposit Created Successfully", 'Account') + return redirect('/dashboard') + else: + flash("Fixed Deposit Creation Failed", 'Error') + return redirect('/dashboard') + elif request.method == 'GET': + return render_template('bankAccount/existingFixedIndividual.html') + @bank_account_app.route('/create-new/savings',methods = DEFUALT_SUBMISSION_METHODS,endpoint='create_savings_account_new') @valid_employee @valid_session @@ -185,3 +234,33 @@ def create_savings_account_new_individual(): return render_template('bankAccount/newSavingsIndividual.html',context=context) +@bank_account_app.route('/create-new/current',methods = DEFUALT_SUBMISSION_METHODS,endpoint='create_current_account_new') +@valid_employee +@valid_session +def create_current_account_new_individual(): + if request.method == 'POST': + first_name = request.form['first_name'] + last_name = request.form['last_name'] + branch_id = request.form['branch_id'] + nic = request.form['nic'] + telephone = request.form['telephone'] + home_town = request.form['home_town'] + date_of_birth = request.form['date_of_birth'] + first_deposit = request.form['first_deposit'] + ascii_values = [ord(char) for char in (first_name+last_name)] + new_account_number = f"{str(branch_id)}-{str(sum(ascii_values)%1000)}-{str(1)}" + + if check_firstname_and_last_name_exsists(first_name,last_name): + flash("User Already Exists", 'Error') + return redirect(url_for('bank_account.create_current_account_new')) + if create_current_account_for_new_user_individual(first_name,last_name,branch_id,nic,telephone,home_town,date_of_birth,first_deposit,new_account_number): + flash("Account Created Successfully","Account Creation") + return redirect('/dashboard') + else: + flash("Error Occured ", "Error") + return redirect('/dashboard') + + elif request.method == 'GET': + context = get_branch_id(session['user_id']) + print("context",context) + return render_template('bankAccount/newSavingsIndividual.html',context=context) \ No newline at end of file diff --git a/Database/database_quaries.py b/Database/database_quaries.py index 3e91757..8697c1c 100644 --- a/Database/database_quaries.py +++ b/Database/database_quaries.py @@ -21,6 +21,10 @@ CHECK_FIRSTNAME_AND_LASTNAME_EXISTS = 'SELECT first_name,last_name FROM user WHERE first_name = %s AND last_name = %s' CREATE_BANK_ACCOUNT_FOR_NEW_USERS = 'call create_bank_account_for_new_user(%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)' GET_ALL_TRANSACIONS = 'call branch_wise_total_transactions(%s,%s);' +CREATE_FIXED_DEPOSIT = 'call create_fixed_deposit_for_existing_user(%s,%s,%s,%s)' +GET_SAVINGS_ACCOUNT_ID = 'SELECT savings_account_id FROM savings_account WHERE account_id = (SELECT account_id FROM account WHERE account_number = %s)' +CHECK_ACCOUNT_IS_VALID = 'SELECT account_id FROM account WHERE account_number = %s' + SELECT_USERNAME = 'SELECT username FROM user WHERE username = %s' SELECT_PASSWORD = 'SELECT password FROM user WHERE username = %s' diff --git a/templates/auth/login.html b/templates/auth/login.html index 624a44a..7b750a4 100644 --- a/templates/auth/login.html +++ b/templates/auth/login.html @@ -5,6 +5,7 @@ + @@ -17,6 +18,7 @@ body { background-image: url("{{ url_for('static',filename='img/home/group-131.png') }}"); + background-size: cover; } @@ -25,6 +27,16 @@ + {% with messages = get_flashed_messages(with_categories=True) %} +{% if messages %} +
+ {% for category, message in messages %} +
{{category}}
+
{{message}}
+ {% endfor %} +
+{% endif %} +{% endwith %}
@@ -77,16 +89,6 @@
- {% with messages = get_flashed_messages() %} - {% if messages %} -
    - {% for message in messages %} -
  • {{ message }}
  • - {% endfor %} -
- {% endif %} - {% endwith %} -
diff --git a/templates/auth/register.html b/templates/auth/register.html index 10436a5..9b1bc90 100644 --- a/templates/auth/register.html +++ b/templates/auth/register.html @@ -3,6 +3,7 @@ + @@ -14,7 +15,16 @@ rel="stylesheet"> - +{% with messages = get_flashed_messages(with_categories=True) %} +{% if messages %} +
+ {% for category, message in messages %} +
{{category}}
+
{{message}}
+ {% endfor %} +
+{% endif %} +{% endwith %}
diff --git a/templates/createAccount/existingFixedIndividual.html b/templates/bankAccount/existingFixedIndividual.html similarity index 89% rename from templates/createAccount/existingFixedIndividual.html rename to templates/bankAccount/existingFixedIndividual.html index aff94d6..de036ba 100644 --- a/templates/createAccount/existingFixedIndividual.html +++ b/templates/bankAccount/existingFixedIndividual.html @@ -5,7 +5,8 @@ - + + @@ -24,6 +25,16 @@ + {% with messages = get_flashed_messages(with_categories=True) %} + {% if messages %} +
+ {% for category, message in messages %} +
{{category}}
+
{{message}}
+ {% endfor %} +
+ {% endif %} + {% endwith %}
@@ -75,7 +86,14 @@

Employee

-
+
+ +
+ diff --git a/templates/bankAccount/existingUserCreateMain.html b/templates/bankAccount/existingUserCreateMain.html index c3d9325..8dbbf5a 100644 --- a/templates/bankAccount/existingUserCreateMain.html +++ b/templates/bankAccount/existingUserCreateMain.html @@ -112,7 +112,7 @@

× diff --git a/templates/bankAccount/newCurrentIndividual.html b/templates/bankAccount/newCurrentIndividual.html new file mode 100644 index 0000000..b8f0e91 --- /dev/null +++ b/templates/bankAccount/newCurrentIndividual.html @@ -0,0 +1,177 @@ + + + + + + + + + + + + + + + + + + Bank + + {% with messages = get_flashed_messages(with_categories=True) %} + {% if messages %} +
+ {% for category, message in messages %} +
{{category}}
+
{{message}}
+ {% endfor %} +
+ {% endif %} + {% endwith %} + +
+
+ + + + + +

Employee

+ +
+
+ + + +
+ +
+ +
+ +
+ + +
Create Current Account for Individuals
+
+ +
+
+ +
+ +
+
+
+
+ First Name +
+ +
+ +
+ +
+ Last Name +
+ +
+ +
+
+ NIC No. +
+ +
+ +
+
+ Branch ID +
+ {% if context %} + + {% else %} + + {% endif %} +
+ +
+ +
+ Telephone +
+ +
+ +
+
+ HomeTown +
+ +
+ +
+ +
+ Date of Birth +
+ +
+ +
+
+ First Deposit +
+ +
+ +
+
+
+ +
+
+
The Customer details are correct and the Cutomer has agreed to the
terms & Conditions
+
+ + +
+
+ + + +
+ + + + +
+ + + + + + + + + + + + \ No newline at end of file diff --git a/templates/bankAccount/newSavingsIndividual.html b/templates/bankAccount/newSavingsIndividual.html index 6f3df9a..4942d20 100644 --- a/templates/bankAccount/newSavingsIndividual.html +++ b/templates/bankAccount/newSavingsIndividual.html @@ -5,6 +5,7 @@ + @@ -23,6 +24,16 @@ + {% with messages = get_flashed_messages(with_categories=True) %} + {% if messages %} +
+ {% for category, message in messages %} +
{{category}}
+
{{message}}
+ {% endfor %} +
+ {% endif %} + {% endwith %}
@@ -46,7 +57,7 @@

Employee

-
Create Fixed Deposit Individuals
+
Create Savings Account for Individuals
@@ -68,7 +79,7 @@

Employee

Last Name
- +
@@ -82,7 +93,11 @@

Employee

Branch ID
- + {% if context %} + + {% else %} + + {% endif %}
@@ -90,14 +105,14 @@

Employee

Telephone
- +
HomeTown
- +
@@ -105,7 +120,7 @@

Employee

Date of Birth
- +
diff --git a/templates/bankAccount/newUserCreationMain.html b/templates/bankAccount/newUserCreationMain.html index 08c207d..d009ee6 100644 --- a/templates/bankAccount/newUserCreationMain.html +++ b/templates/bankAccount/newUserCreationMain.html @@ -92,7 +92,7 @@

Create Current Account

× diff --git a/templates/dashboard/employee_dashboard.html b/templates/dashboard/employee_dashboard.html index 8a7299a..890d5de 100644 --- a/templates/dashboard/employee_dashboard.html +++ b/templates/dashboard/employee_dashboard.html @@ -5,6 +5,7 @@ + @@ -24,7 +25,16 @@ - + {% with messages = get_flashed_messages(with_categories=True) %} + {% if messages %} +
+ {% for category, message in messages %} +
{{category}}
+
{{message}}
+ {% endfor %} +
+ {% endif %} + {% endwith %}
From 90a4db46ed08d1df4d655ade060d74c45009cbb8 Mon Sep 17 00:00:00 2001 From: dilumin <77558016+dilumin@users.noreply.github.com> Date: Tue, 31 Oct 2023 07:15:27 +0530 Subject: [PATCH 02/40] bugs fixs --- static/css/manager_dasdhbaord.css | 38 +++++++++++++++++++ .../existingCurrentIndividual.html | 2 +- .../bankAccount/existingFixedIndividual.html | 4 +- .../bankAccount/existingUserCreateMain.html | 4 +- .../bankAccount/newCurrentIndividual.html | 4 +- .../bankAccount/newSavingsIndividual.html | 4 +- .../bankAccount/newUserCreationMain.html | 4 +- templates/dashboard/manager_dashbaord.html | 30 ++++++++++++--- 8 files changed, 74 insertions(+), 16 deletions(-) diff --git a/static/css/manager_dasdhbaord.css b/static/css/manager_dasdhbaord.css index 43c66e8..394fd2e 100644 --- a/static/css/manager_dasdhbaord.css +++ b/static/css/manager_dasdhbaord.css @@ -586,6 +586,44 @@ body { transform: scale(0.98); } + +.btn2{ + border-radius: 12px; + border: 2px solid #a9e1f5; + font-family: Manrope; + font-weight: bold; + font-size: 20px; + background-color: transparent; + display: flex; + align-items: center; + justify-content: center; + column-gap: var(--gap); + padding: 0.6rem; + cursor: pointer; + /* border-radius: var(--radius); */ + + box-shadow: var(--shadow); + position: relative; + margin-bottom: 20px; + color: #7bbfcb ; + width: 80%; + text-decoration: none; +} + +.btn2:hover { + /* background-color: var(--color); */ + background-color: #10252c; + color: #034b6f; + transition: 0.2s; +} +.btn2:active { + transform: scale(0.98); +} + + + + + .buttons { display: flex; flex-direction: column; diff --git a/templates/bankAccount/existingCurrentIndividual.html b/templates/bankAccount/existingCurrentIndividual.html index 408eb42..ea20f5e 100644 --- a/templates/bankAccount/existingCurrentIndividual.html +++ b/templates/bankAccount/existingCurrentIndividual.html @@ -35,7 +35,7 @@

Employee

- +
diff --git a/templates/bankAccount/existingUserCreateMain.html b/templates/bankAccount/existingUserCreateMain.html index 8dbbf5a..c795848 100644 --- a/templates/bankAccount/existingUserCreateMain.html +++ b/templates/bankAccount/existingUserCreateMain.html @@ -35,11 +35,11 @@

Employee

-
+ -
+
diff --git a/templates/bankAccount/newCurrentIndividual.html b/templates/bankAccount/newCurrentIndividual.html index b8f0e91..ce92468 100644 --- a/templates/bankAccount/newCurrentIndividual.html +++ b/templates/bankAccount/newCurrentIndividual.html @@ -44,11 +44,11 @@

Employee

-
+ -
+

diff --git a/templates/bankAccount/newSavingsIndividual.html b/templates/bankAccount/newSavingsIndividual.html index 4942d20..6b04799 100644 --- a/templates/bankAccount/newSavingsIndividual.html +++ b/templates/bankAccount/newSavingsIndividual.html @@ -44,11 +44,11 @@

Employee

-
+ -
+
diff --git a/templates/bankAccount/newUserCreationMain.html b/templates/bankAccount/newUserCreationMain.html index d009ee6..6208fe9 100644 --- a/templates/bankAccount/newUserCreationMain.html +++ b/templates/bankAccount/newUserCreationMain.html @@ -36,11 +36,11 @@

Employee

-
+ -
+
diff --git a/templates/dashboard/manager_dashbaord.html b/templates/dashboard/manager_dashbaord.html index 421f861..93ff041 100644 --- a/templates/dashboard/manager_dashbaord.html +++ b/templates/dashboard/manager_dashbaord.html @@ -4,7 +4,8 @@ - + + @@ -43,7 +44,7 @@

Manager

@@ -178,9 +179,9 @@

Manager

- + - +
@@ -204,7 +205,7 @@

Manager

diff --git a/templates/bankAccount/transaction.html b/templates/bankAccount/transaction.html index eb757ed..8bb084f 100644 --- a/templates/bankAccount/transaction.html +++ b/templates/bankAccount/transaction.html @@ -6,7 +6,7 @@ Document - + @@ -33,6 +33,16 @@ --> + {% with messages = get_flashed_messages(with_categories=True) %} + {% if messages %} +
+ {% for category, message in messages %} +
{{category}}
+
{{message}}
+ {% endfor %} +
+ {% endif %} + {% endwith %}
diff --git a/templates/createAccount/employeeAdding.html b/templates/createAccount/employeeAdding.html index b6d5cdd..00b0b40 100644 --- a/templates/createAccount/employeeAdding.html +++ b/templates/createAccount/employeeAdding.html @@ -23,6 +23,16 @@ + {% with messages = get_flashed_messages(with_categories=True) %} + {% if messages %} +
+ {% for category, message in messages %} +
{{category}}
+
{{message}}
+ {% endfor %} +
+ {% endif %} + {% endwith %}
@@ -82,7 +92,18 @@

Manager

Branch ID
+ {% if context %} + + {% else %} + {% endif %} +
+ +
+
+ Role +
+
@@ -90,14 +111,14 @@

Manager

Telephone
- +
- HomeTown + Home Town
- +
@@ -105,7 +126,7 @@

Manager

Date of Birth
- +
diff --git a/templates/dashboard/customer_dashboard.html b/templates/dashboard/customer_dashboard.html index e957ba2..c2aff2e 100644 --- a/templates/dashboard/customer_dashboard.html +++ b/templates/dashboard/customer_dashboard.html @@ -221,11 +221,11 @@ - {% for account in context.accounts %} + {% for account in context.fixed_deposits %} - {{account.account_number}} - {{account.account_type}} - Rs {{account.balance}} + {{account.fixed_deposit_id}} + {{account.duration}} + Rs {{account.amount}} {% endfor %} diff --git a/templates/dashboard/manager_dashbaord.html b/templates/dashboard/manager_dashbaord.html index 9086f30..bb6f938 100644 --- a/templates/dashboard/manager_dashbaord.html +++ b/templates/dashboard/manager_dashbaord.html @@ -5,7 +5,8 @@ - + + @@ -25,6 +26,16 @@ + {% with messages = get_flashed_messages(with_categories=True) %} + {% if messages %} +
+ {% for category, message in messages %} +
{{category}}
+
{{message}}
+ {% endfor %} +
+ {% endif %} + {% endwith %}
@@ -206,7 +217,7 @@

Existing Users New Users - Add Employees + Add Employees

diff --git a/templates/user/accountDetails.html b/templates/user/accountDetails.html index 02c13da..1a2370a 100644 --- a/templates/user/accountDetails.html +++ b/templates/user/accountDetails.html @@ -5,6 +5,7 @@ + diff --git a/templates/user/settings.html b/templates/user/settings.html index 66b320d..a20a75e 100644 --- a/templates/user/settings.html +++ b/templates/user/settings.html @@ -1,111 +1,151 @@ - - - - - - - - - - - - - - Bank - - - - - -
-
- - - - -
- - - - - + + + + + + + + + + + + + + Bank + + + + + +
+
+ + + +
- - -
-
- - -
Configure Account
- -
-
-
- First Name -
- -
- + + + + + + +
+ + +
+ + + +
Configure Account
+ +
+
+
+ First Name +
+
-
- Last Name -
- -
+
+
+ Last Name +
+
-
- HomeTown -
- -
+
+
+ HomeTown +
+
-
- Telephone -
- -
+
+
+ Telephone +
+
-
- Birthday -
- -
+
+
+ Birthday +
+
+
+
-
-
- - +
+ +
+ + + + {% if context.employee_details %} + +
+ Position +
+ +
+ +
+ +
+ Branch +
+ +
- - + + {% endif %} + +
+ + + + \ No newline at end of file diff --git a/templates/user_details.html b/templates/user_details.html index 65b280c..74f3969 100644 --- a/templates/user_details.html +++ b/templates/user_details.html @@ -1,95 +1,107 @@ - - - - - - - - - - - - - - Bank - - - - {% with messages = get_flashed_messages(with_categories=True) %} - {% if messages %} -
- {% for category, message in messages %} -
{{category}}
-
{{message}}
- {% endfor %} -
- {% endif %} - {% endwith %} -
-
- - - - -

Employee

-
- - - - - + + + + + + + + + + + + + + Bank + + + + {% with messages = get_flashed_messages(with_categories=True) %} + {% if messages %} +
+ {% for category, message in messages %} +
{{category}}
+
{{message}}
+ {% endfor %} +
+ {% endif %} + {% endwith %} +
+
+ + + + +

Employee

-
+ + + + +
+ +
+
    + {% if context %} +
  • + First Name : +
    {{context.first_name}}
    +
  • +
  • + Last Name : +
    {{context.last_name}}
    +
  • +
  • + Address : +
    {{context.home_town}}
  • -
  • Settings
  • -
- - - -
+ {% endif %} + +
-
-
    -
  • - First Name : -
    John
    -
  • -
  • - Last Name : -
    Doe
    -
  • -
  • - Address : -
    Molpe road
    -
  • -
-
+
+
+ -
- -
- - -
-
-
+
+
Employee line-height: normal; letter-spacing: 0.48px; margin-right: 20px;"> - The number of Accounts -
-
+ The number of Accounts
+
+
-
- +
-
- - - - - - + +
+
Date TimeAccount NumberBalance
+ + + + + + + + + + + {% if context.accounts %} + {% for account in context.accounts %} + + + + - - - - - -
Account NumberAccount TypeBalance
{{account.account_number}}{{account.account_type}}{{account.balance}}
2012-10-3 14:27:7621020021000
-
- -
+
-
- + -
- + + - \ No newline at end of file From 88f12a5c3e90840b4dd465bc6139ee839f6a0d79 Mon Sep 17 00:00:00 2001 From: dilumin <77558016+dilumin@users.noreply.github.com> Date: Wed, 1 Nov 2023 11:59:19 +0530 Subject: [PATCH 20/40] navigation buttons working in account creations --- static/css/user_details.css | 8 ++ .../bankAccount/displayCreatedAccount.html | 3 +- .../existingCurrentIndividual.html | 5 +- .../existingCurrentOrganization.html | 5 +- .../bankAccount/existingFixedIndividual.html | 5 +- .../existingFixedOrganization.html | 5 +- .../bankAccount/existingSavingIndividual.html | 5 +- .../existingSavingOrganization.html | 5 +- .../bankAccount/existingUserCreateMain.html | 3 +- .../bankAccount/newCurrentIndividual.html | 3 +- .../bankAccount/newCurrentOrganization.html | 5 +- .../bankAccount/newSavingsIndividual.html | 3 +- .../bankAccount/newSavingsOrganization.html | 3 +- .../bankAccount/newUserCreationMain.html | 3 +- templates/bankAccount/transaction.html | 3 +- templates/bankAccount/withdraw.html | 3 +- templates/notfound.html | 2 +- templates/user_details.html | 123 ++++++++++-------- 18 files changed, 117 insertions(+), 75 deletions(-) diff --git a/static/css/user_details.css b/static/css/user_details.css index 0d1fbe0..2170331 100644 --- a/static/css/user_details.css +++ b/static/css/user_details.css @@ -350,6 +350,7 @@ flex-direction: column; padding-top: 50px; padding-bottom: 100px; flex-shrink: 0; + margin-bottom: 30px; border-radius: 20px; border: 1px solid rgba(142, 202, 230, 0.17); @@ -835,4 +836,11 @@ cursor: pointer; .back-arr:focus{ opacity: 80%; } +.back-arr{ + width: 50px; + margin-left: 15px; + margin-top: -10px; +} + + diff --git a/templates/bankAccount/displayCreatedAccount.html b/templates/bankAccount/displayCreatedAccount.html index 66f2472..662a8d8 100644 --- a/templates/bankAccount/displayCreatedAccount.html +++ b/templates/bankAccount/displayCreatedAccount.html @@ -69,7 +69,8 @@

Employee

- +
Successfully Created the Account
diff --git a/templates/bankAccount/existingCurrentIndividual.html b/templates/bankAccount/existingCurrentIndividual.html index ea20f5e..2ce08d4 100644 --- a/templates/bankAccount/existingCurrentIndividual.html +++ b/templates/bankAccount/existingCurrentIndividual.html @@ -62,12 +62,13 @@

Employee

-
Create Current Account
+
Create Current Account for Individuals
- +
diff --git a/templates/bankAccount/existingCurrentOrganization.html b/templates/bankAccount/existingCurrentOrganization.html index 931f775..8348c27 100644 --- a/templates/bankAccount/existingCurrentOrganization.html +++ b/templates/bankAccount/existingCurrentOrganization.html @@ -62,12 +62,13 @@

Employee

-
Create Savings Account
+
Create Current Accounts for Organizations
- +
diff --git a/templates/bankAccount/existingFixedIndividual.html b/templates/bankAccount/existingFixedIndividual.html index 5dc5338..1a8faab 100644 --- a/templates/bankAccount/existingFixedIndividual.html +++ b/templates/bankAccount/existingFixedIndividual.html @@ -62,12 +62,13 @@

Employee

-
Create Savings Account
+
Create Fixed Accounts for Individuals
- +
diff --git a/templates/bankAccount/existingFixedOrganization.html b/templates/bankAccount/existingFixedOrganization.html index ef69c0d..d6b67c2 100644 --- a/templates/bankAccount/existingFixedOrganization.html +++ b/templates/bankAccount/existingFixedOrganization.html @@ -62,12 +62,13 @@

Employee

-
Create Savings Account
+
Create Fixed Accounts for Organizations
- +
diff --git a/templates/bankAccount/existingSavingIndividual.html b/templates/bankAccount/existingSavingIndividual.html index 023aaf3..b985109 100644 --- a/templates/bankAccount/existingSavingIndividual.html +++ b/templates/bankAccount/existingSavingIndividual.html @@ -62,12 +62,13 @@

Employee

-
Create Savings Account
+
Create Savings Account for Individuals
- +
diff --git a/templates/bankAccount/existingSavingOrganization.html b/templates/bankAccount/existingSavingOrganization.html index 931f775..af4c067 100644 --- a/templates/bankAccount/existingSavingOrganization.html +++ b/templates/bankAccount/existingSavingOrganization.html @@ -62,12 +62,13 @@

Employee

-
Create Savings Account
+
Create Savings Account for Organization
- +
diff --git a/templates/bankAccount/existingUserCreateMain.html b/templates/bankAccount/existingUserCreateMain.html index 1286920..96bdf5d 100644 --- a/templates/bankAccount/existingUserCreateMain.html +++ b/templates/bankAccount/existingUserCreateMain.html @@ -57,7 +57,8 @@

Employee

- +
Choose the Account Type : diff --git a/templates/bankAccount/newCurrentIndividual.html b/templates/bankAccount/newCurrentIndividual.html index ce92468..8db1382 100644 --- a/templates/bankAccount/newCurrentIndividual.html +++ b/templates/bankAccount/newCurrentIndividual.html @@ -62,7 +62,8 @@

Employee

- +
diff --git a/templates/bankAccount/newCurrentOrganization.html b/templates/bankAccount/newCurrentOrganization.html index dbc0e02..94d02d9 100644 --- a/templates/bankAccount/newCurrentOrganization.html +++ b/templates/bankAccount/newCurrentOrganization.html @@ -62,12 +62,13 @@

Employee

-
Create Savings Account for Organizations
+
Create Current Account for Organizations
- +
diff --git a/templates/bankAccount/newSavingsIndividual.html b/templates/bankAccount/newSavingsIndividual.html index 6b04799..d4e018a 100644 --- a/templates/bankAccount/newSavingsIndividual.html +++ b/templates/bankAccount/newSavingsIndividual.html @@ -62,7 +62,8 @@

Employee

- +
diff --git a/templates/bankAccount/newSavingsOrganization.html b/templates/bankAccount/newSavingsOrganization.html index 3c984e0..0598f85 100644 --- a/templates/bankAccount/newSavingsOrganization.html +++ b/templates/bankAccount/newSavingsOrganization.html @@ -70,7 +70,8 @@

Employee

- +
diff --git a/templates/bankAccount/newUserCreationMain.html b/templates/bankAccount/newUserCreationMain.html index 4252988..1767aa8 100644 --- a/templates/bankAccount/newUserCreationMain.html +++ b/templates/bankAccount/newUserCreationMain.html @@ -55,7 +55,8 @@

Employee

- +
Choose the Account Type : diff --git a/templates/bankAccount/transaction.html b/templates/bankAccount/transaction.html index 8bb084f..ac321e3 100644 --- a/templates/bankAccount/transaction.html +++ b/templates/bankAccount/transaction.html @@ -61,7 +61,8 @@

Manager

- +
Employee
- +
diff --git a/templates/notfound.html b/templates/notfound.html index 8ecd25e..e867596 100644 --- a/templates/notfound.html +++ b/templates/notfound.html @@ -68,7 +68,7 @@
- +
diff --git a/templates/user_details.html b/templates/user_details.html index 74f3969..d1beb2d 100644 --- a/templates/user_details.html +++ b/templates/user_details.html @@ -71,25 +71,29 @@

Employee

+
-
    - {% if context %} -
  • - First Name : -
    {{context.first_name}}
    -
  • -
  • - Last Name : -
    {{context.last_name}}
    -
  • -
  • - Address : -
    {{context.home_town}}
    -
  • - - {% endif %} -
+ +
+
    + {% if context %} +
  • + First Name : +
    {{context.first_name}}
    +
  • +
  • + Last Name : +
    {{context.last_name}}
    +
  • +
  • + Address : +
    {{context.home_town}}
    +
  • + + {% endif %} +
+
@@ -97,7 +101,7 @@

Employee

- +
@@ -108,24 +112,12 @@

Employee

font-weight: 500; line-height: normal; letter-spacing: 0.48px; - margin-right: 20px;"> - The number of Accounts + margin-right: 20px; justify-content: center;"> + Savings & Current Accounts
-
@@ -138,13 +130,6 @@

Employee

- - - {% if context.accounts %} {% for account in context.accounts %} @@ -158,23 +143,57 @@

Employee

-
From 176b78f19559e9cdde96b2bae8be8defe17fdf17 Mon Sep 17 00:00:00 2001 From: dilumin <77558016+dilumin@users.noreply.github.com> Date: Wed, 1 Nov 2023 12:54:17 +0530 Subject: [PATCH 21/40] settings done --- static/css/settings.css | 73 ++++++++++++++----- .../bankAccount/displayCreatedAccount.html | 2 + templates/dashboard/customer_dashboard.html | 2 + templates/user/settings.html | 64 ++++++++++------ 4 files changed, 98 insertions(+), 43 deletions(-) diff --git a/static/css/settings.css b/static/css/settings.css index 7675118..5a8903a 100644 --- a/static/css/settings.css +++ b/static/css/settings.css @@ -6,6 +6,9 @@ box-sizing: border-box; } +input{ + outline: none; +} html{ height: 100%; @@ -78,8 +81,7 @@ body { font-style: normal; font-weight: 400; line-height: normal; - } - .nav-bar { + }.nav-bar { font-family: "Poppins"; margin-top: 40px; @@ -123,7 +125,7 @@ body { color: #ffffff; text-align: center; font-family: Rubik; - font-size: 25px; + font-size: 20px; font-style: normal; font-weight: 500; line-height: normal; @@ -146,23 +148,56 @@ body { transition: all 0.2s ease-in-out; } - - .aa{ - display: block; - text-decoration: none; - color: #ffffff; - text-align: center; - font-family: Roboto; - font-size: 18px; - font-style: normal; - font-weight: 400; - line-height: normal; - - } -input{ - outline: none; + + + +.aa-but{ + background: transparent; + border: none; + display: block; + text-decoration: none; + color: #ffffff; + text-align: center; + font-family: Roboto; + font-size: 18px; + font-style: normal; + font-weight: 400; + line-height: normal; + display: block; + text-decoration: none; + color: #ffffff; + text-align: center; + font-family: Rubik; + font-size: 20px; + font-style: normal; + font-weight: 500; + line-height: normal; + padding: 10px; + padding-left: 15px; + padding-right: 15px; -} + } + .aa-but:hover{ + cursor: pointer; + } + .inputs{ + margin-top: 20px; + margin-bottom: 15px; + + + } + .aa-but:hover, + .active { + color: #000000; + cursor: pointer; + background-color: #ffffffde; + border-radius: 6px; + font-weight: bold; + /* From https://css.glass */ + background: #ffffff; + border-radius: 16px; + transition: all 0.2s ease-in-out; + } .contain{ border-radius: 32px 32px 32px 32px; diff --git a/templates/bankAccount/displayCreatedAccount.html b/templates/bankAccount/displayCreatedAccount.html index 662a8d8..906954f 100644 --- a/templates/bankAccount/displayCreatedAccount.html +++ b/templates/bankAccount/displayCreatedAccount.html @@ -76,6 +76,8 @@

Employee

+ +
diff --git a/templates/dashboard/customer_dashboard.html b/templates/dashboard/customer_dashboard.html index c2aff2e..a024fea 100644 --- a/templates/dashboard/customer_dashboard.html +++ b/templates/dashboard/customer_dashboard.html @@ -221,6 +221,7 @@ + {% if context.fixed_deposits %} {% for account in context.fixed_deposits %} {{account.fixed_deposit_id}} @@ -228,6 +229,7 @@ Rs {{account.amount}} {% endfor %} + {% endif %}
diff --git a/templates/user/settings.html b/templates/user/settings.html index a20a75e..d543957 100644 --- a/templates/user/settings.html +++ b/templates/user/settings.html @@ -30,6 +30,9 @@ + + +
+ {% if context.employee_details %} +

Employee

+ {% endif %} +
@@ -51,15 +58,19 @@
+ +
@@ -106,42 +117,47 @@
-
+ + {% if context.employee_details %} + +
+ Position +
+ +
+
-
+
+ Branch +
+ +
-
+
-
- - - {% if context.employee_details %} + {% endif %} -
- Position -
- -
+ -
-
- Branch -
- +
-
+
+ +
+ + - {% endif %} +
From 337387ad76554dfb6d310de8f365b8ead31c0647 Mon Sep 17 00:00:00 2001 From: sithum jeevantha Date: Wed, 1 Nov 2023 13:00:32 +0530 Subject: [PATCH 22/40] add all the photos,change the footer and contact us menu --- static/css/home.css | 28 ++++++++++++++++++++-------- templates/home/home.html | 20 ++++++++++---------- 2 files changed, 30 insertions(+), 18 deletions(-) diff --git a/static/css/home.css b/static/css/home.css index 74947a7..a3049ec 100644 --- a/static/css/home.css +++ b/static/css/home.css @@ -529,6 +529,9 @@ ul { margin-bottom: 30px; } +.contact-section input::placeholder,textarea::placeholder { + color: rgb(255, 255, 255); +} .contact-info { list-style: none; padding: 0; @@ -563,21 +566,27 @@ ul { .btn { padding: 12px 30px; font-size: 16px; + border: none; + color: #ffffff; } + + .btn-primary { /* From https://css.glass */ background: rgba(255, 255, 255, 0.25); border-radius: 16px; - box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35); - backdrop-filter: blur(18.9px); - -webkit-backdrop-filter: blur(18.9px); + /* box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35); */ + /* backdrop-filter: blur(18.9px); + -webkit-backdrop-filter: blur(18.9px); */ } .btn-primary:hover { - background-color: #0069d9; - border-color: #0069d9; + background-color: #ffffff; + color: #000000; + font-weight: 400; + } /*end of contact us section*/ @@ -646,7 +655,7 @@ ul { /*footer*/ footer { - background-color: #080431; + background: rgba(255, 255, 255, 0.50); padding: 20px; text-align: center; } @@ -662,17 +671,20 @@ footer { .footer-links a { margin: 0 10px; - color: #ffffff; + color: #000000; text-decoration: none; } .footer-links a:hover { text-decoration: underline; + color: #ffffff; } .footer-text { - color: #ffffff; + color: #000000; font-size: 14px; } + + /* end of footer */ \ No newline at end of file diff --git a/templates/home/home.html b/templates/home/home.html index 7496ac3..153755d 100644 --- a/templates/home/home.html +++ b/templates/home/home.html @@ -117,9 +117,9 @@

Account types

With just a few simple steps, you can become a valued customer and unlock a world of financial opportunities. Take advantage of our exceptional services, including:
    -
  • ● Account Creation for Individuals
  • -
  • ● Account Creation for Oraganizations
  • -
  • ● Creating Fixed Deposit Accounts
  • +
  • ● Accounts for Individuals
  • +
  • ● Accounts for Oraganizations
  • +
  • ● Fixed Deposit Accounts

@@ -128,7 +128,7 @@

Account types

Fixed Deposit

- +
@@ -151,7 +151,7 @@

Fixed Deposit

Accounts

- +
@@ -162,8 +162,8 @@

Accounts

  • ● Children - 12%, no minimum
  • ● Teen - 11%, 500 minimum
  • -
  • ● Adult (18+) - 10%, 1000 minimum
  • -
  • ● Senior (60+) - 13%, 1000 minimum
  • +
  • ● Adult (18+) - 10%,
    1000 minimum
  • +
  • ● Senior (60+) - 13%,
    1000 minimum

@@ -172,7 +172,7 @@

Accounts

Transactions

- +
@@ -189,7 +189,7 @@

Transactions

Loan Request

- +
@@ -209,7 +209,7 @@

Loan Request

Security

- +
From 5de224dcb3305d7ecfc1f45b7c51fb9b2c332bb0 Mon Sep 17 00:00:00 2001 From: yasanthaniroshan Date: Wed, 1 Nov 2023 13:15:31 +0530 Subject: [PATCH 23/40] added account creation for new users --- BankAccount/bank_account.py | 41 ++++++------------- Database/connection.py | 2 +- Database/database_quaries.py | 1 + .../bankAccount/displayCreatedAccount.html | 2 +- 4 files changed, 15 insertions(+), 31 deletions(-) diff --git a/BankAccount/bank_account.py b/BankAccount/bank_account.py index 0bba923..7b055ce 100644 --- a/BankAccount/bank_account.py +++ b/BankAccount/bank_account.py @@ -175,12 +175,14 @@ def create_current_account_for_new_organization(first_name,last_name,branch_id,n connector = Connector() try: with connector: - connector.cursor.execute(CREATE_BANK_ACCOUNT_FOR_ORGANIZATION,(organization_name,organization_role,first_name,last_name,branch_id,nic,telephone,home_town,date_of_birth,first_deposit,account_number,'CURRENT',)) - connector.connection.commit() - return True + connector.cursor.execute(CREATE_CURRENT_ACCOUNT_FOR_NEW_ORGANIZATION,(first_name,last_name,branch_id,nic,telephone,home_town,date_of_birth,first_deposit,account_number,organization_name,organization_role,)) + context = connector.cursor.fetchone() + flash("Account Created Successfully", 'Account') + return render_template('bankAccount/displayCreatedAccount.html',context=context) except Exception as e: - print("Error in create_current_account_for_new_organization",e) - return False + error_code, error_message = e.args + flash(error_message,"Error") + return redirect(url_for('bank_account.create_current_account_organization_new')) @bank_account_app.route('/transfer',methods = DEFUALT_SUBMISSION_METHODS,endpoint='transfer') @valid_session @@ -359,6 +361,7 @@ def create_savings_account_new_individual(): if request.method == 'POST': first_name, last_name, branch_id, nic, telephone, home_town, date_of_birth, first_deposit = (request.form[key] for key in ['first_name', 'last_name', 'branch_id', 'nic', 'telephone', 'home_town', 'date_of_birth', 'first_deposit']) account_number = get_account_number(first_name,last_name,branch_id) + print(account_number) return create_savings_account_for_new_user_individual(first_name,last_name,branch_id,nic,telephone,home_town,date_of_birth,first_deposit,account_number) elif request.method == 'GET': @@ -401,30 +404,10 @@ def create_savings_account_new_organization(): @valid_session def create_current_account_new_organization(): if request.method == 'POST': - first_name = request.form['first_name'] - last_name = request.form['last_name'] - branch_id = request.form['branch_id'] - nic = request.form['nic'] - telephone = request.form['telephone'] - home_town = request.form['home_town'] - date_of_birth = request.form['date_of_birth'] - first_deposit = request.form['first_deposit'] - organization_name = request.form['organization_name'] - organization_role = request.form['organization_role'] - ascii_values = [ord(char) for char in (first_name+last_name)] - new_account_number = f"{str(branch_id)}-{str(sum(ascii_values)%1000)}-{str(1)}" - print(first_name,last_name,branch_id,nic,telephone,home_town,date_of_birth,first_deposit,new_account_number,organization_name,organization_role) - - if check_firstname_and_last_name_exsists(first_name,last_name): - flash("User Already Exists", 'Error') - return redirect(url_for('bank_account.create_savings_account_organization_new')) - if create_current_account_for_new_organization(first_name,last_name,branch_id,nic,telephone,home_town,date_of_birth,first_deposit,new_account_number,organization_name,organization_role): - flash("Account Created Successfully","Account Creation") - context = {'account_number':new_account_number,'account_type':'SAVINGS','created_at':datetime.now().strftime("%Y-%m-%d %H:%M:%S"),'full_name':f'{first_name} {last_name}'} - return render_template('bankAccount/displayCreatedAccount.html',context=context) - else: - flash("Error Occured ", "Error") - return redirect('/dashboard') + first_name, last_name, branch_id, nic, telephone, home_town, date_of_birth, first_deposit, organization_name, organization_role = (request.form[key] for key in ['first_name', 'last_name', 'branch_id', 'nic', 'telephone', 'home_town', 'date_of_birth', 'first_deposit', 'organization_name', 'organization_role']) + account_number = get_account_number(first_name,last_name,branch_id) + return create_current_account_for_new_organization(first_name,last_name,branch_id,nic,telephone,home_town,date_of_birth,first_deposit,account_number,organization_name,organization_role) + elif request.method == 'GET': context = get_branch_id(session['user_id']) diff --git a/Database/connection.py b/Database/connection.py index c210d93..e42697d 100644 --- a/Database/connection.py +++ b/Database/connection.py @@ -25,7 +25,7 @@ def __exit__(self, exc_type, exc_value, traceback): def connect(self): try: - self.connection = MySQLdb.connect(*self.configurations.values(),cursorclass=Cursor) + self.connection = MySQLdb.connect(*self.configurations.values(),cursorclass=Cursor,autocommit=True) self.cursor = self.connection.cursor() return self.cursor except Exception as e: diff --git a/Database/database_quaries.py b/Database/database_quaries.py index 6126d78..d22db8e 100644 --- a/Database/database_quaries.py +++ b/Database/database_quaries.py @@ -48,3 +48,4 @@ CREATE_SAVINGS_ACCOUNT_FOR_NEW_INDIVIDUAL_USER = 'call create_savings_account_for_new_individual_user(%s,%s,%s,%s,%s,%s,%s,%s,%s)' CREATE_CURRENT_ACCOUNT_FOR_NEW_INDIVIDUAL_USER = 'call create_current_account_for_new_individual_user(%s,%s,%s,%s,%s,%s,%s,%s,%s)' CREATE_SAVINGS_ACCOUNT_FOR_NEW_ORGANIZATION = 'call create_savings_account_for_new_organization_user(%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)' +CREATE_CURRENT_ACCOUNT_FOR_NEW_ORGANIZATION = 'call create_current_account_for_new_organization_user(%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)' diff --git a/templates/bankAccount/displayCreatedAccount.html b/templates/bankAccount/displayCreatedAccount.html index 66f2472..faa3584 100644 --- a/templates/bankAccount/displayCreatedAccount.html +++ b/templates/bankAccount/displayCreatedAccount.html @@ -90,7 +90,7 @@

Employee

  • Name: -
    {{context.full_name}}
    +
    {{context.first_name}}
  • Type: From a39a45125b785d172ae76164b62d93f50421d69e Mon Sep 17 00:00:00 2001 From: sithum jeevantha Date: Wed, 1 Nov 2023 13:49:38 +0530 Subject: [PATCH 24/40] chabging the placeholder color in contact us section and changing the size of the our services tags --- static/css/home.css | 3 ++- templates/home/home.html | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/static/css/home.css b/static/css/home.css index a3049ec..667ca2e 100644 --- a/static/css/home.css +++ b/static/css/home.css @@ -416,7 +416,7 @@ ul li:hover ul.dropdown { padding: 10px; margin: 30px; /* border-radius: 20px; */ - height: 60vh; + height: 55vh; width: 40vw; opacity: 90%; /* From https://css.glass */ @@ -557,6 +557,7 @@ ul { width: 100%; padding: 10px; margin-bottom: 20px; + color: #ffffff; } .contact-form textarea { diff --git a/templates/home/home.html b/templates/home/home.html index 153755d..2048630 100644 --- a/templates/home/home.html +++ b/templates/home/home.html @@ -162,8 +162,8 @@

    Accounts

    • ● Children - 12%, no minimum
    • ● Teen - 11%, 500 minimum
    • -
    • ● Adult (18+) - 10%,
      1000 minimum
    • -
    • ● Senior (60+) - 13%,
      1000 minimum
    • +
    • ● Adult (18+) - 10%,
               1000 minimum
    • +
    • ● Senior (60+) - 13%,
               1000 minimum

  • @@ -179,7 +179,7 @@

    Transactions

    Experience hassle-free transactions with our comprehensive banking solutions. Our user-friendly platform allows you to easily manage your finances and conduct transactions securely.


    -

    Join us today and enjoy seamless banking at your fingertips.

    +
    From f8bae65a26b85e756159c132eec9931d8aa42a27 Mon Sep 17 00:00:00 2001 From: dilumin <77558016+dilumin@users.noreply.github.com> Date: Wed, 1 Nov 2023 16:06:34 +0530 Subject: [PATCH 25/40] Changed css in most Signed-off-by: dilumin <77558016+dilumin@users.noreply.github.com> --- static/css/alltransactions.css | 88 ++++++++++++++++++- .../bankAccount/displayCreatedAccount.html | 30 +++++-- .../bankAccount/newCurrentIndividual.html | 2 +- templates/dashboard/customer_dashboard.html | 50 ++++++++++- templates/dashboard/employee_dashboard.html | 4 +- templates/dashboard/manager_dashbaord.html | 6 +- templates/loan/loanRequest.html | 3 +- templates/reports/alltransactions.html | 55 +++++++++++- templates/user/accountDetails.html | 18 +--- 9 files changed, 220 insertions(+), 36 deletions(-) diff --git a/static/css/alltransactions.css b/static/css/alltransactions.css index 37783c8..c592ef1 100644 --- a/static/css/alltransactions.css +++ b/static/css/alltransactions.css @@ -284,6 +284,43 @@ body { box-shadow: 0px 4px 30px 0px rgba(0, 0, 0, 0.17); backdrop-filter: blur(30px); } + +.info2{ + border-radius: 20px; + border: 1px solid #8ECAE6; + background: linear-gradient(180deg, rgba(0, 0, 0, 0.20) 2.08%, rgba(0, 0, 0, 0.06) 47.92%, rgba(0, 0, 0, 0.20) 100%), linear-gradient(137deg, rgba(2, 48, 71, 0.78) 21.18%, rgba(2, 48, 71, 0.00) 100%); + box-shadow: 0px 4px 30px 0px rgba(0, 0, 0, 0.17); + backdrop-filter: blur(30px); + margin-right: 30px; + padding-top: 20px; + padding-bottom: 20px; + flex-shrink: 0; + + border-radius: 20px; + border: 1px solid rgba(142, 202, 230, 0.17); + background: linear-gradient(180deg, rgba(0, 0, 0, 0.20) 2.08%, rgba(13, 16, 28, 0.15) 47.92%, rgba(0, 0, 0, 0.20) 100%), linear-gradient(137deg, rgba(2, 48, 71, 0.38) 21.18%, rgba(2, 48, 71, 0.07) 57.4%, rgba(2, 48, 71, 0.00) 100%); + box-shadow: 0px 4px 30px 0px rgba(0, 0, 0, 0.17); + backdrop-filter: blur(30px); + margin-left: 100px; + margin-right: 100px; + padding-left: 120px; + display: flex; + justify-content: center; + +} +.t{ + font-family: Rubik; + font-size: 16px; + color: white; +} +.tts{ + width: 700px; + display: flex; + justify-content: space-around; + margin-bottom: 6px; + +} + .CE-container{ width: 420px; padding-top: 10px; @@ -329,6 +366,34 @@ body { /* ------------------------------------------------- */ + .button99{ + color: #FFF; + text-align: center; + font-family: 'Rubik'; + font-weight: 300; + font-size: 20px; + font-style: normal; + font-weight: bold; + line-height: normal; + text-transform: uppercase; + width: 140px; + height: 44px; + flex-shrink: 0; + border-radius: 48px; + border: none; + background: #00507C; + margin-bottom: 13px; + box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19); +} +.button99:hover{ + opacity: 80%; + transition: 0.2s; + cursor: pointer; +} +.button99:focus{ + opacity: 60%; +} + .account-s{ display: flex; @@ -603,16 +668,16 @@ body { padding-left: 20px; display: flex; align-items: center; - width: 480px; - height: 45px; + width: 300px; + height: 25px; flex-shrink: 0; border-radius: 48px; background: #FFF; margin-bottom: 20px; } .enq{ - width: 400px; - height: 45px; + width: 250px; + height: 25px; font-size: 19px; background:transparent; border: none; @@ -708,4 +773,19 @@ table{ font-family: Rubik; font-size: 20px; +} +.timeline { + display: flex; + justify-content: space-between; +} +.amount_range { + display: flex; + justify-content: space-between; + +} +.contentt{ + width: 700px; + margin-left: 30px; + + } \ No newline at end of file diff --git a/templates/bankAccount/displayCreatedAccount.html b/templates/bankAccount/displayCreatedAccount.html index 906954f..c281ac0 100644 --- a/templates/bankAccount/displayCreatedAccount.html +++ b/templates/bankAccount/displayCreatedAccount.html @@ -4,8 +4,8 @@ - - + + @@ -76,11 +76,31 @@

    Employee

    - +
    + {% if context %} +
    +
    +
    Created At :
    +
    Account No :
    +
    Name :
    +
    Type :
    + +
    +
    +
    {{context.created_at}}
    +
    {{context.account_number}}
    +
    {{context.full_name}}
    +
    {{context.account_type}}
    + +
    +
    + + {% endif %} +
    -
    + diff --git a/templates/bankAccount/newCurrentIndividual.html b/templates/bankAccount/newCurrentIndividual.html index 8db1382..826a7af 100644 --- a/templates/bankAccount/newCurrentIndividual.html +++ b/templates/bankAccount/newCurrentIndividual.html @@ -62,7 +62,7 @@

    Employee

    -
    diff --git a/templates/dashboard/customer_dashboard.html b/templates/dashboard/customer_dashboard.html index a024fea..4e8ee0f 100644 --- a/templates/dashboard/customer_dashboard.html +++ b/templates/dashboard/customer_dashboard.html @@ -42,7 +42,8 @@ - + +

    Customer

    @@ -198,6 +199,7 @@
    + {% if context.fixed_deposits %}
    +
    +
    + Loans taken +
    +
    +
    + + + + + + + + + + + {% for account in context.fixed_deposits %} + + + + + + {% endfor %} + + +
    Loan IDDuration (Months) Amount
    {{account.fixed_deposit_id}}{{account.duration}}Rs {{account.amount}}
    +
    + +
    + {% endif %} + diff --git a/templates/dashboard/employee_dashboard.html b/templates/dashboard/employee_dashboard.html index a97c2d1..df698ba 100644 --- a/templates/dashboard/employee_dashboard.html +++ b/templates/dashboard/employee_dashboard.html @@ -59,7 +59,7 @@

    Employee

  • Settings
  • -