fix find routes
This commit is contained in:
SDE
2023-11-30 14:24:50 +03:00
parent 7547d2cb89
commit aa492f6ca4
4 changed files with 7 additions and 5 deletions

View File

@@ -50,7 +50,7 @@ def request_offer_ajax(request):
request_type = _('запрос на рекламу')
if request_type:
request_type_str = f'<b>Тип запроса:</b> {request_type}<br>'
request_type_str = f'<b>{_("Тип запроса")}:</b> {request_type}<br>'
else:
request_type_str = ''

View File

@@ -15,7 +15,7 @@ class Admin_StaticPage(Admin_Trans_BaseModelViewPage):
'order',
)
}),
('Настройки', {
(_('Настройки'), {
'classes': ['wide', 'collapse'],
'fields': (
'FAQ_title',

View File

@@ -143,8 +143,10 @@ def find_routes_ajax(request):
if 'errors' in routes_Dict:
return JsonResponse(routes_Dict, status=400)
html = render_to_string('blocks/b_search_routes.html', routes_Dict, request=request)
if routes_Dict['routes']:
html = render_to_string('blocks/b_search_routes.html', routes_Dict, request=request)
else:
html = render_to_string('templates_js_translate/not_found_find_routes.html', routes_Dict, request=request)
res_Dict = {
'html': html,

View File

@@ -150,7 +150,7 @@
</div>
<div class="options_subscribe">
<div class="options_subscribe_title light" style="color: {{ subscribe.text_color }}">
Опции:
{% trans "Опции" %}:
</div>
<div class="list_options_subscribe">
<ul class="option_list">