diff --git a/app/settings.py b/app/settings.py index f7b3a94..630691a 100644 --- a/app/settings.py +++ b/app/settings.py @@ -312,9 +312,12 @@ CMS_LANGUAGES = { CMS_TEMPLATES = ( ## Customize this ('page.html', 'Page'), - ('sub_section.html', 'Page with sub menu') + ('sub_section.html', 'Service main page'), + ('theory.html', 'Theory page'), + ('about.html', 'About company section'), ) + CMS_PERMISSION = True CMS_PLACEHOLDER_CONF = {} diff --git a/zsite/static/less/sub_content.less b/zsite/static/less/sub_content.less index 988c833..2fd6bfe 100644 --- a/zsite/static/less/sub_content.less +++ b/zsite/static/less/sub_content.less @@ -1,19 +1,27 @@ .sub-content { .make-row(); + .menu-xs { + .make-xs-column(12); + .make-sm-column(2); + } - .menu { - .make-lg-column(3); + .menu { + .make-lg-column(3); .make-md-column(3); + } + .menu, .menu-xs { + // .make-sm-column(1); // В разделе сотрудников заезжает контент position: relative; z-index: 100; - :first-child { + .header { margin-top: 0; } li { + font-size: 12px; @media (min-width: 320px) { diff --git a/zsite/templates/about.html b/zsite/templates/about.html new file mode 100644 index 0000000..330e213 --- /dev/null +++ b/zsite/templates/about.html @@ -0,0 +1,34 @@ +{% extends "base.html" %} +{% load cms_tags i18n menu_tags %} + +{% block title %}{% page_attribute "page_title" %}{% endblock title %} + +{% block content %} +{% block breadcrumb %} + +{% endblock breadcrumb %} + +
+ +
+ {% block content_safe %} + {% placeholder "content" %} + {% endblock content_safe %} +
+
+{% endblock content %} diff --git a/zsite/templates/menu.html b/zsite/templates/menu.html index 8510efe..ed120d3 100644 --- a/zsite/templates/menu.html +++ b/zsite/templates/menu.html @@ -1,7 +1,11 @@ {% load i18n menu_tags cache %} {% for child in children %} -
  • +
  • + {% if child.attr.redirect_url %} +
    {{ child.get_menu_title }}
    + {% else %} {{ child.get_menu_title }} + {% endif %}
  • {% if class and forloop.last and not forloop.parentloop %}{% endif %} {% endfor %} diff --git a/zsite/templates/sub_section.html b/zsite/templates/sub_section.html index 40f5866..03cb883 100644 --- a/zsite/templates/sub_section.html +++ b/zsite/templates/sub_section.html @@ -12,12 +12,13 @@