master
fefa4ka 11 years ago
parent 03f6b0db13
commit 2c9597a2f8
  1. 5
      app/settings.py
  2. 14
      zsite/static/less/sub_content.less
  3. 34
      zsite/templates/about.html
  4. 6
      zsite/templates/menu.html
  5. 5
      zsite/templates/sub_section.html

@ -312,9 +312,12 @@ CMS_LANGUAGES = {
CMS_TEMPLATES = ( CMS_TEMPLATES = (
## Customize this ## Customize this
('page.html', 'Page'), ('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_PERMISSION = True
CMS_PLACEHOLDER_CONF = {} CMS_PLACEHOLDER_CONF = {}

@ -1,19 +1,27 @@
.sub-content { .sub-content {
.make-row(); .make-row();
.menu-xs {
.make-xs-column(12);
.make-sm-column(2);
}
.menu { .menu {
.make-lg-column(3); .make-lg-column(3);
.make-md-column(3); .make-md-column(3);
}
.menu, .menu-xs {
// .make-sm-column(1); // .make-sm-column(1);
// В разделе сотрудников заезжает контент // В разделе сотрудников заезжает контент
position: relative; position: relative;
z-index: 100; z-index: 100;
:first-child { .header {
margin-top: 0; margin-top: 0;
} }
li { li {
font-size: 12px; font-size: 12px;
@media (min-width: 320px) { @media (min-width: 320px) {

@ -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 %}
<ul class="list-unstyled list-inline breadcrumb">
{% show_breadcrumb 0 "menu/breadcrumb.html" 0 %}
</ul>
{% endblock breadcrumb %}
<div class="sub-content">
<div class="menu-xs">
<h5 class="header"><strong>{% if request.current_page.parent %}{% page_attribute "menu_title" request.current_page.parent_id %}{% else %}{% page_attribute "menu_title" %}{% endif %}</strong></h5>
<ul class="list-unstyled">
{% if request.current_page.parent %}
{% show_menu_below_id request.current_page.parent.reverse_id 0 100 100 100 'menu.html' %}
{% else %}
{% show_menu 1 100 0 100 'menu.html' %}
{% endif %}
</ul>
<div class="sub_parent_placeholder_{{ request.current_page.parent.reverse_id }}">
{% static_placeholder request.current_page.parent.reverse_id %}
</div>
</div>
<div class="content">
{% block content_safe %}
{% placeholder "content" %}
{% endblock content_safe %}
</div>
</div>
{% endblock content %}

@ -1,7 +1,11 @@
{% load i18n menu_tags cache %} {% load i18n menu_tags cache %}
{% for child in children %} {% for child in children %}
<li {% if child.selected %}class="active"{% endif %}> <li {% if child.selected %}class="active"{% endif %}>
{% if child.attr.redirect_url %}
<h5>{{ child.get_menu_title }}</h5>
{% else %}
<a href="{{ child.get_absolute_url }}"><span>{{ child.get_menu_title }}</span></a> <a href="{{ child.get_absolute_url }}"><span>{{ child.get_menu_title }}</span></a>
{% endif %}
</li> </li>
{% if class and forloop.last and not forloop.parentloop %}{% endif %} {% if class and forloop.last and not forloop.parentloop %}{% endif %}
{% endfor %} {% endfor %}

@ -12,12 +12,13 @@
<div class="sub-content"> <div class="sub-content">
<div class="menu"> <div class="menu">
<h5><strong>{% if request.current_page.parent %}{% page_attribute "menu_title" request.current_page.parent_id %}{% else %}{% page_attribute "menu_title" %}{% endif %}</strong></h5> <h5 class="header"><strong>{% if request.current_page.parent %}{% page_attribute "menu_title" request.current_page.parent_id %}{% else %}{% page_attribute "menu_title" %}{% endif %}</strong></h5>
<ul class="list-unstyled"> <ul class="list-unstyled">
{% if request.current_page.parent %} {% if request.current_page.parent %}
{% show_menu_below_id request.current_page.parent.reverse_id 0 100 100 100 'menu.html' %} {% show_menu_below_id request.current_page.parent.reverse_id 0 100 100 100 'menu.html' %}
{% else %} {% else %}
{% show_menu 1 100 0 1 'menu.html' %} {% show_menu 1 100 0 100 'menu.html' %}
{% endif %} {% endif %}
</ul> </ul>
<div class="sub_parent_placeholder_{{ request.current_page.parent.reverse_id }}"> <div class="sub_parent_placeholder_{{ request.current_page.parent.reverse_id }}">

Loading…
Cancel
Save