diff --git a/config/modules.json b/config/modules.json index d7cc72c..508ea69 100755 --- a/config/modules.json +++ b/config/modules.json @@ -433,6 +433,17 @@ "output": { "status": { "description": "Status de la suppression.", "type": "boolean" } } + }, + + "memberChoice": { + "description": "Vue de modification des membres d'un groupe", + "permissions": ["warehouse", "admin"], + "parameters": { + "id_cluster": { "description": "UID du groupe.", "type": "id" } + }, + "ouptut": { + "view": { "description": "Vue HTML du choix des membres.", "type": "text" } + } } } diff --git a/css/header.scss b/css/header.scss index a32b9f2..bc2159b 100755 --- a/css/header.scss +++ b/css/header.scss @@ -25,7 +25,7 @@ /* Animation de chargement qudnd chargement ajax */ &.loading > .icon{ - background-image: url('/src/static/loader.svg'); + background-image: url('/src/static/loaderv2.svg'); background-size: 70% 70%; } diff --git a/css/header/expanded.css b/css/header/expanded.css index ef1ee3c..fa0216f 100644 --- a/css/header/expanded.css +++ b/css/header/expanded.css @@ -24,8 +24,8 @@ } #WRAPPER > #HEADER.loading > .icon { - background-image: url("/src/static/loader.svg"); + background-image: url("/src/static/loaderv2.svg"); background-size: 70% 70%; } -/*# sourceMappingURL=data:application/json;base64,ewoJInZlcnNpb24iOiAzLAoJImZpbGUiOiAiZXhwYW5kZWQuY3NzIiwKCSJzb3VyY2VzIjogWwoJCSIuLi9oZWFkZXIuc2NzcyIsCgkJIi4uL2NvbnN0YW50cy5zY3NzIgoJXSwKCSJzb3VyY2VzQ29udGVudCI6IFsKCQkiQGltcG9ydCAnY29uc3RhbnRzJztcblxuXG4jV1JBUFBFUiA+ICNIRUFERVJ7XG5cdC8vIEljb25lIGR1IHNpdGVcblx0JiA+IC5pY29ue1xuXHRcdGRpc3BsYXk6IGJsb2NrO1xuXHRcdHBvc2l0aW9uOiBhYnNvbHV0ZTtcblx0XHRcdHRvcDogMDtcblx0XHRcdGxlZnQ6IDA7XG5cdFx0XHR3aWR0aDogJG1lbnUtc2lkZS13aWR0aDtcblx0XHRcdGhlaWdodDogJG1lbnUtc2lkZS13aWR0aDtcblxuX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FBRztFRE5sQixNQUFNLEVDTVMsR0FBRztFREpuQixnQkFBZ0IsRUFBRSxPQUFNO0VBQ3hCLGdCQUFnQixFQUFFLDZCQUFHO0VBQ3JCLG1CQUFtQixFQUFFLGFBQWM7RUFDbkMsaUJBQWlCLEVBQUUsU0FBVTtFQUM3QixlQUFlLEVBQUUsT0FBUTtFQUV6QixNQUFNLEVBQUUsT0FBUTtFQUVoQixVQUFVLEVBQUUsT0FBUTtDQUVwQjs7QUFwQkYsQUF1QmEsUUF2QkwsR0FBRyxPQUFPLEFBdUJoQixRQUFRLEdBQUcsS0FBSyxDQUFBO0VBQ2hCLGdCQUFnQixFQUFFLCtCQUFHO0VBQ3JCLGVBQWUsRUFBRSxPQUFRO0NBQ3pCIiwKCSJuYW1lcyI6IFtdCn0= */ \ No newline at end of file diff --git a/css/header/min.css b/css/header/min.css index d290e8c..b03406c 100644 --- a/css/header/min.css +++ b/css/header/min.css @@ -1,3 +1,3 @@ -#WRAPPER>#HEADER>.icon{display:block;position:absolute;top:0;left:0;width:4em;height:4em;background-color:#c23f05;background-image:url("/src/static/iconv2.svg");background-position:center center;background-repeat:no-repeat;background-size:50% 50%;cursor:pointer;transition:all .3s}#WRAPPER>#HEADER.loading>.icon{background-image:url("/src/static/loader.svg");background-size:70% 70%} +#WRAPPER>#HEADER>.icon{display:block;position:absolute;top:0;left:0;width:4em;height:4em;background-color:#c23f05;background-image:url("/src/static/iconv2.svg");background-position:center center;background-repeat:no-repeat;background-size:50% 50%;cursor:pointer;transition:all .3s}#WRAPPER>#HEADER.loading>.icon{background-image:url("/src/static/loaderv2.svg");background-size:70% 70%} -/*# sourceMappingURL=data:application/json;base64,ewoJInZlcnNpb24iOiAzLAoJImZpbGUiOiAibWluLmNzcyIsCgkic291cmNlcyI6IFsKCQkiLi4vaGVhZGVyLnNjc3MiLAoJCSIuLi9jb25zdGFudHMuc2NzcyIKCV0sCgkic291cmNlc0NvbnRlbnQiOiBbCgkJIkBpbXBvcnQgJ2Nvbn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EIsTUFBTSxDQ01TLEdBQUcsQ0RKbkIsZ0JBQWdCLENBQUUsT0FBTSxDQUN4QixnQkFBZ0IsQ0FBRSw2QkFBRyxDQUNyQixtQkFBbUIsQ0FBRSxhQUFjLENBQ25DLGlCQUFpQixDQUFFLFNBQVUsQ0FDN0IsZUFBZSxDQUFFLE9BQVEsQ0FFekIsTUFBTSxDQUFFLE9BQVEsQ0FFaEIsVUFBVSxDQUFFLE9BQVEsQ0FFcEIsQUFwQkYsQUF1QmEsUUF2QkwsQ0FBRyxPQUFPLEFBdUJoQixRQUFRLENBQUcsS0FBSyxBQUFBLENBQ2hCLGdCQUFnQixDQUFFLCtCQUFHLENBQ3JCLGVBQWUsQ0FBRSxPQUFRLENBQ3pCIiwKCSJuYW1lcyI6IFtdCn0= */ \ No newline at end of file diff --git a/manager/View.php b/manager/View.php index a37ac00..822999c 100644 --- a/manager/View.php +++ b/manager/View.php @@ -73,6 +73,13 @@ echo $this->view; } + /* RETOURNE LA VUE CALCULEE + * + */ + public function getView(){ + return $this->view; + } + diff --git a/manager/module/clusterDefault.php b/manager/module/clusterDefault.php index 8bf089e..fcf28de 100644 --- a/manager/module/clusterDefault.php +++ b/manager/module/clusterDefault.php @@ -1,6 +1,7 @@ UID du groupe en question + * + * @return view Retourne la vue HTML du choix des membres du groupe + * + */ + public static function memberChoice($params){ + extract($params); + + $view = new View('group.membersChoice',[ + 'id_cluster' => $id_cluster + ]); + + return [ + 'view' => $view->getView() + ]; + } + + } diff --git a/src/static/loaderv2.svg b/src/static/loaderv2.svg new file mode 100644 index 0000000..ad9cb74 --- /dev/null +++ b/src/static/loaderv2.svg @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/view/groups.php b/view/groups.php index b7f81d0..5abfc39 100755 --- a/view/groups.php +++ b/view/groups.php @@ -167,13 +167,13 @@ /* [4] Gestion de filtrage =========================================================*/ echo "
"; - - debug(); - - $userForGroup = new View('group.membersChoice', [ - 'id_cluster' => 202 // groupe "b" de type MACHINE - ]); - - $userForGroup->view(); + // + // debug(); + // + // $userForGroup = new View('group.membersChoice', [ + // 'id_cluster' => 202 // groupe "b" de type MACHINE + // ]); + // + // $userForGroup->view(); echo '
'; diff --git a/view/js/groups-min.js b/view/js/groups-min.js index 559c2a8..1fa7c6d 100644 --- a/view/js/groups-min.js +++ b/view/js/groups-min.js @@ -1,11 +1,11 @@ var section={view:{text:'#CONTAINER > section[data-sublink="view"] ',element:document.querySelector('#CONTAINER > section[data-sublink="view"]'),searchbar:document.querySelector('#CONTAINER > section[data-sublink="view"] > .searchbar')},create:{text:'#CONTAINER > section[data-sublink="create"] ',element:document.querySelector('#CONTAINER > section[data-sublink="create"]')},remove:{text:'#CONTAINER > section[data-sublink="remove"] ',element:document.querySelector('#CONTAINER > section[data-sublink="remove"]')}, -edit:{text:'#CONTAINER > section[data-sublink="edit"] ',element:document.querySelector('#CONTAINER > section[data-sublink="edit"]')}}; -if(null!=section.view.element){1 section[data-sublink="edit"] ',element:document.querySelector('#CONTAINER > section[data-sublink="edit"]')},filter:{text:'#CONTAINER > section[data-sublink="filter"] ',element:document.querySelector('#CONTAINER > section[data-sublink="filter"]')}}; +if(null!=section.view.element){1 article.inline-box[id]");for(c=0;c section[data-sublink="edit"] ', element: document.querySelector('#CONTAINER > section[data-sublink="edit"]') + }, + + filter: { + text: '#CONTAINER > section[data-sublink="filter"] ', + element: document.querySelector('#CONTAINER > section[data-sublink="filter"]') } }; @@ -43,7 +48,7 @@ if( section.view.element != null ){ /* (2) On récupère toutes les actions de groupes */ section.view.group = { - rem: document.querySelectorAll(section.view.text + '.rem-group[data-cluster][data-group]'), + rem: document.querySelectorAll(section.view.text + '.rem-group[data-cluster][data-member]'), add: document.querySelectorAll(section.view.text + '.add-group[data-cluster]') }; @@ -136,24 +141,10 @@ if( section.view.element != null ){ for( var i = 0 ; i < section.view.group.add.length ; i++ ){ section.view.group.add[i].addEventListener('click', function(e){ - // {1} On rédige la requête // - var request = { - path: 'clusterDefault/unlink', - id_user: e.target.getData('user'), - id_cluster: e.target.getData('group') - }; - // {2} On envoie la requête // - api.send(request, function(response){ - - // {3} Si erreur, on ne fait rien // - if( response.ModuleError != 0 ) - return false; - - - // {4} Si tout s'est bien passé // - e.target.parentNode.parentNode.removeChild( e.target.parentNode ); - }); + pageManager.vars[1] = e.target.getData('cluster'); + navSubMenu('filter'); + document.location = ''; }, false); @@ -204,8 +195,8 @@ if( section.create.element != null ){ console.log('Groupe cree!'); // On redirige sur la cluster - pageManager.vars = ['view', answer.id_cluster]; - pageManager.refresh(); + pageManager.vars[1] = answer.id_cluster; + navSubMenu('view'); document.location = ''; section.create.input.submit.anim('active', 1500); @@ -600,3 +591,41 @@ if( section.edit.element != null ){ } + + + + + + + + + + + + + + +/* GESTION DE LA MODIFICATION DES MEMBRES +* +*/ +if( section.filter.element != null ){ + + /* [1] Si id_cluster dans URL + =========================================================*/ + if( pageManager.vars.length > 1 && !isNaN(pageManager.vars[1]) ){ + + /* (1) On rédige la requête */ + var request = { + path: 'clusterDefault/memberChoice', // Modification des membres + id_cluster: pageManager.vars[1] + }; + + /* (2) On récupère la vue et on l'affiche */ + api.send(request, function(answer){ + if( answer.ModuleError == 0 ) + section.filter.element.innerHTML = answer.view; + }); + + } + +}