~metalune/simplytranslate_web

d6acff7d124e91b40ead05ad019ab6a3b9de31a2 — fattalion 2 months ago 6010f71
Use links for engines instead of buttons

Apparently multiple submit buttons in the same form don't work in Dillo.
1 files changed, 3 insertions(+), 2 deletions(-)

M templates/index.html
M templates/index.html => templates/index.html +3 -2
@@ 23,8 23,9 @@
        <form action="/?engine={{ engine }}&typingiscool={{ use_text_fields }}" method="POST">
            Translation Engine:

            <button type="submit" formaction="/?engine=google&typingiscool={{ use_text_fields }}" formmethod="POST">Google</button>
            <button type="submit" formaction="/?engine=libre&typingiscool={{ use_text_fields }}" formmethod="POST">LibreTranslate</button>
            <a href="/?engine=google&typingiscool={{ use_text_fields }}">Google</a>
            |
            <a href="/?engine=libre&typingiscool={{ use_text_fields }}">LibreTranslate</a>

            <br>
            <br>