holiday-api/templates/index.gohtml

61 lines
1.9 KiB
Plaintext
Raw Normal View History

2023-06-20 14:10:46 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Holiday-api</title>
</head>
<body>
<h1><a href="/">Holiday-api</a></h1>
<p>Welcome to holiday api - simple page for tracking holidays</p>
2023-06-20 14:10:46 +00:00
<div>
<h2>Is a holiday?</h2>
<form method="get" action="/search/date">
<label for="country">Country</label>
<select id="country" name="country">
<option value="HR">Croatia</option>
<option value="GB">Great Britain</option>
<option value="US">USA</option>
<option value="FR">France</option>
</select>
<label for="date">Date</label>
<input id="date" name="date" type="date">
<button type="submit">Check is a holiday</button>
</form>
2023-06-20 14:10:46 +00:00
</div>
2023-06-20 14:10:46 +00:00
<div>
<h2>Find holidays for</h2>
<form method="get" action="/search">
2023-06-20 14:10:46 +00:00
<label for="country">Country</label>
<select id="country" name="country">
<option value="HR">Croatia</option>
<option value="GB">Great Britain</option>
<option value="US">USA</option>
<option value="FR">France</option>
2023-06-20 14:10:46 +00:00
</select>
<label for="year">Year</label>
<select id="year" name="year">
<option value="2020">2020</option>
<option value="2021">2021</option>
<option value="2022">2022</option>
<option value="2023">2023</option>
<option value="2024">2024</option>
<option value="2025">2025</option>
<option value="2026">2026</option>
<option value="2027">2027</option>
2023-06-20 14:10:46 +00:00
</select>
<button type="submit">Find holidays</button>
2023-06-20 14:10:46 +00:00
</form>
</div>
2023-06-20 14:10:46 +00:00
<div>
<h2>Create api query</h2>
<a href="/docs">Goto query editor</a>
2023-06-20 14:10:46 +00:00
</div>
</body>
</html>