4
4
5
5
{% block content %}
6
6
7
- < h1 class ="page-title " id ="tbl-desc "> {% trans 'Building units' %}</ h1 >
7
+ < h1 class ="page-title " id ="tbl-desc "> {% translate 'Building units' %}</ h1 >
8
8
9
9
< div class ="container ">
10
10
< div class ="row ">
11
11
12
12
< div class ="left ">
13
- < p > [< a href ="{% url 'admin_building_unit_edit' pk=0 %} "> {% trans 'Add new unit' %}</ a > ]</ p >
13
+ < p > [< a href ="{% url 'admin_building_unit_edit' pk=0 %} "> {% translate 'Add new unit' %}</ a > ]</ p >
14
14
</ div >
15
15
16
16
< div class ="middle ">
17
- < p > [< a href ="{% url 'admin_building_unit_export_to_excel' %} "> {% trans 'Export to Excel' %}</ a > ]</ p >
17
+ < p > [< a href ="{% url 'admin_building_unit_export_to_excel' %} "> {% translate 'Export to Excel' %}</ a > ]</ p >
18
18
</ div >
19
19
20
20
< div class ="right ">
21
- < p > {% trans 'Type' %}</ p >
21
+ < p > {% translate 'Type' %}</ p >
22
22
</ div >
23
23
< div class ="middle ">
24
24
< p >
25
25
< form action ="{% url 'admin_building_unit' %} " method ="get ">
26
26
< select name ='type_filter ' onchange ='this.form.submit() '>
27
27
< option value ="0 "> -------</ option >
28
28
{% for t in type_list %}
29
- < option value ="{{ t.pk }} " {% if type_filter == t.pk %}selected{% endif %} > {{ t.description }}</ option >
29
+ < option value ="{{ t.pk }} " {% if type_filter == t.pk %}selected{% endif %} > {{ t.description }}</ option >
30
30
{% endfor %}
31
31
</ select >
32
32
</ form >
33
33
</ p >
34
34
</ div >
35
35
36
36
< div class ="right ">
37
- < p > {% trans 'Entrance' %}</ p >
37
+ < p > {% translate 'Entrance' %}</ p >
38
38
</ div >
39
39
< div class ="right ">
40
40
< p >
41
41
< form action ="{% url 'admin_building_unit' %} " method ="get ">
42
42
< select name ='entrance_filter ' onchange ='this.form.submit() '>
43
43
< option value ="0 "> -------</ option >
44
44
{% for e in entrance_list %}
45
- < option value ="{{ e.pk }} " {% if entrance_filter == e.pk %}selected{% endif %} > {{ e.description }}</ option >
45
+ < option value ="{{ e.pk }} " {% if entrance_filter == e.pk %}selected{% endif %} > {{ e.description }}</ option >
46
46
{% endfor %}
47
47
</ select >
48
48
</ form >
@@ -58,21 +58,21 @@ <h1 class="page-title" id="tbl-desc">{% trans 'Building units' %}</h1>
58
58
< th class ="list " scope ="col "> </ th >
59
59
< th class ="list " scope ="col "> </ th >
60
60
< th class ="list " scope ="col "> </ th >
61
- < th class ="list " scope ="col "> {% trans 'Type' %}</ th >
62
- < th class ="list " scope ="col "> {% trans 'Entrance' %}</ th >
63
- < th class ="list " scope ="col "> {% trans 'Registration Id' %}</ th >
64
- < th class ="list " scope ="col "> {% trans 'Description' %}</ th >
65
- < th class ="list " scope ="col "> {% trans 'Numerator' %}</ th >
66
- < th class ="list " scope ="col "> {% trans 'Denominator' %}</ th >
61
+ < th class ="list " scope ="col "> {% translate 'Type' %}</ th >
62
+ < th class ="list " scope ="col "> {% translate 'Entrance' %}</ th >
63
+ < th class ="list " scope ="col "> {% translate 'Registration Id' %}</ th >
64
+ < th class ="list " scope ="col "> {% translate 'Description' %}</ th >
65
+ < th class ="list " scope ="col "> {% translate 'Numerator' %}</ th >
66
+ < th class ="list " scope ="col "> {% translate 'Denominator' %}</ th >
67
67
</ tr >
68
68
69
69
{% if object_list %}
70
70
{% for obj in object_list %}
71
71
< tr >
72
72
< td class ="list "> {{ forloop.counter }}</ td >
73
- < td class ="list "> < a href ="{% url 'admin_building_unit_edit' pk=obj.pk %} "> < img src ="/static/gfx/pencil.png " border ="0 " title ="{% trans 'Edit' %} " alt ="{% trans 'Edit' %} "> </ a > </ td >
74
- < td class ="list "> < a href ="{% url 'admin_building_unit_owners' pk=obj.pk %} "> < img src ="/static/gfx/user.png " border ="0 " title ="{% trans 'Owners' %} " alt ="{% trans 'Owners' %} "> </ a > </ td >
75
- < td class ="list "> < a onclick ="if (!confirm('{% trans 'Do you want to delete' %} {{ obj.type.description }} {{ obj.description }} ?')) return false; " href ="{% url 'admin_building_unit_delete' pk=obj.id %} "> < img src ="/static/gfx/delete.png " border ="0 " title ="{% trans 'Delete' %} " alt ="{% trans 'Delete' %} "> </ a > </ td >
73
+ < td class ="list "> < a href ="{% url 'admin_building_unit_edit' pk=obj.pk %} "> < img src ="/static/gfx/pencil.png " border ="0 " title ="{% translate 'Edit' %} " alt ="{% translate 'Edit' %} "> </ a > </ td >
74
+ < td class ="list "> < a href ="{% url 'admin_building_unit_owners' pk=obj.pk %} "> < img src ="/static/gfx/user.png " border ="0 " title ="{% translate 'Owners' %} " alt ="{% translate 'Owners' %} "> </ a > </ td >
75
+ < td class ="list "> < a onclick ="if (!confirm('{% translate 'Do you want to delete' %} {{ obj.type.description }} {{ obj.description }} ?')) return false; " href ="{% url 'admin_building_unit_delete' pk=obj.id %} "> < img src ="/static/gfx/delete.png " border ="0 " title ="{% translate 'Delete' %} " alt ="{% translate 'Delete' %} "> </ a > </ td >
76
76
< td class ="list "> {{ obj.type.description }}</ td >
77
77
< td class ="list "> {{ obj.entrance.description }}</ td >
78
78
< td class ="list "> {{ obj.registration_id }}</ td >
@@ -84,4 +84,4 @@ <h1 class="page-title" id="tbl-desc">{% trans 'Building units' %}</h1>
84
84
{% endif %}
85
85
</ table >
86
86
87
- {% endblock %}
87
+ {% endblock content %}
0 commit comments