js client complete rework
This commit is contained in:
@@ -1,90 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Company Manager</title>
|
||||
<link rel="stylesheet" type="text/css" href="style.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="datatable">
|
||||
<div class="list">
|
||||
<h1>Customers:</h1>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Name</th>
|
||||
<th colspan="2">Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="resultarea">
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h2>Create new customer:</h2>
|
||||
<div class="formdiv">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" id="customername" placeholder="Customer name">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" id="customeremail" placeholder="Email address">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" id="customerphone" placeholder="Phone number">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<button id="add" onclick="addCustomer()">Add</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h2>Edit customer:</h2>
|
||||
<div class="formdiv">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" id="customerid" placeholder="Customer ID">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" id="customername" placeholder="Customer name">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" id="customeremail" placeholder="Email address">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" id="customerphone" placeholder="Phone number">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" id="customerserviceid" placeholder="Service ID">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<button id="add" onclick="editCustomer()">Add</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="script.js"></script>
|
||||
<h1>Tables</h1>
|
||||
<a href="services.html" class="button">Services</a>
|
||||
<br>
|
||||
<a href="employees.html" class="button">Employees</a>
|
||||
<br>
|
||||
<a href="customers.html" class="button">Customers</a>
|
||||
<br>
|
||||
<a href="maintainerteam.html" class="button">Maintainer Team</a>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user