mirror of
https://github.com/nanoy42/coope
synced 2024-11-22 03:13:12 +00:00
Merge branch 'link_profile' into dev
This commit is contained in:
commit
7907a91d7e
12 changed files with 14 additions and 14 deletions
|
@ -29,7 +29,7 @@
|
|||
<td>{{ menu.name }}</td>
|
||||
<td>{{ menu.amount}} €</td>
|
||||
<td>{{ menu.barcode }}</td>
|
||||
<td>{% for art in menu.articles.all %}{{art}},{% endfor %}</td>
|
||||
<td>{% for art in menu.articles.all %}<a href="{% url 'gestion:productProfile' art.pk %}">{{art}}</a>,{% endfor %}</td>
|
||||
<td>{{ menu.is_active | yesno:"Oui, Non"}}</td>
|
||||
<td>{% if perms.gestion.change_menu %}<a href="{% url 'gestion:switchActivateMenu' menu.pk %}" class="button small">{% if menu.is_active %}Désa{% else %}A{% endif %}ctiver</a> <a href="{% url 'gestion:editMenu' menu.pk %}" class="button small">Modifier</a>{% endif %}</td>
|
||||
</tr>
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
<tbody>
|
||||
{% for user in users %}
|
||||
<tr>
|
||||
<td>{{ user }}</td>
|
||||
<td><a href="{% url 'users:profile' user.pk">{{user}}</a></td>
|
||||
<td><a href="{% url 'users:profile' user.pk %}" class="button small">Profil</a></td>
|
||||
<td>{{ user.pintes_owned_currently.count }}</td>
|
||||
</tr>
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
<tbody>
|
||||
{% for product in products %}
|
||||
<tr>
|
||||
<td>{{ product.name }}</td>
|
||||
<td><a href="{% url 'gestion:productProfile' product.pk %}">{{ product.name }}</a></td>
|
||||
<td>{{ product.amount}}</td>
|
||||
<td>{{ product.stockHold }}</td>
|
||||
<td>{{ product.stockBar }}</td>
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
{%for customer in bestBuyers%}
|
||||
<tr>
|
||||
<th>{{ forloop.counter }}</th>
|
||||
<th>{{ customer.username }}</th>
|
||||
<th><a href="{% url 'users:profile' customer.pk %}">{{ customer.username }}</a></th>
|
||||
<th>{{ customer.profile.debit }}€</th>
|
||||
</tr>
|
||||
{%endfor%}
|
||||
|
@ -59,7 +59,7 @@
|
|||
{% for customer in bestDrinkers %}
|
||||
<tr>
|
||||
<th>{{ forloop.counter }}</th>
|
||||
<th>{{ customer.0.username }}</th>
|
||||
<th><a href="{% url 'users:profile' customer.0.pk %}">{{ customer.0.username }}</a></th>
|
||||
<th>{{ customer.1 }}</th>
|
||||
</tr>
|
||||
{%endfor%}
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
<tbody>
|
||||
{% for user in admins %}
|
||||
<tr>
|
||||
<td>{{ user }} {% if user.is_superuser %}(superuser){% endif %}</td>
|
||||
<td><a href="{% url 'users:profile' user.pk %}">{{ user }}</a>{ {% if user.is_superuser %}(superuser){% endif %}</td>
|
||||
<td><a class="button small" href="{% url 'users:profile' user.pk %}">Profil</a></td>
|
||||
<td>{% if not user.is_superuser %}<a class="button small" href="{% url 'users:removeAdmin' user.pk %}">Retirer des admins</a>{% endif %}</td>
|
||||
</tr>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
{% block navbar %}
|
||||
<ul>
|
||||
<li><a href="#first">Rechargements ({{user}})</a></li>
|
||||
<li><a href="#first">Rechargements (<a href="{% url 'profile:users' user.pk %}">{{user}}</a>)</a></li>
|
||||
</ul>
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
{% block content %}
|
||||
<section id="first" class="main special">
|
||||
<header class="major">
|
||||
<h2>Consommations ({{user}})</h2>
|
||||
<h2>Consommations (<a href="{% url 'users:profile' user.pk %}">{{user}}</a>)</h2>
|
||||
</header>
|
||||
<section id="rechargements">
|
||||
<div class="table-wrapper">
|
||||
|
@ -28,7 +28,7 @@
|
|||
<tbody id="bodyTransaction">
|
||||
{% for c in consumptions %}
|
||||
<tr>
|
||||
<td>{{c.product}}</td>
|
||||
<td>{% if perms.gestion.view_product %}<a href="{% url 'gestion:productProfile' c.product.pk %}">{{ c.product.name }}{% else %}{{c.product.name}}{% endif %}</a></td>
|
||||
<td>{{c.quantity}}</td>
|
||||
<td>{{c.amount}}</td>
|
||||
<td>{{c.paymentMethod}}</td>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
{% block content %}
|
||||
<section id="first" class="main special">
|
||||
<header class="major">
|
||||
<h2>Consommations de menus ({{user}})</h2>
|
||||
<h2>Consommations de menus (<a href="{% url 'profile:users' user.pk %}">{{user}}</a>)</h2>
|
||||
</header>
|
||||
<section id="rechargements">
|
||||
<div class="table-wrapper">
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
<tbody>
|
||||
{% for user in group.user_set.all %}
|
||||
<tr>
|
||||
<td>{{ user }}</td>
|
||||
<td><a href="{% url 'profile:users' user.pk %}">{{user}}</a></td>
|
||||
<td><a class="button small" href="{% url 'users:profile' user.pk %}">Profil</a></td>
|
||||
<td><a class="button small" href="{% url 'users:removeUser' group.pk user.pk %}">Retirer</a></td>
|
||||
</tr>
|
||||
|
|
|
@ -124,7 +124,7 @@
|
|||
<tbody id="bodyTransaction">
|
||||
{% for c in lastConsumptions %}
|
||||
<tr>
|
||||
<td>{{c.product}}</td>
|
||||
<td>{% if perms.gestion.view_product %}<a href="{% url 'gestion:productProfile' c.product.pk %}">{{ c.product.name }}</a>{% else %}{{c.product}}{% endif %}</td>
|
||||
<td>{{c.quantity}}</td>
|
||||
<td>{{c.amount}} €</td>
|
||||
<td>{{c.paymentMethod}}</td>
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
<tbody>
|
||||
{% for user in superusers %}
|
||||
<tr>
|
||||
<td>{{ user }}</td>
|
||||
<td><a href="{% url 'profile:users' user.pk %}">{{user}}</a></td>
|
||||
<td><a class="button small" href="{% url 'users:profile' user.pk %}">Profil</a></td>
|
||||
<td><a class="button small" href="{% url 'users:removeSuperuser' user.pk %}">Retirer des superusers</a></td>
|
||||
</tr>
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
<tbody>
|
||||
{% for user in users %}
|
||||
<tr>
|
||||
<td>{{ user }}</td>
|
||||
<td><a href="{% url 'profile:users' user.pk %}">{{user}}</a></td>
|
||||
<td><a class="button small" href="{% url 'users:profile' user.pk %}">Profil</a></td>
|
||||
{% if perms.auth.change_user %}
|
||||
<td><a class="button small" href="{% url 'users:switchActivateUser' user.pk %}">{{ user.is_active | yesno:"Désa,A"}}ctiver</a></td>
|
||||
|
|
Loading…
Reference in a new issue