gestioCOF/kfet/templates/kfet/home.html

60 lines
1.7 KiB
HTML
Raw Normal View History

{% extends "kfet/base_col_1.html" %}
2016-12-09 21:44:38 +01:00
{% load staticfiles %}
2017-01-25 23:41:16 +01:00
{% load kfet_tags %}
2016-12-09 21:44:38 +01:00
{% block title %}Accueil{% endblock %}
{% block header %}{% endblock %}
2017-03-05 20:05:35 +01:00
{% block extra_head %}
<link rel="stylesheet" type="text/css" href="{% static 'kfet/css/home.css' %}">
{% endblock %}
2016-12-09 21:44:38 +01:00
{% block main-size %}col-sm-10 col-sm-offset-1{% endblock %}
{% block main-content %}
<div class="content-right-block">
<h2>Carte</h2>
2017-04-06 00:00:53 +02:00
<div class="column-row">
<div class="column-sm-1 column-md-2 column-lg-3">
<div class="unbreakable carte-inverted">
{% if pressions %}
<h3>Pressions du moment</h3>
<ul class="carte">
{% for article in pressions %}
<li class="carte-line">
<div class="filler"></div>
<span class="carte-label">{{ article.name }}</span>
<span class="carte-ukf">{{ article.price | ukf:False}} UKF</span>
</li>
{% endfor %}
</ul>
{% endif %}
</div><!-- endblock unbreakable -->
{% for article in articles %}
{% ifchanged article.category %}
{% if not forloop.first %}
</ul>
</div><!-- endblock unbreakable -->
{% endif %}
<div class="unbreakable">
<h3>{{ article.category.name }}</h3>
<ul class="carte">
{% endifchanged %}
<li class="carte-line">
<div class="filler"></div>
<span class="carte-label">{{ article.name }}</span>
<span class="carte-ukf">{{ article.price | ukf:False}} UKF</span>
</li>
{% if forloop.last %}
</ul>
</div><!-- endblock unbreakable -->
{% endif %}
{% endfor %}
2017-01-24 19:56:58 +01:00
</div>
2016-12-09 21:44:38 +01:00
</div>
</div>
{% endblock %}