0.0.22 present_technology block
This commit is contained in:
@@ -18,8 +18,9 @@ class StaticPage(BaseModelViewPage):
|
|||||||
|
|
||||||
|
|
||||||
block_type_choices = (
|
block_type_choices = (
|
||||||
('photo_n_text', _('Фото + текст')),
|
('photo_n_text', _('Фото с одной стороны + Текст с другой стороны')),
|
||||||
('photo150_n_title', _('Фото 150x150 + заголовок')),
|
('present_technology_block', _('описание и НАЗВАНИЕ слева + Картинка справа')),
|
||||||
|
('photo150_n_title', _('Фото 150x150 сверху + заголовок под фото')),
|
||||||
('how_work', _('Как с нами работать')),
|
('how_work', _('Как с нами работать')),
|
||||||
('how_dev', _('Как ведется разработка')),
|
('how_dev', _('Как ведется разработка')),
|
||||||
('feedback_form', _('Форма обратной связи')),
|
('feedback_form', _('Форма обратной связи')),
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ def get_content_for_section_ajax(request):
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
html = render_to_string('pages/content/c_projectiing_section.html', Dict, request=request)
|
html = render_to_string('pages/content/c_blocks_constructor.html', Dict, request=request)
|
||||||
|
|
||||||
res_Dict = {
|
res_Dict = {
|
||||||
'html': html,
|
'html': html,
|
||||||
|
|||||||
10
templates/blocks/b_present_technology.html
Normal file
10
templates/blocks/b_present_technology.html
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>Title</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -10,6 +10,8 @@
|
|||||||
{% include 'forms/f_consultation.html' %}
|
{% include 'forms/f_consultation.html' %}
|
||||||
{% elif block.block_type == 'how_dev' %}
|
{% elif block.block_type == 'how_dev' %}
|
||||||
{% include 'blocks/b_how_dev.html' %}
|
{% include 'blocks/b_how_dev.html' %}
|
||||||
|
{% elif block.block_type == 'present_technology_block' %}
|
||||||
|
{% include 'blocks/b_present_technology.html' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user