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.
80 lines
2.4 KiB
80 lines
2.4 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>
|
|
<div class="rq-to-hide">
|
|
<div class="cat-list sc-comments">
|
|
{% for news in object_list %}
|
|
<div class="cl-item">
|
|
<div class="acticle_list">
|
|
<a href="{{ news.get_permanent_url }}" title="">
|
|
{% include 'includes/article/news_preview.html' with obj=news %}</a>
|
|
<h3><a href="{{ news.get_permanent_url }}" title="">{{ news.main_title }}</a></h3>
|
|
{{ news.preview }}
|
|
<strong><span>{{ news.created|date:"d E Y" }}</span>{% with event=news.get_event %}{% if event %}<a href="{{ event.get_permanent_url }}" title=""><b>{{ event.name }}</b></a>{% endif %}{% endwith %}</strong>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
<!--todo: вернуть минифицированную версию-->
|
|
<script src="{% static 'client/js/_modules/block.newsFilter.js' %}"></script>
|
|
<script>
|
|
//js module initialization
|
|
EXPO.newsFilter.init({
|
|
theme:{
|
|
placeholder:"{% trans 'Укажите тематику' %}"
|
|
},
|
|
tags:{
|
|
placeholder:"{% trans 'Выберите ключевые теги' %}",
|
|
url:'http://{{ request.get_host }}/theme/get-tag/'
|
|
}
|
|
});
|
|
</script>
|
|
{% endblock %}
|
|
|
|
{% block paginator %}
|
|
{% include 'includes/catalog_paginator.html' with page_obj=page_obj %}
|
|
{% endblock %}
|
|
|