Fixed template lcube6 for default admin right delete template of coordination objects

This commit is contained in:
Rooty 2020-12-14 04:04:19 +01:00
parent 6e2343348c
commit ef544fec86
3 changed files with 89 additions and 64 deletions

View File

@ -1,8 +1,22 @@
<div class="tab-content container px-2 py-2 border"> <div class="tab-content container-fluid px-2 py-2 w-100 border">
<form name="configObject" method="POST" mXattribut="action:urlAction"> <form id="configObject" name="configObject" role="form" class="form text-center px-0" method="post" mXattribut="action:urlAction">
<input type="hidden" name="urlReturn" mXattribut="value:urlReturn" class="hidden">
<div class="card w-100 mb-0">
<div class="card-header">
<h3><mx:text id="TxtDeleteRight"/><mx:text id="ObjectName"/> (<mx:text id="ObjectType"/>)</h3>
</div>
</div>
</form>
</div>
<!-- <div class="tab-content container px-2 py-2 border"> -->
<!-- <form name="configObject" method="POST" mXattribut="action:urlAction"> -->
<div class="fieldset"> <div class="fieldset">
<div class="legend"><mx:text id="TxtDeleteRight"/><mx:text id="ObjectName"/> (<mx:text id="ObjectType"/>)</div> <!-- <div class="legend"><mx:text id="TxtDeleteRight"/><mx:text id="ObjectName"/> (<mx:text id="ObjectType"/>)</div> -->
<input type="hidden" name="urlReturn" mXattribut="value:urlReturn" class="hidden"> <!-- <input type="hidden" name="urlReturn" mXattribut="value:urlReturn" class="hidden"> -->
<div class="field"> <div class="field">
<strong><mx:text id="TxtMethodName"/> :</strong> <strong><mx:text id="TxtMethodName"/> :</strong>
<p><mx:text id="MethodName"/></p> <p><mx:text id="MethodName"/></p>
@ -24,5 +38,5 @@
<input type="submit" mXattribut="name:BtnYes" mXattribut="value:BtnYes" class="next"/> <input type="submit" mXattribut="name:BtnYes" mXattribut="value:BtnYes" class="next"/>
</div> </div>
</div> </div>
</form> <!-- </form> -->
</div> <!-- </div> -->

View File

@ -1,55 +1,49 @@
<script type="text/javascript">window.parent.document.title = "----------";</script> <ul class="nav container-fluid nav-tabs w-75 border-bottom-0">
<div class="tabe">
<ul>
<li id="startTabe" class="WindowTabeData"><a mXattribut="class:ClassTabeView">&nbsp;</a></li>
<mx:bloc id="TabeB"> <mx:bloc id="TabeB">
<li mXattribut="class:TabeView"> <li mXattribut="class:TabeView">
<a mXattribut="href:UrlTabeView" mXattribut="class:ClassTabeView"> <a mXattribut="href:UrlTabeView" mXattribut="class:ClassTabeView">
<i class="mr-1 fa fa-lg fa-<mx:text id="pictoTabe"/>"></i> <i class="mr-1 fa fa-lg fa-<mx:text id="pictoTabe"/>"></i>
<mx:text id="TabeNameView"/> <mx:text id="TabeNameView"/>
</a> </a>
</li> </li>
</mx:bloc id="TabeB"> </mx:bloc id="TabeB">
<li id="endTabe" class="WindowTabeData"><a mXattribut="class:ClassTabeView">&nbsp;</a></li> </ul>
</ul> <div class="tab-content container-fluid px-2 py-2 w-75 border">
</div> <ul class="nav container-fluid nav-tabs border-bottom-0">
<form id="configObject" method="post" mXattribut="action:urlAction">
<fieldset class="framebox">
<div class="box">
<!-- pour les infos courantes de l'interface -->
<!-- <div class="legend">
<h2><mx:text id="TabeBTabeNameView"/></h2>
<p><mx:text id="ObjectName"/> (<mx:text id="ObjectType"/>) <mx:text id="nbRight"/> <mx:text id="TxtNbRight"/></p>
</div> -->
<div class="tabe">
<ul>
<li id="startTabe" class="WindowTabeData"><a mXattribut="class:ClassTabeView">&nbsp;</a></li>
<mx:bloc id="TabeSecond"> <mx:bloc id="TabeSecond">
<li mXattribut="class:TabeView"><a mXattribut="href:UrlTabeView" mXattribut="class:ClassTabeView"><i class="mr-1 fa fa-lg fa-<mx:text id="pictoTabe"/>"></i><mx:text id="TabeNameView"/></a></li> <li mXattribut="class:TabeView">
<a mXattribut="href:UrlTabeView" mXattribut="class:ClassTabeView"><i class="mr-1 fa fa-lg fa-<mx:text id="pictoTabe"/>"></i><mx:text id="TabeNameView"/></a>
</li>
</mx:bloc id="TabeSecond"> </mx:bloc id="TabeSecond">
<li id="endTabe" class="WindowTabeData"><a mXattribut="class:ClassTabeView">&nbsp;</a></li> </ul>
</ul> <div class="tab-content container-fluid px-2 py-2 w-100 border">
</div> <form id="configObject" name="configObject" role="form" class="form text-center px-0" method="post" mXattribut="action:urlAction">
<div class="fieldset"> <input type="hidden" name="contentType" mXattribut="value:contentType" class="hidden"/>
<!-- <div class="legend"> <input type="hidden" name="objectId" mXattribut="value:objectId" class="hidden"/>
<mx:text id="deleteObject"/> <div class="card w-100 mb-0">
<mx:text id="ObjectName"/> <div class="card-header">
</div> --> <h3><mx:text id="deleteObject"/><mx:text id="ObjectName"/></h3>
<input type="hidden" name="contentType" mXattribut="value:contentType" class="hidden"/> </div>
<input type="hidden" name="objectId" mXattribut="value:objectId" class="hidden"/> <div class="card-title">
<div class="field"><strong><mx:text id="resumeLanguage"/> :</strong> <h3>#TODO: Details about tool deletion</h3>
<p><mx:text id="resumeValue" id="resume"/></p> </div>
</div> <div class="card-body">
<div class="field"><strong><mx:text id="keyword"/> :</strong> <div class="row mb-2">
<p><mx:text id="keyWordValue" id="keyword"/></p> <strong><mx:text id="resumeLanguage"/> :</strong>
</div> <div class="input-group col-xs-12 col-sm-8 col-lg-6 p-0 m-0">
<div class="action"> <mx:text id="resumeValue" id="resume"/>
<input type="button" name="return" value="<mx:text id="BtnNo"/>" class="back" onclick="javascript:window.location.href='<mx:text id="urlReturn"/>'"/> </div>
<input type="submit" name="BtnYes" mXattribut="value:BtnYes" class="next"/> <strong><mx:text id="keyword"/> :</strong>
<div class="input-group col-xs-12 col-sm-8 col-lg-6 p-0 m-0">
<mx:text id="keyWordValue" id="keyword"/>
</div>
</div>
</div>
<div class="card-footer border-0 bg-white text-center">
<input type="button" name="BtnReturn" class="btn btn-outline-secondary btn-lg btn-sm" aria-pressed="true" value="<mx:text id="BtnReturn"/>" onclick="history.back();"/>
<input type="submit" name="BtnValid" class="btn btn-outline-secondary btn-lg btn-sm" aria-pressed="true" mXattribut="value:BtnValid"/>
</div>
</div>
</form>
</div> </div>
</div> </div>
</div>
</fieldset>
</form>

View File

@ -1255,12 +1255,34 @@ Class AdminObject extends CoordinationObj
*/ */
function rightDeleteAdmin() function rightDeleteAdmin()
{ {
/* On inclus la template (voir package.template.php) */
withBlocPath("AdminObject", "rightDeleteAdmin");
/* Ajout du fichier AdminObject.ini pour les traductions */ /* Ajout du fichier AdminObject.ini pour les traductions */
addMessageFile("adminobject.ini"); addMessageFile("adminobject.ini");
addMessageFile("object.ini"); addMessageFile("object.ini");
/* gestion du lib en fonction de la langue courante */
$currentCode=$GLOBALS["SYSTEM_USER_SESSION"]->langue->getCode();
$defaultCode=$GLOBALS["SYSTEM_DEFAULT_LANGUAGE_CODE"];
/* -- fin récupération des codes par defaut */
mxPageTitle("");
// $arrayCallCss = array();
// $arrayCallCss[] = "data/css/dataTables.bootstrap4/1.10.22/dataTables.bootstrap4.min.css";
// $arrayCallCss[] = "data/css/bootstrap-toggle/2.2.2/bootstrap-toggle.min.css";
// mxCallCss($arrayCallCss);
//
// $arrayCallJs = array();
// $arrayCallJs[] = "data/javascript/jquery.dataTables/1.10.22/jquery.dataTables.min.js";
// $arrayCallJs[] = "data/javascript/dataTables.bootstrap4/1.10.22/dataTables.bootstrap4.min.js";
// $arrayCallJs[] = "data/javascript/bootstrap-toggle/2.2.2/bootstrap-toggle.min.js";
// mxCallJs($arrayCallJs);
//
// $arrayRawJs[] = "\$(document).ready(function(){\$(\"#tabAdminObject\").dataTable({\"bPaginate\": true,\"sPaginationType\":\"full_numbers\",\"bAutoWidth\": true,\"bSort\": true,\"aaSorting\": [[ 1, \"asc\" ]],\"iDisplayLength\": 10,\"aLengthMenu\": [[5, 10, 25, -1], [5, 10, 25, \"All\"]],\"oLanguage\":{\"sUrl\": \"data/message/".$currentCode."/datatables_adminobject.txt\"}});});";
// mxRawJs($arrayRawJs);
/* On inclus la template (voir package.template.php) */
withBlocPath("AdminObject", "rightDeleteAdmin");
$this->tabeCreate(); $this->tabeCreate();
/* Récuperation du radio sélectionné */ /* Récuperation du radio sélectionné */
@ -1295,11 +1317,6 @@ Class AdminObject extends CoordinationObj
/* Récupération des objets de la communautée dans SYSTEM_CONTROL */ /* Récupération des objets de la communautée dans SYSTEM_CONTROL */
$tabObject =$GLOBALS["SYSTEM_MANAGER"]["COORDINATION_OBJ"]->createInstanceFromNodeIds($arrayOfNodes); $tabObject =$GLOBALS["SYSTEM_MANAGER"]["COORDINATION_OBJ"]->createInstanceFromNodeIds($arrayOfNodes);
/* gestion du lib en fonction de la langue courante */
$currentCode=$GLOBALS["SYSTEM_USER_SESSION"]->langue->getCode();
$defaultCode=$GLOBALS["SYSTEM_DEFAULT_LANGUAGE_CODE"];
/* -- fin récupération des codes par defaut */
// Verification de l'administrabilitée de l'objets // Verification de l'administrabilitée de l'objets
$isValid=false; $isValid=false;
for ($i=0; $i<count($tabObject); $i++) for ($i=0; $i<count($tabObject); $i++)