forked from Eleanor-Hui/Soen287_Project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RenewLicense.html
109 lines (92 loc) · 4.28 KB
/
RenewLicense.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="utf-8">
<title>
Renewing a License
</title>
<link rel="stylesheet" href="RenewLicenseStyle.css"/>
<script>
function handleSelectChange(selectElement) {
var customInput = document.getElementById('customInput');
if (selectElement.value === 'Other') {
customInput.style.display = 'block'; // Show the input field
} else {
customInput.style.display = 'none'; // Hide the input field
}
}
</script>
</head>
<!-- Navigation?-->
<body>
<div class="sidebar">
<header>My Software License</header>
<ul>
<li><a href="">Profile</a></li>
<li><a href="">Link a License</a></li>
<li><a href="LicenseInfo.html">License Info</a></li>
<li><a href="NewLicense.html">License Application</a></li>
<li><a href="RenewLicense.html">Renew a License</a></li>
<li><a href="TerminateLicense.html">Terminate a License</a></li>
</ul>
<a href="" class="logout">Logout</a>
</div>
<div id="container">
<nav ID="mainNav">
<ul>
<li><a href="C:\Users\yihua\OneDrive\桌面\2023Fall\SOEN287\Assignments\Part 1 Provider\group_project\welcomepage\welcome.html">HOME</a></li>
<li><a href="C:\Users\yihua\OneDrive\桌面\2023Fall\SOEN287\Assignments\Part 1 Provider\group_project\AboutUs\aboutUs.html">ABOUT US</a></li>
<li><a href="C:\Users\yihua\OneDrive\桌面\2023Fall\SOEN287\Assignments\Part 1 Provider\group_project\contactForm\contact1.html">CONTACT</a></li>
</ul>
<div class="nav-image">
<a id="logoLink" href="">
<img id="logo" src="CompanyLogo.png" alt="company logo" height="45px">
</a>
</div>
</nav>
<div id="content">
<header>
<h1>Renew a License</h1>
</header>
<form action="/submit" method="post">
<h3>I would like to renew the folling license:</h3>
<label for="name">Software name:</label><br>
<select class="userInput" id="name" name="name" onchange="handleSelectChange(this)" required>
<option disabled selected value> -- select an option -- </option>
<option value="ms">Microsoft Office</option>
<option value="vscode">Visual Studio Code</option>
<option value="intelliJ">IntelliJ</option>
<option value="Other">Other</option>
</select><br><br>
<!-- Input field for custom option -->
<div id="customInput" style="display: none">
<label for="customOption">Enter a your option:</label>
<input class="userInput" type="text" id="customOption" placeholder="Enter the software name" required><br><br>
</div>
<label for="automatic">Opt in for automatic renewal in the future?</label>
<select class="userInput" id="automatic" name="automatic" required>
<option disabled selected value> -- select an option -- </option>
<option value="yes">Yes, I would like to renew my subscription automatically in the future!</option>
<option value="no">No, maybe next time.</option>
</select><br><br>
<label for="payment">Preferred payment method:</label>
<select class="userInput" id="payment" name="payment" required>
<option disabled selected value> -- select an option -- </option>
<option value="debit/credit">Debit/Credit Card</option>
<option value="paypal">PayPal</option>
<option value="gift card">Gift Card</option>
</select> <br><br>
<div id="subButton">
<input id="submit" type="submit" value="Submit" onclick="confirmSubmission()">
</div>
</form>
</div>
</div>
<!--pop-up window for subscribing successfully-->
<script>
function confirmSubmission() {
alert("Your application has been submitted successfully!");
}
</script>
</body>
</html>