forked from DGNum/gestioCOF
47 lines
1.3 KiB
HTML
47 lines
1.3 KiB
HTML
|
{% extends "kfetcms/base.html" %}
|
||
|
{% load static %}
|
||
|
{% load kfet_tags %}
|
||
|
|
||
|
{% block extra_head %}
|
||
|
{{ block.super }}
|
||
|
<link rel="stylesheet" type="text/css" href="{% static "kfet/css/home.css" %}">
|
||
|
{% endblock %}
|
||
|
|
||
|
{% block col-size %}column-sm-2 column-md-3{% endblock %}
|
||
|
|
||
|
{% block block3-content %}
|
||
|
|
||
|
{% if pressions %}
|
||
|
<div class="unbreakable carte carte-inverted">
|
||
|
<h3 class="carte-title">Pressions du moment</h3>
|
||
|
<ul class="carte-list">
|
||
|
{% for article in pressions %}
|
||
|
<li class="carte-item">
|
||
|
<div class="filler"></div>
|
||
|
<span class="carte-label">{{ article.name }}</span>
|
||
|
<span class="carte-ukf">{{ article.price | ukf:False}} UKF</span>
|
||
|
</li>
|
||
|
{% endfor %}
|
||
|
</ul>
|
||
|
</div><!-- endblock unbreakable -->
|
||
|
{% endif %}
|
||
|
|
||
|
{% regroup articles by category as categories %}
|
||
|
|
||
|
{% for category in categories %}
|
||
|
<div class="unbreakable carte">
|
||
|
<h3 class="carte-title">{{ category.grouper.name }}</h3>
|
||
|
<ul class="carte-list">
|
||
|
{% for article in category.list %}
|
||
|
<li class="carte-item">
|
||
|
<div class="filler"></div>
|
||
|
<span class="carte-label">{{ article.name }}</span>
|
||
|
<span class="carte-ukf">{{ article.price | ukf:False}} UKF</span>
|
||
|
</li>
|
||
|
{% endfor %}
|
||
|
</ul>
|
||
|
</div><!-- endblock unbreakable -->
|
||
|
{% endfor %}
|
||
|
|
||
|
{% endblock %}
|