-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdashboard-wallet.html
52 lines (49 loc) · 1.82 KB
/
dashboard-wallet.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{% extends 'dashboard-layout.html' %}
{% block head %}
<title>Dashboard: Your Wallet</title>
<link href="/styles/dashboard-wallet.css" rel="stylesheet" type="text/css"/>
{% endblock %}
{% block body %}
<div>
<!-- <p>Welcome to Dashboard</p> -->
<!-- will prob display different stuff here based on employee -->
</div>
{% if session.get('userType') == 'customer' %}
<div>
<t1>Wallet</t1>
<div class="infodiv">
<div class="balanceblock">
<t1 class="bheader">Your current balance is:</t1>
<t1 id="balance" class="balance">$0.00</t1>
</div>
<div class='accountinfo'>
<p>Account #: {{session.get('customerID')}}</p>
<p>Name: {{session.get('customerName')}}</p>
</div>
<div class="options">
<button onclick="openModel('depositmodel')">Make a deposit</button>
</div>
</div>
</div>
<div class="displayblock" id="displayblock" onclick="closeModel('depositmodel')">
</div>
<div class="depositmodel" id="depositmodel" onclick="">
<label for="depositamount">Amount to deposit:</label>
<input type="number" name="depositamount" placeholder="1.00" min="1.00" step="0.01" max="1000" id="depositamount">
<div>
<p>Account #: {{session.get('customerID')}}</p>
<p>Name: {{session.get('customerName')}}</p>
<p class="success">Your transfer was successful</p>
<p class="success">Reloading...</p>
</div>
<div>
<button onclick="deposit()">Complete Deposit</button>
</div>
</div>
{% else %}
<div>
<t1> You're not supposed to be here. </t1>
</div>
{% endif %}
<script src="/scripts/dashboard-wallet.js"></script>
{% endblock %}