-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdashboard-settings.html
59 lines (57 loc) · 2.65 KB
/
dashboard-settings.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
53
54
55
56
57
58
59
{% extends 'dashboard-layout.html' %}
{% block head %}
<link rel="stylesheet" href="/styles/dashboard-settings.css">
{% endblock %}
{% block body %}
<div>
<h1>Account Settings</h1>
<!-- will prob display different stuff here based on employee -->
</div>
<div class="container">
{% if session.get('userType') == 'customer' %}
<div class="item">
<h3>Personal Info:</h3>
<p>Full Name:</p>
<input type="text" id="fullname">
<p>Phone Number:</p>
<input type="tel" id="phone" pattern="[0-9]{3}-[0-9]{3}-[0-9]{4}">
<button onclick="updateCustomerInfo()">Confirm new information</button>
</div>
{% endif %}
<div class="item">
<h3>Password Change:</h3>
<label for="current">Enter current password:</label>
<input type="password" id="current">
<label for="new">Enter new password:</label>
<input type="password" id="new">
<label for="confirmnew">Confirm new password:</label>
<input type="password" id="confirmnew">
<button onclick="changePassword()">Confirm new password</button>
<p class="donotmatch">Passwords do not match</p>
</div>
{% if session.get('employeeType') == 'manager' %}
<div class="item">
<h3>Create Employee Account:</h3>
<div class="employeeselect">
<p>Choose Employee Account Type:</p>
<select onchange="selectHandler()" id="employeeselector">
<option value="0">Manager</option>
<option value="1">Chef</option>
<option value="2">Delivery</option>
</select>
</div>
<label for="username">Enter username:</label>
<input type="text" id="username">
<label for="unew">Enter password:</label>
<input type="password" id="unew">
<label for="unewconfirm">Confirm password:</label>
<input type="password" id="unewconfirm">
<p class="donotmatch">Passwords do not match</p>
<button = onclick="createUser()">Create Employee Account</button>
</div>
{% endif %}
</div>
<script src="/scripts/dashboard-settings.js"></script>
{% if session.get('employeeType') == 'manager' %}<script src="/scripts/dashboard-settings-createAccount.js"></script> {% endif %}
{% if session.get('userType') == 'customer' %}<script src="/scripts/dashboard-settings-customer.js"></script> {% endif %}
{% endblock %}