forked from DGNum/gestioCOF
b8110c11a4
kfet.open app - Base data (raw_open, last_update...) is stored and shared through cache system. - 2 websockets groups: one for team users, one for other users. - UI is initialized and kept up-to-date with WS. - raw_open and force_close can be updated with standard HTTP requests. At this time, there isn't any restriction on raw_open view. Common sense tell us to change this behavior. Misc - Clean channels routing. - 'PermConsumerMixin': user who sent the message is available as argument in connection_groups method, which returns groups to which the user should be appended on websocket connection (and discarded on disconnection). - New kfet.utils module: should be used for mixins, whatever is useful and not concerns the kfet app. - Clean JS dependencies.
59 lines
1.7 KiB
HTML
59 lines
1.7 KiB
HTML
{% extends "kfet/base_col_1.html" %}
|
|
{% load staticfiles %}
|
|
{% load kfet_tags %}
|
|
|
|
{% block title %}Accueil{% endblock %}
|
|
{% block header %}{% endblock %}
|
|
|
|
{% block extra_head %}
|
|
<link rel="stylesheet" type="text/css" href="{% static 'kfet/css/home.css' %}">
|
|
{% endblock %}
|
|
|
|
{% block main-size %}col-sm-10 col-sm-offset-1{% endblock %}
|
|
|
|
{% block main-content %}
|
|
|
|
<div class="content-right-block">
|
|
<h2>Carte</h2>
|
|
<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 %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|