feat: More view changes.
This commit is contained in:
@@ -2,16 +2,18 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<script src="https://unpkg.com/htmx.org@2.0.4"></script>
|
||||
<link rel="stylesheet" href="css/main.css">
|
||||
<title>#(title)</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>#(title)</h1>
|
||||
<!-- <h1>#(title)</h1> -->
|
||||
<div id="content"
|
||||
hx-get="/home"
|
||||
hx-trigger="load"
|
||||
hx-swap="outerHTML"
|
||||
>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -1,7 +1,17 @@
|
||||
<p>We're in!</p>
|
||||
<button hx-post="/logout"
|
||||
hx-target="#content"
|
||||
hx-trigger="click"
|
||||
>
|
||||
Log Out.
|
||||
</button>
|
||||
<div id="content">
|
||||
<header>
|
||||
<div class="container">
|
||||
<div id="logo">HHE - Purchase Orders</div>
|
||||
<nav>
|
||||
<ul class="nav-links">
|
||||
<li><a hx-post="logout" hx-target="#content" hx-trigger="click" hx-swap="outerHTML">Logout</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
<section class="content">
|
||||
<div class="container">
|
||||
<p>We're in!</p>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
@@ -1,9 +1,17 @@
|
||||
<form class="login-form" hx-post="/login" hx-target="#content">
|
||||
<label for="username">Username</label>
|
||||
<input type="text" id="username" placeholder="Username" name="username" autocomplete="username" required autofocus>
|
||||
<br>
|
||||
<label for="password">Password</label>
|
||||
<input type="password" id="password" placeholder="Password" name="password" autocomplete="current-password" required>
|
||||
<br>
|
||||
<input type="submit" value="Sign In">
|
||||
</form>
|
||||
<div id="content">
|
||||
<header>
|
||||
<div class="container">
|
||||
<div id="logo">HHE - Purchase Orders</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<form class="login-form" hx-post="/login" hx-target="#content" hx-swap="outerHTML">
|
||||
<label for="username">Username</label>
|
||||
<input type="text" id="username" placeholder="Username" name="username" autocomplete="username" required autofocus>
|
||||
<br>
|
||||
<label for="password">Password</label>
|
||||
<input type="password" id="password" placeholder="Password" name="password" autocomplete="current-password" required>
|
||||
<br>
|
||||
<input type="submit" value="Sign In">
|
||||
</form>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user