Skip to content
Permalink
Browse files
Updated views
  • Loading branch information
nellurib committed Jul 24, 2020
1 parent 462a1d3 commit faa379fbcb2a221065430d8f5cf8ed833eb36d84
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 5 deletions.
@@ -12,11 +12,6 @@
<body>
<header>
<h1>Home</h1>
{{#if authorised}}
<a href="/logout">Log out</a>
{{else}}
<a href="/login">Log in</a>
{{/if}}
</header>
{{#if msg}}
<p class="msg">{{msg}}</p>
@@ -26,6 +21,11 @@
{{#if authorised}}
<p><a href="/secure">secure page</a></p>
{{/if}}
{{#if authorised}}
<p><a href="/logout">log out</a></p>
{{else}}
<p><a href="/login">log in</a></p>
{{/if}}
</main>
</body>
</html>
@@ -0,0 +1,47 @@

<!doctype html>

<html lang="en">
<head>
<meta charset="utf-8">
<title>Home Page</title>
<meta name="description" content="form to add new books">
<meta name="author" content="Mark Tyers">
<link href="{{host}}/style.css" type="text/css" rel="stylesheet" />

</script>
</head>
<body>
<header>
</header>
{{#if msg}}
<p class="msg">{{msg}}</p>
{{/if}}
Username is :
<br>
<br>
<table border="1">
<tr>
<th>Appliance</th>
<th>Company</th>
<th>Problem</th>
</tr>
{{#each record}}
<tr>
<td>{{this.type_of_appliance}}</td> <td>{{this.appliance_manufacturer}}</td><td>{{this.description}}</td>

</tr>
{{/each}}
</table>
<br>
<br>
<br>
<p>
<form>
<input type ="button" value="Click to register a new complaint" onclick="window.location.href='/raiseIssue';">
</form>
<a href="/secure">Click me</a></p>

</main>
</body>
</html>

0 comments on commit faa379f

Please sign in to comment.