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.
58 lines
1.7 KiB
58 lines
1.7 KiB
{% extends 'base_catalog.html' %}
|
|
{% load static %}
|
|
{% load i18n %}
|
|
{% load template_filters %}
|
|
{% block bread_scrumbs %}
|
|
<div class="bread-crumbs">
|
|
<a href="/">{% trans 'Главная страница' %}</a>
|
|
<strong>{% trans 'Новости' %}</strong>
|
|
</div>
|
|
{% endblock %}
|
|
{% block page_title %}
|
|
<div class="page-title">
|
|
<h1>{% trans 'Новости' %}:</h1>
|
|
</div>
|
|
{% endblock %}
|
|
{% block content_list %}
|
|
<div class="set-sect p-form adm-form news-filter-block">
|
|
<form action="#">
|
|
<div class="adm-form-body">
|
|
<div class="mf-line mf-line1 s-subj-tag">
|
|
<div class="mf-field">
|
|
<label>{{ article_filter_form.theme.label }}</label>
|
|
<div class="custom-select theme">
|
|
|
|
{{ article_filter_form.theme }}
|
|
</div>
|
|
</div>
|
|
<div class="mf-field">
|
|
<label>{{ article_filter_form.tag.label }}</label>
|
|
<div class="custom-select tags">
|
|
{{ article_filter_form.tag }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
{% include 'client/includes/article/news_list.html' with object_list=object_list %}
|
|
{% if request.GET.debug == '1' %}
|
|
<script src="{% static 'client/js/_modules/block.newsFilter.js' %}"></script>
|
|
{% else %}
|
|
<script src="{% static 'client/js_min/_modules/block.newsFilter.min.js' %}"></script>
|
|
{% endif %}
|
|
<script>
|
|
EXPO.newsFilter.init({
|
|
theme:{
|
|
placeholder:"{% trans 'Укажите тематику' %}"
|
|
},
|
|
tags:{
|
|
placeholder:"{% trans 'Выберите ключевые теги' %}",
|
|
url:'http://{{ request.get_host }}/theme/get-tag/'
|
|
}
|
|
});
|
|
</script>
|
|
{% endblock %}
|
|
{% block paginator %}
|
|
{% include 'client/includes/catalog_paginator.html' with page_obj=page_obj %}
|
|
{% endblock %}
|
|
|