initial commit
All checks were successful
Build and publish the docker image / build (push) Successful in 58s
All checks were successful
Build and publish the docker image / build (push) Successful in 58s
Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
13
views/search.html
Normal file
13
views/search.html
Normal file
@ -0,0 +1,13 @@
|
||||
<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}}
|
||||
<option value="{{.ShortName}}">{{.Name}}</option>
|
||||
{{end}}
|
||||
</select>
|
||||
<button type="submit">Translate</button>
|
||||
</form>
|
Reference in New Issue
Block a user