0.7.16
connect form on static_pages
This commit is contained in:
@@ -64,7 +64,7 @@ def StaticPageView(request, url):
|
|||||||
|
|
||||||
if url == '':
|
if url == '':
|
||||||
return MainPage(request)
|
return MainPage(request)
|
||||||
elif url in ('customer_search', 'mover_search'):
|
elif url in ('for_movers', 'for_customers'):
|
||||||
Dict.update({'route_form': RouteForm(),})
|
Dict.update({'route_form': RouteForm(),})
|
||||||
# elif url == 'works':
|
# elif url == 'works':
|
||||||
# return WorksPage(request)
|
# return WorksPage(request)
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{% load static %}
|
{% load static %}
|
||||||
|
|
||||||
|
{% if route_form %}
|
||||||
<form name="find_route">
|
<form name="find_route">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|
||||||
@@ -16,3 +17,4 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</form>
|
</form>
|
||||||
|
{% endif %}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
<div class="cut-width">
|
||||||
|
{% include "blocks/b_find_route_form.html" %}
|
||||||
|
</div>
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
{% if page.url == 'customer_search' %}
|
{% if page.url == 'for_movers' or page.url == 'for_customers' %}
|
||||||
{% include "blocks/static_pages_blocks/b_customer_search.html" %}
|
{% include "blocks/static_pages_blocks/b_customer_search.html" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if page.url == 'advertisement' %}
|
{% if page.url == 'advertisement' %}
|
||||||
|
|||||||
Reference in New Issue
Block a user