1
1
{% extends 'base.html' %}
2
2
3
3
{% block content %}
4
- < h1 class ="text-center "> {% block title %} No Language Left Behind {% endblock %}</ h1 >
5
- < br />
6
- < p class ="text-center "> Currently serving < code > {{model_id}}</ code > </ p >
7
- < br />
4
+ < p class ="text-center fs-3 "> {% block title %} No Language Left Behind {% endblock %}</ p >
5
+ < p class ="text-center fs-5 "> Currently serving < code > {{model_id}}</ code > </ p >
8
6
< form id ="source-form " class ="form container " action ="./translate ">
9
- < div class ="row ">
10
- < div class ="form-group col-5 ">
11
- < label for ="src_lang " class ="col-sm-2 "> From:</ label >
12
- < select class ="form-control col-sm-3 " id ="src_lang " style ="display: inline ">
13
- {% for src_lang in src_langs %}
14
- < option {% if def_src_lang == src_lang %} selected {% endif %} > {{src_lang}} </ option >
15
- {% endfor %}
16
- </ select >
17
- </ div >
18
- < button id ="button-swap " type ="button " class ="btn btn btn-outline col-sml-1 "> Swap 🔁</ i > </ button >
19
- < div class ="form-group col-5 ">
20
- < label for ="tgt_lang col-sm-2 col-form-label "> To:</ label >
21
- < select class ="form-control col-sm-3 " id ="tgt_lang " style ="display: inline ">
22
- {% for tgt_lang in tgt_langs %}
23
- < option {% if def_tgt_lang == tgt_lang %} selected {% endif %} > {{tgt_lang}}</ option >
24
- {% endfor %}
25
- </ select >
26
- </ div >
7
+ < div class ="row ">
8
+ < div class ="form-group col-5 ">
9
+ < div class ="row ">
10
+ < label for ="src_lang " class ="form-label col-sm-2 "> From:</ label >
11
+ < div class ="col-sm-3 ">
12
+ < select class ="form-select " id ="src_lang ">
13
+ {% for src_lang in src_langs %}
14
+ < option {% if def_src_lang == src_lang %} selected {% endif %} > {{src_lang}}</ option >
15
+ {% endfor %}
16
+ </ select >
17
+ </ div >
18
+ </ div >
19
+ </ div >
20
+ < div class ="col-2 ">
21
+ < button id ="button-swap " type ="button " class ="btn btn-outline "> Swap 🔁</ button >
22
+ </ div >
23
+ < div class ="form-group col-5 ">
24
+ < div class ="row ">
25
+ < label for ="tgt_lang " class ="form-label col-sm-2 "> To:</ label >
26
+ < div class ="col-sm-3 ">
27
+ < select class ="form-select " id ="tgt_lang ">
28
+ {% for tgt_lang in tgt_langs %}
29
+ < option {% if def_tgt_lang == tgt_lang %} selected {% endif %} > {{tgt_lang}}</ option >
30
+ {% endfor %}
31
+ </ select >
32
+ </ div >
33
+ </ div >
34
+ </ div >
27
35
</ div >
36
+ < br >
28
37
29
38
< div class ="row ">
30
39
< div class ="col-6 alert alert-primary ">
@@ -39,7 +48,7 @@ <h1 class="text-center">{% block title %} No Language Left Behind {% endblock %}
39
48
< textarea id ="target " rows ="6 " class ="form-control form-control-lg form-control-plaintext "
40
49
placeholder ="Translation (to-appear) "> </ textarea >
41
50
</ div >
42
- < div id ="loading-progress " style ="display: none; " class ="spinner-border text-success float-left " role ="status ">
51
+ < div id ="loading-progress " style ="display: none; " class ="spinner-border text-success float-right " role ="status ">
43
52
< span class ="sr-only "> Loading...</ span >
44
53
</ div >
45
54
< p class ="text float-left " id ="time-taken "> ...</ p >
0 commit comments