fix search label and login view not define header

This commit is contained in:
krvpb024 2024-01-25 19:19:02 +08:00 committed by Frédéric Guillot
parent 84576f2c29
commit c217a31444
2 changed files with 5 additions and 2 deletions

View file

@ -116,10 +116,10 @@
<search role="search" class="search">
<details {{ if $.searchQuery }}open{{ end }}>
<summary>
<span id="search-label">{{ t "search.label" }}</span>
<span>{{ t "search.label" }}</span>
</summary>
<form action="{{ route "searchEntries" }}" aria-labelledby="search-input-label">
<input type="search" name="q" aria-labelledby="search-label" {{ if $.searchQuery }}value="{{ .searchQuery }}"{{ end }} required>
<input type="search" name="q" aria-label="{{ t "search.label" }}" {{ if $.searchQuery }}value="{{ .searchQuery }}"{{ end }} required>
<button type="submit">{{ t "search.submit" }}</button>
</form>
</details>

View file

@ -1,5 +1,8 @@
{{ define "title"}}{{ t "page.login.title" }}{{ end }}
{{ define "header"}}{{ end }}
{{ define "content"}}
<section class="login-form">
<form action="{{ route "checkLogin" }}" method="post">