requestmovies/data/wwwroot/search/index.html

29 lines
901 B
HTML
Raw Permalink Normal View History

2024-10-11 22:59:37 +00:00
<h1>{{search_text}}</h1>
<form action="./search" method="get">
<nav class="no-space">
<div class="max field border left-round">
<input type="search" name="q" value="{{search_text_attr}}">
</div>
<input class="button large right-round" type="submit" value="Search">
</nav>
</form>
<div class="space"></div>
{{for movie in results}}
<div>
<a href="{{movie.url}}"><img src="{{movie.thumbnail}}" alt="thumbnail"> {{movie.title}}</a>
</div>
2024-10-12 00:00:31 +00:00
{{end}}
<nav class="no-space">
<a href="./search?q={{search_text_attr}}&page={{prev}}" class="button border left-round fill">
<span><i>arrow_back</i></span>
</a>
<button class="border no-round">
<span>{{page}}</span>
</button>
<a href="./search?q={{search_text_attr}}&page={{next}}" class="button border right-round fill">
<span><i>arrow_forward</i></span>
</a>
</nav>