summaryrefslogtreecommitdiff
path: root/views/search.html
blob: 5cf04837ad2525176e1b9d1b74b18172cfb2fd6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!doctype html>
<html>
<head>
	<title>National Law of {{.Country.Name}}</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
	<link rel="stylesheet" href="//{{.Domain}}/assets/style.css" />
</head>
<body>
	<a href="//{{.Domain}}"><img height=140 class=logo src="//{{.Domain}}/assets/logo.svg"></a>
	<h1>National Law of {{.Country.Name}}</h1>
	{{if .Country.HasPlaceholder}}
	<form autocomplete="off">
		<input id=search name=q autofocus {{if .HasJSONLaws}}data-json{{end}}>
		<ul id=suggestions></ul>
	</form>
	{{else}}
	<p><big><a href="{{.Country.SearchURL}}">{{.Country.SearchURL}}</a></big></p>

	(No search form here because the search isn't linkable.)
	{{end}}
	<script src="//{{.Domain}}/assets/script.js"></script>
</body>
</html>