Commit 09213c89 authored by manuel.delunsch's avatar manuel.delunsch

Ajout du nom complet de l'université principal

parent 55ec878b
Pipeline #34517 passed with stage
in 55 seconds
<div class="clearfix">
<ul class="tab-links">
<h4>Campus actuel : {{AdminImportsCtrl.currentCampus.fullName}}</h4>
<li><a href ng-class="{'active':AdminImportsCtrl.screen=='users'}" ng-click="AdminImportsCtrl.screen='users'">{{::_labels.importUsersTab}}</a>
</li>
<li><a href ng-class="{'active':AdminImportsCtrl.screen=='entreprises'}"
......@@ -13,7 +13,7 @@
</ul>
</div>
<p>{{AdminImportsCtrl.currentCampus.name}}</p>
<div ng-show="AdminImportsCtrl.screen=='users'">
......
......@@ -16,13 +16,17 @@ root.controller('AdminImportsCtrl', ['$scope', '$http', '$stateParams' , '$unive
$universityFactory.getMainUniversityByUser(session.user, function (univ) {
AdminImportsCtrl.currentCampus = univ;
console.error(AdminImportsCtrl.currentCampus);
$universityFactory.get_university(univ.id, function (univDetails) {
console.error(univDetails);
});
//refresh();
//TODO : utiliser une méthode qui ne nécéssite pas la boucle find()
$universityFactory.getUniversitiesByUser().success(function (data, status, headers, config) {
if (data.status == "success") {
const campuses = data.details;
AdminImportsCtrl.currentCampus.fullName = campuses.find(campus => campus.id == AdminImportsCtrl.currentCampus.id).fullName;
}
})
})
}
$scope.activate = function (campus) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment