You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
121 lines
4.1 KiB
121 lines
4.1 KiB
{% extends "base.html" %}
|
|
|
|
{% load utility_tags %}
|
|
|
|
{% block page-title %}Ответы на вопросы{% endblock %}
|
|
|
|
{% block content-main %}
|
|
|
|
<div class="category-text">
|
|
<div class="category-desc">
|
|
<h1>Ответы на вопросы</h1>
|
|
<p>Мы ответим на любые вопросы, касающиеся пенсионной системы в России. Отправьте вопрос через форму ниже и, как только ответ на него будет готов, мы опубликуем вопрос с ответом на этой странице. Уведомление о том, что ответ получен придёт на указанный вами адрес электронной почты.</p>
|
|
</div>
|
|
|
|
{% include "guestbook/form.html" %}
|
|
|
|
<div class="guestbook-form-teasers">
|
|
{% with teaser=teasers.next %}
|
|
{% if teaser %}
|
|
{% include "teasers/one_teaser.html" %}
|
|
{% endif %}
|
|
{% endwith %}
|
|
|
|
{% with teaser=teasers.next %}
|
|
{% if teaser %}
|
|
{% include "teasers/one_teaser.html" %}
|
|
{% endif %}
|
|
{% endwith %}
|
|
|
|
{% with teaser=teasers.next %}
|
|
{% if teaser %}
|
|
{% include "teasers/one_teaser.html" %}
|
|
{% endif %}
|
|
{% endwith %}
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
{% for obj in page.object_list %}
|
|
<div class="guestbook-comment">
|
|
<div class="guestbook-comment-row">
|
|
<div class="guestbook-comment-name">
|
|
{{ obj.name }}
|
|
</div>
|
|
<div class="guestbook-comment-time">
|
|
{% if obj.pub_date %}
|
|
{{ obj.pub_date|date:"d.m.Y" }}, {{ obj.pub_date|time:"H:i" }}
|
|
{% else %}
|
|
{{ obj.created_at|date:"d.m.Y" }}, {{ obj.created_at|time:"H:i" }}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
{{ obj.message|linebreaks }}
|
|
</div>
|
|
|
|
{% if obj.reply %}
|
|
<div class="guestbook-reply">
|
|
{{ obj.reply|safe|urls_to_links|linebreaks }}
|
|
<div class="guestbook-reply-name"></div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if forloop.counter|divisibleby:3 %}
|
|
{% include "guestbook/inner_banners.html" with block_id=forloop.counter %}
|
|
{% else %}
|
|
<div style="margin:10px 0;">
|
|
{% with teaser=teasers.next %}
|
|
{% if teaser %}
|
|
{% include "teasers/one_teaser.html" %}
|
|
{% endif %}
|
|
{% endwith %}
|
|
|
|
{% with teaser=teasers.next %}
|
|
{% if teaser %}
|
|
{% include "teasers/one_teaser.html" %}
|
|
{% endif %}
|
|
{% endwith %}
|
|
</div>
|
|
<div class="clear"></div>
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
{% if page.has_other_pages %}
|
|
<div class="pagination">
|
|
<ul>
|
|
{% if page.has_previous %}
|
|
<li class="prev"><a href="?page={{ page.previous_page_number }}">←</a></li>
|
|
{% endif %}
|
|
|
|
{% for page_num in paginator.page_range %}
|
|
{% if page_num == page.number %}
|
|
<li class="current">{{ page_num }}</li>
|
|
{% else %}
|
|
<li><a href="?page={{ page_num }}">{{ page_num }}</a></li>
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
{% if page.has_next %}
|
|
<li class="next"><a href="?page={{ page.next_page_number }}">→</a>
|
|
{% endif %}
|
|
</ul>
|
|
</div>
|
|
{% endif %}
|
|
|
|
</div> {# end div.category-text #}
|
|
|
|
{% endblock %}
|
|
|
|
{% block pre_footer %}{% endblock %}
|
|
|
|
|
|
{% block colmask-wrapper-add-class %}leftmenu{% endblock %} {# ВАЖНЫЙ КЛАСС! #}
|
|
|
|
{% block colmid-div-start %}{% endblock %}
|
|
|
|
{% block colmid-div-end %}{% endblock %}
|
|
|
|
{% block col3-right %}{% endblock %}
|
|
|