{% extends 'base.html' %}
{% load crispy_forms_tags %}
{% load static %}

{% block main %}

<div class="card-body">
{% if page.blog_art %}
	{% for item in page.blog_art %}
		<p class="card-text">{{item.b_contenu|safe}}</p>
	{% endfor %}
{% endif %}
</div>
{% endblock %}

{% block right_panel %}
<div class="card" style="background-color: rgba(250,250,250,0.88);" >
<div class="card-body">
	<p class="card-text">{{page.p_right|safe}}</p>
	<h5> Les Catégories </h5>
	<p>
	{% for item in page.blog_art %}
		{% for cat in item.b_cat.all %}
			<a href="#" class="btn btn-dark" tabindex="-1" role="button" aria-disabled="true">{{cat.cb_titre}}</a>
		{% endfor %}
	{% endfor %}
	</p>
	<p><a href="{% url 'blog_index' %}" class="btn btn-dark" tabindex="-1" role="button" aria-disabled="true"><i class="fas fa-undo"></i> Retour</a></p>
</div>
</div>
{% endblock %}
