color dossier according to society
This commit is contained in:
@@ -105,3 +105,23 @@
|
||||
.logo-small {
|
||||
font-size: 50px;
|
||||
}
|
||||
.bg-PE {
|
||||
background-color: #ffffb3 !important;
|
||||
color: black;
|
||||
}
|
||||
.bg-ME {
|
||||
background-color: #ffe44d !important;
|
||||
color: black;
|
||||
}
|
||||
.bg-PL {
|
||||
background-color: #b3ff66 !important;
|
||||
color: black;
|
||||
}
|
||||
.bg-PO {
|
||||
background-color: #b1dae7 !important;
|
||||
color: black;
|
||||
}
|
||||
.bg-CD {
|
||||
background-color: #ffb3cc !important;
|
||||
color: black;
|
||||
}
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
mklink /J DEVFAC14 C:\DEVFAC14
|
||||
5
mondumas/static/img/link2DEVFAC14.txt
Normal file
5
mondumas/static/img/link2DEVFAC14.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
-- Windows 10, lecteur local
|
||||
mklink /J DEVFAC14 C:\DEVFAC14
|
||||
|
||||
-- Windows server, lecteur r<>seau
|
||||
mklink /D DEVFAC14 \\SRVTSE\DEVFAC14
|
||||
@@ -33,10 +33,11 @@
|
||||
</div>
|
||||
<br />
|
||||
<p align="center">
|
||||
<span class="label" style="background-color:LightYellow; color:black;">RDV Peinture</span>
|
||||
<span class="label" style="background-color:Gold; color:black;">RDV Menuiserie</span>
|
||||
<span class="label" style="background-color:LightGreen; color:black;">RDV Plomberie</span>
|
||||
<span class="label" style="background-color:LightBlue; color:black;">RDV Plomberie</span>
|
||||
<span class="label bg-PE">RDV Peinture</span>
|
||||
<span class="label bg-ME">RDV Menuiserie</span>
|
||||
<span class="label bg-PL">RDV Plomberie</span>
|
||||
<span class="label bg-PO">RDV Polynet</span>
|
||||
<span class="label bg-CD">RDV Couleurs & Déco</span>
|
||||
</p>
|
||||
<br />
|
||||
<!-- Modal : Confirmation CREATION -->
|
||||
|
||||
@@ -8,10 +8,11 @@
|
||||
</div>
|
||||
<br />
|
||||
<p align="center">
|
||||
<span class="label" style="background-color:LightYellow; color:black;">RDV Peinture</span>
|
||||
<span class="label" style="background-color:Gold; color:black;">RDV Menuiserie</span>
|
||||
<span class="label" style="background-color:LightGreen; color:black;">RDV Plomberie</span>
|
||||
<span class="label" style="background-color:LightBlue; color:black;">RDV Plomberie</span>
|
||||
<span class="label bg-PE">RDV Peinture</span>
|
||||
<span class="label bg-ME">RDV Menuiserie</span>
|
||||
<span class="label bg-PL">RDV Plomberie</span>
|
||||
<span class="label bg-PO">RDV Polynet</span>
|
||||
<span class="label bg-CD">RDV Couleurs & Déco</span>
|
||||
</p>
|
||||
<br />
|
||||
<br />
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
</div>
|
||||
|
||||
<!-- Mon compte -->
|
||||
<div class="col-md-6 well">
|
||||
<div class="col-md-6 ${bg_color}">
|
||||
<table class="table table-condensed ">
|
||||
<tr>
|
||||
<td><h4>CLIENT</h4></td>
|
||||
@@ -82,8 +82,23 @@
|
||||
</div>
|
||||
<h4>Statut : ${dossier.STATUS}</h4>
|
||||
</div> <!-- row -->
|
||||
|
||||
<!-- ENTETE DEVIS -->
|
||||
<table class="table table-bordered table-condensed">
|
||||
<tr>
|
||||
<th class="text-right">Total HT</th>
|
||||
<th class="text-right">Total TVA</th>
|
||||
<th class="text-right">Total TTC</th>
|
||||
<th class="text-right">TVA</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="text-right">${layout.to_decz(dossier.TOTALHT)}</td>
|
||||
<td class="text-right">${layout.to_euroz(dossier.TOTALTVA)}</td>
|
||||
<td class="text-right">${layout.to_euroz(dossier.TOTALTTC)}</td>
|
||||
<td class="text-right">${dossier.TAUXTVA} %</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table class="table table-bordered table-condensed">
|
||||
<tr>
|
||||
<th>Réf</th>
|
||||
<th>Désignation</th>
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
</div>
|
||||
|
||||
<!-- Mon compte -->
|
||||
<div class="col-md-6 well">
|
||||
<div class="col-md-6 ${bg_color}">
|
||||
<table class="table table-condensed ">
|
||||
<tr>
|
||||
<td><h4>CLIENT</h4></td>
|
||||
|
||||
@@ -129,13 +129,15 @@ def agenda(request):
|
||||
# déterminer la couleur de l'event selon la societe
|
||||
societe = row.nodossier[0:2]
|
||||
if societe == "PE":
|
||||
color = "LightYellow"
|
||||
color = "#ffffb3"
|
||||
elif societe == "ME":
|
||||
color = "#ffe44d"
|
||||
elif societe == "PL":
|
||||
color = "LightGreen"
|
||||
color = "#b3ff66"
|
||||
elif societe == "PO":
|
||||
color = "LightBlue"
|
||||
color = "#b1dae7"
|
||||
else:
|
||||
color = "Gold"
|
||||
color = "#ffb3cc"
|
||||
|
||||
json_event = {
|
||||
'title': '%s %s' % (row.c_qualite, row.c_nom),
|
||||
@@ -188,13 +190,15 @@ def planning(request):
|
||||
# déterminer la couleur de l'event selon la societe
|
||||
societe = row.nodossier[0:2]
|
||||
if societe == "PE":
|
||||
color = "LightYellow"
|
||||
color = "#ffffb3"
|
||||
elif societe == "ME":
|
||||
color = "#ffe44d"
|
||||
elif societe == "PL":
|
||||
color = "LightGreen"
|
||||
color = "#b3ff66"
|
||||
elif societe == "PO":
|
||||
color = "LightBlue"
|
||||
color = "#b1dae7"
|
||||
else:
|
||||
color = "Gold"
|
||||
color = "#ffb3cc"
|
||||
|
||||
json_event = {
|
||||
'resourceId': user.CD_UTI,
|
||||
|
||||
@@ -99,6 +99,8 @@ def dossier_view(request):
|
||||
similaires = get_similaires_byChantier(request, dossier.societe, dossier.C_NOM, dossier.C_ADR, dossier.C_CP, dossier.C_VILLE)
|
||||
# lire tous les documents attachés
|
||||
docs_attaches = get_docs_attaches(request, 'DOCS_ATTACHES', nodossier)
|
||||
# select background color according to society
|
||||
bg_color = "bg-%s" % societe
|
||||
|
||||
return {
|
||||
'page_title': u"Dossier : %s" % (nodossier),
|
||||
@@ -109,11 +111,13 @@ def dossier_view(request):
|
||||
'similaires': similaires,
|
||||
'docs_attaches': docs_attaches,
|
||||
'docs_url': request.static_url(request.registry.settings['mondumas.DEVFAC14']),
|
||||
'bg_color': bg_color,
|
||||
}
|
||||
|
||||
@view_config(route_name='devis_view', renderer='../templates/dossier/devis_view.pt', permission='view')
|
||||
def devis_view(request):
|
||||
nodossier = request.matchdict['nodossier']
|
||||
societe = nodossier[0:2]
|
||||
url = request.route_url("devis_view", nodossier=nodossier)
|
||||
|
||||
type_doc = nodossier[3:5]
|
||||
@@ -130,12 +134,15 @@ def devis_view(request):
|
||||
return HTTPFound(location=request.route_url("dossier_lookup"))
|
||||
# lire tous les lignes du devis
|
||||
details = get_devis_lig_by_no(request, nodossier)
|
||||
# select background color according to society
|
||||
bg_color = "bg-%s" % societe
|
||||
|
||||
return {
|
||||
'page_title': page_title,
|
||||
'nodossier': nodossier,
|
||||
'dossier': dossier,
|
||||
'details': details,
|
||||
'bg_color': bg_color,
|
||||
}
|
||||
|
||||
@view_config(route_name='dossier_selected', permission='view')
|
||||
|
||||
Reference in New Issue
Block a user