change Commercial -> Production
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>';
|
||||
},
|
||||
},
|
||||
]
|
||||
});
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user