/
change_form.html
43 lines (41 loc) · 1.24 KB
/
change_form.html
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
{% extends base_template %}
{% load i18n admin_modify %}
{% block extrahead %}
{{ block.super }}
<style type="text/css">
.nani-language-tabs span {
display: inline-block;
padding: 5px 15px;
border: 1px solid #ccc;
border-bottom: none;
position: relative;
left: 0px;
top: 1px;
font-weight: bold;
}
.nani-language-tabs span.current {
border-bottom: 1px solid #fff;
}
.nani-language-tabs span.empty {
opacity: 0.7;
font-weight: normal;
}
.nani-language-tabs a.deletelink {
right: -17px;
bottom: 4px;
position: relative;
}
</style>
{% endblock %}
{% block object-tools %}
{{ block.super }}
<div class="nani-language-tabs">
{% for url,name,code,status in language_tabs %}
{% if status == 'current' %}
<span class="current">{{ name }}{% if current_is_translated %}<a class="deletelink" href="./delete-translation/{{ code }}/" title="{% trans 'Delete Translation' %}"> </a>{% endif %}</span>
{% else %}
<span class="{{ status }}"><a href="{{ url }}">{{ name }}</a> {% if status == 'available' %}<a class="deletelink" href="./delete-translation/{{ code }}/" title="{% trans 'Delete Translation' %}"> </a>{% endif %}</span>
{% endif %}
{% endfor %}
</div>
{% endblock %}