- {% include 'kfet/base_messages.html' %}
-
-
-
Liste des comptes
-
-
-
-
- |
- Trigramme |
- Nom |
- Balance |
- COF |
- Dpt |
- Promo |
-
-
-
- {% for account in accounts %}
-
-
-
-
-
- |
- {{ account.trigramme }} |
- {{ account.name }} |
- {{ account.balance }}€ |
- {{ account.is_cof }} |
- {{ account.departement }} |
- {{ account.promo|default_if_none:'' }} |
-
- {% endfor %}
-
-
-
-
-
+
+
{{ accounts|length|add:-1 }}
+
compte{{ accounts|length|add:-1|pluralize }}
+
+
+
+{% endblock %}
+
+{% block main-content %}
+
+
+
Liste des comptes
+
+
+
+
+ |
+ Trigramme |
+ Nom |
+ Balance |
+ COF |
+ Dpt |
+ Promo |
+
+
+
+ {% for account in accounts %}
+
+
+
+
+
+ |
+ {{ account.trigramme }} |
+ {{ account.name }} |
+ {{ account.balance }}€ |
+ {{ account.is_cof|yesno:"Oui,Non" }} |
+ {{ account.departement }} |
+ {{ account.promo|default_if_none:'' }} |
+
+ {% endfor %}
+
+
diff --git a/kfet/templates/kfet/account_create.html b/kfet/templates/kfet/account_create.html
index 1278a54b..b9e050b4 100644
--- a/kfet/templates/kfet/account_create.html
+++ b/kfet/templates/kfet/account_create.html
@@ -1,45 +1,39 @@
-{% extends "kfet/base.html" %}
+{% extends "kfet/base_col_1.html" %}
{% load staticfiles %}
{% block title %}Nouveau compte{% endblock %}
+{% block header-title %}Création d'un compte{% endblock %}
{% block extra_head %}
{% endblock %}
-{% block content-header-title %}Création d'un compte{% endblock %}
+{% block main-class %}content-form{% endblock %}
-{% block content %}
+{% block main-content %}
-{% include 'kfet/base_messages.html' %}
-
-
-
+
+
Les mots contenant des caractères non alphanumériques seront ignorés
+
+
+
+
+
{% endblock %}
-{% block content-header-title %}Création d'un compte{% endblock %}
+{% block main-class %}content-form{% endblock %}
-{% block content %}
+{% block main-content %}
-
-
- {% include 'kfet/base_messages.html' %}
-
+
+
+
+
+
+
{% endblock %}
-{% block title %}Informations sur l'article {{ article }}{% endblock %}
-{% block content-header-title %}Article - {{ article.name }}{% endblock %}
+{% block title %}Article - {{ article.name }}{% endblock %}
+{% block header-title %}Informations sur l'article {{ article.name }}{% endblock %}
-{% block content %}
+{% block fixed-content %}
-
-
-
-
-
{{ article.name }}
-
{{ article.category }}
-
-
Prix (hors réduc.): {{ article.price }}€
-
Stock: {{ article.stock }}
-
En vente: {{ article.is_sold | yesno:"Oui,Non" }}
-
Affiché: {{ article.hidden | yesno:"Non,Oui" }}
-
-
-
-
+
+
{{ article.name }}
+
{{ article.category }}
+
+
Prix (hors réduc.): {{ article.price }}€
+
Stock: {{ article.stock }}
+
En vente: {{ article.is_sold | yesno:"Oui,Non" }}
+
Affiché: {{ article.hidden | yesno:"Non,Oui" }}
-
- {% include 'kfet/base_messages.html' %}
-
-
-
Historique
-
-
-
Inventaires
-
-
-
- Date |
- Stock |
- Erreur |
-
-
-
- {% for inventoryart in inventoryarts %}
-
- {{ inventoryart.inventory.at }} |
- {{ inventoryart.stock_new }} |
- {{ inventoryart.stock_error }} |
-
- {% endfor %}
-
-
-
-
-
Prix fournisseurs
-
-
-
- Date |
- Fournisseur |
- HT |
- TVA |
- Droits |
-
-
-
- {% for supplierart in supplierarts %}
-
- {{ supplierart.at }} |
- {{ supplierart.supplier.name }} |
- {{ supplierart.price_HT }} |
- {{ supplierart.TVA }} |
- {{ supplierart.rights }} |
-
- {% endfor %}
-
-
-
-
-
-
-
Statistiques
-
-
-
-
Ventes de {{ article.name }}
-
-
-
-
+
+
+
+{% endblock %}
+
+{% block main-content %}
+
+
+
Historique
+
+
+
Inventaires
+
+
+
+ Date |
+ Stock |
+ Erreur |
+
+
+
+ {% for inventoryart in inventoryarts %}
+
+ {{ inventoryart.inventory.at }} |
+ {{ inventoryart.stock_new }} |
+ {{ inventoryart.stock_error }} |
+
+ {% endfor %}
+
+
+
+
+
Prix fournisseurs
+
+
+
+
+ Date |
+ Fournisseur |
+ HT |
+ TVA |
+ Droits |
+
+
+
+ {% for supplierart in supplierarts %}
+
+ {{ supplierart.at }} |
+ {{ supplierart.supplier.name }} |
+ {{ supplierart.price_HT }} |
+ {{ supplierart.TVA }} |
+ {{ supplierart.rights }} |
+
+ {% endfor %}
+
+
+
+
+
diff --git a/kfet/templates/kfet/article_update.html b/kfet/templates/kfet/article_update.html
index 65ccec3b..d451df94 100644
--- a/kfet/templates/kfet/article_update.html
+++ b/kfet/templates/kfet/article_update.html
@@ -1,9 +1,11 @@
-{% extends 'kfet/base.html' %}
+{% extends "kfet/base_col_1.html" %}
-{% block title %}Édition de l'article {{ article.name }}{% endblock %}
-{% block content-header-title %}Article {{ article.name }} - Édition{% endblock %}
+{% block title %}{{ article.name }} - Édition{% endblock %}
+{% block header-title %}Édition de l'article {{ article.name }}{% endblock %}
-{% block content %}
+{% block main-class %}content-form{% endblock %}
+
+{% block main-content %}
{% include "kfet/base_form.html" with authz=perms.kfet.change_article submit_text="Mettre à jour"%}
diff --git a/kfet/templates/kfet/base.html b/kfet/templates/kfet/base.html
index 173a5fb7..da37abae 100644
--- a/kfet/templates/kfet/base.html
+++ b/kfet/templates/kfet/base.html
@@ -30,12 +30,12 @@
{% include "kfet/base_nav.html" %}
- {% block content-header %}
-