Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
BonVivens
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
groupe-bonvivens
BonVivens
Commits
bf2dd129
Commit
bf2dd129
authored
Mar 03, 2018
by
Amap
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
affichage du solde en couleur selon la valeur
parent
995ad65a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
panier/templates/panier/control.html
panier/templates/panier/control.html
+17
-4
No files found.
panier/templates/panier/control.html
View file @
bf2dd129
...
...
@@ -10,7 +10,7 @@
{% csrf_token %}
{% if livraisonform %}
<h2>
Sél
é
ctioner une date de livraison
</h2>
<h2>
Sél
e
ctioner une date de livraison
</h2>
<a
type=
"button"
class=
"btn btn-success"
href=
"{% url 'panier:plusProcheLivraison' %}"
>
Livraison la plus proche
</a>
{% bootstrap_form livraisonform %}
...
...
@@ -44,12 +44,13 @@
<tr>
<th>
</th>
<th>
Utilisateur
</th>
<th>
Solde
</th>
<th>
Designation
</th>
<th>
Prix unitaire
</th>
<th>
Quantite
</th>
<th>
Date de livraison
</th>
<th>
Livré
</th>
<th>
Sac
à disposition
</th>
<th>
Sac
</th>
<th>
Gérer les sacs
</th>
<th></th>
</tr>
...
...
@@ -59,11 +60,21 @@
{% bootstrap_form_errors form %}
<tr>
<td><a
href=
"{% url "
users:profil
"
form.instance.user.id
%}"
class=
"btn btn-primary btn-sm"
role=
"button"
><i
class=
"glyphicon glyphicon-user"
></i></a>
<td>
{{ form.instance.user }}
</td>
{% if form.instance.user.solde
<
=
0
%}
<
td
><font
color=
"red"
>
{{ form.instance.user.solde }}
</td>
{% endif %}
{% if form.instance.user.solde > 0 and form.instance.user.solde
<
=
form.instance.prix_unitaire
%}
<
td
><font
color=
"orange"
>
{{ form.instance.user.solde }}
</td>
{% endif %}
{% if form.instance.user.solde > form.instance.prix_unitaire %}
<td><font
color=
"green"
>
{{ form.instance.user.solde }}
</td>
{% endif %}
<td>
{{ form.instance.nom }}
</td>
<td>
{{ form.instance.prix_unitaire }}
</td>
<td>
{{ form.instance.quantite }}
</td>
<td>
{{ form.instance.date
}}
</td>
<td>
{{ form.instance.date}}
</td>
<td>
{{ form.livre }}
</td>
<td>
{{ form.instance.user.sac_consignes }}
</td>
<td><a
class=
"btn btn-primary btn-sm"
role=
"button"
href=
"{% url 'panier:add-sac' form.instance.user.id %}"
><i
class=
"glyphicon glyphicon-plus"
></i>
Ajouter
</a></td>
...
...
@@ -81,13 +92,14 @@
<table
class=
"table table-striped table-hover"
>
<thead>
<tr>
<th>
</th>
<th>
Utilisateur
</th>
<th>
Designation
</th>
<th>
Prix unitaire
</th>
<th>
Quantite
</th>
<th>
Date de livraison
</th>
<th>
Livré
</th>
<th>
Sac
à disposition
</th>
<th>
Sac
consignés
</th>
<th>
Gérer les sacs
</th>
<th></th>
</tr>
...
...
@@ -96,6 +108,7 @@
{% if form.instance.livre %}
{% bootstrap_form_errors form %}
<tr>
<td><a
href=
"{% url "
users:profil
"
form.instance.user.id
%}"
class=
"btn btn-primary btn-sm"
role=
"button"
><i
class=
"glyphicon glyphicon-user"
></i></a>
<td>
{{ form.instance.user }}
</td>
<td>
{{ form.instance.nom }}
</td>
<td>
{{ form.instance.prix_unitaire }}
</td>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment