change Commercial -> Production

This commit is contained in:
2020-04-24 17:27:12 +02:00
parent 2e0abbdff2
commit 122710b3e4
5 changed files with 7 additions and 11 deletions

View File

@@ -57,7 +57,7 @@ def get_member_info(request, logged_in):
elif results.access == 5:
fonction = 'Gestion'
else:
fonction = 'Commercial'
fonction = 'Production'
return {
'nom': results.nom,

View File

@@ -100,6 +100,8 @@
<span class="glyphicon glyphicon-remove"></span> Supprimer</button>
<a class="btn btn-warning" href="/init_mdp/${lienmdp}" tal:condition="individu.CD_UTI != '0'">
<span class="glyphicon glyphicon-lock"></span> Initialiser MDP</a>
<a class="btn btn-warning" href="/connecter_a/${individu.CD_UTI}" tal:condition="individu.CD_UTI != '0'">
<span class="glyphicon glyphicon-log-in"></span> Se connecter à</a>
</div>
</div>
</div>

View File

@@ -44,12 +44,6 @@
return '<a href="/user_edit/' + data + '">' + data + '</a>';
},
},
{ "targets": 4,
"render": function (data, type, row, meta) {
// ajouter un link vers le login
return '<a href="/connecter_a/' + row[0] + '">' + data + '</a>';
},
},
]
});

View File

@@ -56,14 +56,14 @@ def users_list(request):
else:
etat = ''
if item.access == 0:
role = 'Commercial'
if item.access == 5:
role = 'Gestion'
elif item.access == 8:
role = 'Compta'
elif item.access == 9:
role = 'Admin'
else:
role = 'Gestion'
role = 'Production'
d = (item.CD_UTI, item.NOM, item.email, item.agenda, role, item.societe, etat)
liste.append(d)

View File

@@ -35,7 +35,7 @@ mail.ssl = yes
use = egg:waitress#main
host = 0.0.0.0
port = 9180
url_scheme = http
url_scheme = https
###
# logging configuration