All checks were successful
Build and publish the docker image / build (push) Successful in 38s
Signed-off-by: ngn <ngn@ngn.tf>
18 lines
611 B
HTML
18 lines
611 B
HTML
<form class="search" method="post" action="/translate">
|
|
{{if .term}}
|
|
<input name="term" type="text" placeholder="Enter a word or a sentence" value="{{.term}}">
|
|
{{else}}
|
|
<input name="term" type="text" placeholder="Enter a word or a sentence">
|
|
{{end}}
|
|
<select name="dictionary">
|
|
{{range .dictionaries}}
|
|
{{if and ($.dictionary) (eq $.dictionary .ShortName)}}
|
|
<option value="{{.ShortName}}" selected>{{.Name}}</option>
|
|
{{else}}
|
|
<option value="{{.ShortName}}">{{.Name}}</option>
|
|
{{end}}
|
|
{{end}}
|
|
</select>
|
|
<button type="submit">Translate</button>
|
|
</form>
|