Initial Commit
This commit is contained in:
38
cmd/ui/html/main.html
Normal file
38
cmd/ui/html/main.html
Normal file
@@ -0,0 +1,38 @@
|
||||
{{block "main" .}}
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" type="text/css" href="/ui/css/styles.css" />
|
||||
<script src="https://unpkg.com/htmx.org@2.0.4"></script>
|
||||
<title>SAP CDS-View Search</title>
|
||||
</head>
|
||||
<body>
|
||||
{{template "search-bar" .}}
|
||||
<div id="search-results" class="container-center">
|
||||
{{template "search-placeholder-info" . }}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
{{end}} {{block "search-bar" .}}
|
||||
<form class="container-center linked-horizontal" style="margin-bottom: 30px">
|
||||
<input
|
||||
class="round min-w4 max-w21"
|
||||
style="flex-grow: 1"
|
||||
placeholder="Search here"
|
||||
id="search-bar"
|
||||
name="q"
|
||||
/>
|
||||
<button
|
||||
type="submit"
|
||||
class="round raised suggested-action max-w3"
|
||||
style="flex-grow: 1"
|
||||
hx-get="/search"
|
||||
hx-params="*"
|
||||
hx-include="#search-bar"
|
||||
hx-target="#search-results"
|
||||
hx-swap="innerHTML"
|
||||
>
|
||||
Search
|
||||
</button>
|
||||
</form>
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user