an updated and hopefully faster version of the ST Toolbox
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

58 lines
2.3 KiB

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ServiceTrade Tools</title>
<script src="https://unpkg.com/htmx.org@1.9.6"></script>
<link rel="stylesheet" href="/static/css/styles.css" />
<link rel="stylesheet" href="/static/css/upload.css" />
</head>
<body class="flex h-screen bg-gray-100">
<!-- Sidebar -->
<aside class="sidebar">
<h1 class="title">ServiceTrade Tools</h1>
<nav>
<ul>
<li><a href="/" hx-get="/" hx-target="#content">Dashboard</a></li>
<li><a href="/jobs" hx-get="/jobs" hx-target="#content">Jobs</a></li>
<li><a href="/assets" hx-get="/assets" hx-target="#content">Assets</a></li>
<li><a href="/companies" hx-get="/companies" hx-target="#content">Companies</a></li>
<li><a href="/contacts" hx-get="/contacts" hx-target="#content">Contacts</a></li>
<li><a href="/contracts" hx-get="/contracts" hx-target="#content">Contracts</a></li>
<li><a href="/generic" hx-get="/generic" hx-target="#content">Generic Tools</a></li>
<li><a href="/invoices" hx-get="/invoices" hx-target="#content">Invoices</a></li>
<li><a href="/locations" hx-get="/locations" hx-target="#content">Locations</a></li>
<li><a href="/notifications" hx-get="/notifications" hx-target="#content">Notifications</a></li>
<li><a href="/quotes" hx-get="/quotes" hx-target="#content">Quotes</a></li>
<li><a href="/services" hx-get="/services" hx-target="#content">Services</a></li>
<li><a href="/tags" hx-get="/tags" hx-target="#content">Tags</a></li>
<li><a href="/users" hx-get="/users" hx-target="#content">Users</a></li>
<li><a href="/admin" hx-get="/admin" hx-target="#content">Admin</a></li>
</ul>
</nav>
</aside>
<!-- Main content area -->
<main class="main-content">
<!-- Header with logout -->
<header class="header">
<button class="logout-btn" hx-post="/logout">Logout</button>
</header>
<!-- Dynamic content area -->
<div id="content" class="content">
{{if .BodyContent}}
{{.BodyContent}}
{{else}}
{{template "content" .}}
{{end}}
</div>
</main>
<script src="/static/js/htmx.min.js"></script>
</body>
</html>