admin: Fix add to delegated QA manager
This commit is contained in:
parent
0f9d56fcbf
commit
1adb1807b5
@ -564,6 +564,18 @@ angular.module("FICApp")
|
|||||||
})
|
})
|
||||||
|
|
||||||
.controller("AllTeamAssociationsController", function ($scope, $http) {
|
.controller("AllTeamAssociationsController", function ($scope, $http) {
|
||||||
|
$scope.newdqa = "";
|
||||||
|
$scope.addDelegatedQA = function () {
|
||||||
|
if ($scope.newdqa.length) {
|
||||||
|
if (!$scope.config.delegated_qa)
|
||||||
|
$scope.config.delegated_qa = [];
|
||||||
|
|
||||||
|
$scope.config.delegated_qa.push($scope.newdqa);
|
||||||
|
$scope.saveSettings();
|
||||||
|
$scope.newdqa = "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$scope.allAssociations = [];
|
$scope.allAssociations = [];
|
||||||
$http.get("api/teams-associations.json").then(function (response) {
|
$http.get("api/teams-associations.json").then(function (response) {
|
||||||
$scope.allAssociations = response.data;
|
$scope.allAssociations = response.data;
|
||||||
@ -625,17 +637,6 @@ angular.module("FICApp")
|
|||||||
$scope.config.disablesubmitbutton = "";
|
$scope.config.disablesubmitbutton = "";
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.newdqa = "";
|
|
||||||
$scope.addDelegatedQA = function () {
|
|
||||||
if ($scope.newdqa.length) {
|
|
||||||
if (!$scope.config.delegated_qa)
|
|
||||||
$scope.config.delegated_qa = [];
|
|
||||||
|
|
||||||
$scope.config.delegated_qa.push($scope.newdqa);
|
|
||||||
$scope.saveSettings();
|
|
||||||
$scope.newdqa = "";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
$scope.dropDelegatedQA = function (member) {
|
$scope.dropDelegatedQA = function (member) {
|
||||||
if (!$scope.config.delegated_qa) {
|
if (!$scope.config.delegated_qa) {
|
||||||
$scope.config.delegated_qa = [];
|
$scope.config.delegated_qa = [];
|
||||||
|
@ -306,7 +306,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<form ng-submit="addDelegatedQA()" class="card my-3">
|
<div class="card my-3">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<h3>Managers QA</h3>
|
<h3>Managers QA</h3>
|
||||||
</div>
|
</div>
|
||||||
@ -318,22 +318,23 @@
|
|||||||
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
|
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
<li class="row">
|
|
||||||
<div class="col" ng-controller="AllTeamAssociationsController">
|
|
||||||
<select class="form-control form-control-sm" ng-model="newdqa">
|
|
||||||
<option ng-repeat="(i,m) in allAssociations" ng-value="m">{{ m }}</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
<div class="col input-group">
|
|
||||||
<input type="text" class="form-control form-control-sm" ng-model="newdqa" placeholder="Nouveau manager QA">
|
|
||||||
<span class="input-group-append">
|
|
||||||
<button class="btn btn-sm btn-success" ng-disabled="!newdqa.length"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span></button>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
<form class="row" ng-controller="AllTeamAssociationsController" ng-submit="addDelegatedQA()">
|
||||||
|
<div class="col">
|
||||||
|
<select class="form-control form-control-sm" ng-model="newdqa">
|
||||||
|
<option ng-selected="newdqa == m" ng-repeat="(i,m) in allAssociations" ng-value="m">{{ m }}</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<div class="col input-group">
|
||||||
|
<input type="text" class="form-control form-control-sm" ng-model="newdqa" placeholder="Nouveau manager QA">
|
||||||
|
<span class="input-group-append">
|
||||||
|
<button class="btn btn-sm btn-success" ng-disabled="!newdqa.length"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span></button>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</div>
|
||||||
|
|
||||||
<form ng-submit="saveChallengeInfo()" class="card my-3">
|
<form ng-submit="saveChallengeInfo()" class="card my-3">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
|
Loading…
Reference in New Issue
Block a user