change Commercial -> Production
This commit is contained in:
@@ -57,7 +57,7 @@ def get_member_info(request, logged_in):
|
|||||||
elif results.access == 5:
|
elif results.access == 5:
|
||||||
fonction = 'Gestion'
|
fonction = 'Gestion'
|
||||||
else:
|
else:
|
||||||
fonction = 'Commercial'
|
fonction = 'Production'
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'nom': results.nom,
|
'nom': results.nom,
|
||||||
|
|||||||
@@ -100,6 +100,8 @@
|
|||||||
<span class="glyphicon glyphicon-remove"></span> Supprimer</button>
|
<span class="glyphicon glyphicon-remove"></span> Supprimer</button>
|
||||||
<a class="btn btn-warning" href="/init_mdp/${lienmdp}" tal:condition="individu.CD_UTI != '0'">
|
<a class="btn btn-warning" href="/init_mdp/${lienmdp}" tal:condition="individu.CD_UTI != '0'">
|
||||||
<span class="glyphicon glyphicon-lock"></span> Initialiser MDP</a>
|
<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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -44,12 +44,6 @@
|
|||||||
return '<a href="/user_edit/' + data + '">' + data + '</a>';
|
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:
|
else:
|
||||||
etat = ''
|
etat = ''
|
||||||
|
|
||||||
if item.access == 0:
|
if item.access == 5:
|
||||||
role = 'Commercial'
|
role = 'Gestion'
|
||||||
elif item.access == 8:
|
elif item.access == 8:
|
||||||
role = 'Compta'
|
role = 'Compta'
|
||||||
elif item.access == 9:
|
elif item.access == 9:
|
||||||
role = 'Admin'
|
role = 'Admin'
|
||||||
else:
|
else:
|
||||||
role = 'Gestion'
|
role = 'Production'
|
||||||
|
|
||||||
d = (item.CD_UTI, item.NOM, item.email, item.agenda, role, item.societe, etat)
|
d = (item.CD_UTI, item.NOM, item.email, item.agenda, role, item.societe, etat)
|
||||||
liste.append(d)
|
liste.append(d)
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ mail.ssl = yes
|
|||||||
use = egg:waitress#main
|
use = egg:waitress#main
|
||||||
host = 0.0.0.0
|
host = 0.0.0.0
|
||||||
port = 9180
|
port = 9180
|
||||||
url_scheme = http
|
url_scheme = https
|
||||||
|
|
||||||
###
|
###
|
||||||
# logging configuration
|
# logging configuration
|
||||||
|
|||||||
Reference in New Issue
Block a user