-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathnewlanguage.tpl
55 lines (54 loc) · 1.73 KB
/
newlanguage.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
%rebase('main_template', title='Web Translator - {} - Start new translation'.format(pmd.human_name))
<h1>
<a class="eint-header-link" href="/project/{{pmd.name}}">{{pmd.human_name}}</a>
</h1>
<hr />
<h2 class="eint-heading-icon eint-icon-add">Start New Translation</h2>
<form class="form-inline well" action="/newlanguage/{{pmd.name}}" method="post" enctype="multipart/form-data">
<fieldset>
<br />
<div style="width: 60%; margin-left:auto; margin-right:auto;">
<div class="control-group">
<label class="control-label" for="language_select">Language:</label>
<select name="language_select" id="language_select">
<option selected value="none">Select a new language</option>
% for lang in can_be_added:
<option value="{{lang.isocode}}">{{lang.isocode}} ({{lang.name}})</option>
% end
</select>
<button class="btn btn-primary" type="submit">Select new language</button>
</div>
</div>
</fieldset>
</form>
<h3>Existing Languages</h3>
<table class="table table-condensed table-striped">
% for lang in base_langs:
<tr>
<td>
{{lang.isocode}}
</td>
<td>
{{lang.name}}
</td>
<td>
<strong>Base language</strong>
</td>
</tr>
% end
% for lang in translations:
<tr>
<td>
{{lang.isocode}}
</td>
<td>
{{lang.name}}
</td>
<td>
Existing translation
</td>
</tr>
% end
</tr>
</table>