Skip to content

Commit

Permalink
feat(front): do the same thing as grp2 with grp3
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime Vergez committed Jul 3, 2023
1 parent 26c0b67 commit 8203b2b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
7 changes: 6 additions & 1 deletion static/app/bib_liste/edit/bibliste-edit-controler.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ app.controller('bibListeEditCtrl', ['$scope', '$http', '$uibModal',
"desc_liste": "",
"picto": "images/pictos/nopicto.gif",
"regne": "",
"group2_inpn": ""
"group2_inpn": "",
"group3_inpn": ""
};
self.edit_picto_db = [];
self.edit_picto_projet = [];
Expand Down Expand Up @@ -66,6 +67,10 @@ app.controller('bibListeEditCtrl', ['$scope', '$http', '$uibModal',
$http.get(backendCfg.api_url + "taxref/regnewithgroupe2").then(function(response) {
self.taxref_regne_group = response.data;
}),
//-----------------------Get list inpn regne and group3-----------------------------------------
$http.get(backendCfg.api_url + "taxref/regnewithgroupe3").then(function(response) {
self.taxref_regne_group3 = response.data;
}),
//-----------------------Get list of picto in dossier ./static/images/pictos -----------------------------------------------
$http.get(backendCfg.api_url + "biblistes/pictosprojet").then(function(response) {
self.pictos_propose = response.data;
Expand Down
13 changes: 13 additions & 0 deletions static/app/bib_liste/edit/bibliste-edit-tpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,19 @@ <h3><img ng-src="./static/{{ctrl.edit_detailliste.picto}}" class="img-circle" wi
<span class="glyphicon glyphicon-question-sign btn-icon" data-toggle="tooltip" data-placement="right" title="Permet de proposer cette liste seulement pour les taxons d'un group2 INPN">
</div>
</div>
<div class="form-group form-group-sm" ng-hide="ctrl.hideGroup3" >
<label class="col-sm-2 control-label" for="sm">Groupe 3 INPN</label>
<div class="col-sm-7">
<select name="sgroup3" id="select-group3" class="form-control"
ng-disabled="!ctrl.userRights.high"
ng-options="option for option in ctrl.taxref_regne_group3[ctrl.edit_detailliste.regne]"
ng-model="ctrl.edit_detailliste.group3_inpn">
</select>
</div>
<div class="col-xs-0">
<span class="glyphicon glyphicon-question-sign btn-icon" data-toggle="tooltip" data-placement="right" title="Permet de proposer cette liste seulement pour les taxons d'un group2 INPN">
</div>
</div>
<div class="form-group form-group-sm">
<label class="col-sm-2 control-label" for="sm">Lien picto</label>
<div class="col-sm-7">
Expand Down

0 comments on commit 8203b2b

Please sign in to comment.