TRI-293: add custom and mover handler + mover page poster
This commit is contained in:
@@ -379,7 +379,7 @@ def create_or_change_route_ajax(request, route_id=None):
|
||||
form.initial = form.cleaned_data
|
||||
Dict.update({'form': form})
|
||||
|
||||
html = render_to_string('blocks/profile/b_new_route.html', Dict, request=request)
|
||||
html = render_to_string('blocks/profile/b_create_form_poster.html', Dict, request=request)
|
||||
return JsonResponse({'html': html}, status=400)
|
||||
|
||||
obj = form.save(commit=False)
|
||||
@@ -417,7 +417,7 @@ def create_or_change_route_ajax(request, route_id=None):
|
||||
if 'errors' in routes_Dict:
|
||||
form.errors.update(routes_Dict['errors'])
|
||||
Dict.update({'form': form})
|
||||
html = render_to_string('blocks/profile/b_new_route.html', Dict, request=request)
|
||||
html = render_to_string('blocks/profile/b_create_form_poster.html', Dict, request=request)
|
||||
return JsonResponse({'html': html}, status=400)
|
||||
|
||||
html = render_to_string('blocks/profile/b_my_routes.html', routes_Dict, request=request)
|
||||
@@ -440,5 +440,5 @@ def create_or_change_route_ajax(request, route_id=None):
|
||||
}
|
||||
# Dict = {'form': errors_Dict}
|
||||
Dict.update({'form': errors_Dict})
|
||||
html = render_to_string('blocks/profile/b_new_route.html', Dict, request=request)
|
||||
html = render_to_string('blocks/profile/b_create_form_poster.html', Dict, request=request)
|
||||
return JsonResponse({'html': html}, status=400)
|
||||
Reference in New Issue
Block a user