Commit 3a332ab6 authored by tguillon's avatar tguillon
Browse files

Correction des fonction deprecier

parent 22c9ad98
......@@ -97,10 +97,6 @@ class DroitsComponent extends Component {
* @version V1.0.0
*/
public function isCil() {
debug($this->Session->read('Organisation'));
debug($this->Session->read('Auth.User.id'));
if ($this->Session->read('Organisation.cil') != null) {
if ($this->Session->read('Organisation.cil') == $this->Session->read('Auth.User.id')) {
return true;
......
......@@ -83,14 +83,6 @@ class NormesController extends AppController {
$normes = $this->paginate('Norme');
$this->set('normes', $normes);
// $fields = ['norme', 'numero'];
// $numeros = $this->Norme->find('all', ['fields' => $fields, 'group' => $fields, 'order' => $fields]);
// $normes_numeros = Hash::combine($numeros, '{n}.Norme.numero', '{n}.Norme.numero', '{n}.Norme.norme');
// debug($normes_numeros);
// $numeros = Hash::combine($numeros, '{n}.Norme.numero', '{n}.Norme.numero');
// ksort($numeros);
// debug($numeros);
$fields = ['numero'];
$numeros = $this->Norme->find('all', ['fields' => $fields, 'group' => $fields, 'order' => $fields]);
$numeros = Hash::combine($numeros, '{n}.Norme.numero', '{n}.Norme.numero');
......
......@@ -173,7 +173,7 @@
// echo $this->WebcilForm->end();
echo $this->Form->create('Formulaire', [
'action' => 'add',
'url' => 'add',
'id' => 'addForm'
]);
......
......@@ -197,7 +197,7 @@
<div class="modal-body">
<?php
//pop-up de création de formulaire
echo $this->Form->create('Formulaire', ['action' => 'addFirst']);
echo $this->Form->create('Formulaire', ['url' => 'addFirst']);
echo '<div class="row form-group">';
//champ nom du formulaire *
echo $this->Form->input('libelle', [
......
......@@ -142,7 +142,7 @@
<div class="col-md-12">
<?php
echo $this->Form->create('modeleExtraitRegistre', [
'action' => 'add',
'url' => 'add',
'class' => 'form-horizontal',
'type' => 'file'
]);
......
......@@ -149,7 +149,7 @@ if (!empty($modeles)) {
<div class="col-md-12">
<?php
echo $this->Form->create('Modele', [
'action' => 'add',
'url' => 'add',
'class' => 'form-horizontal',
'type' => 'file'
]);
......
......@@ -90,9 +90,7 @@
'div' => 'input-group inputsForm',
'type' => 'file',
'class' => 'filestyle',
//'data-iconName' => "fa fa-folder-open fa-lg",
'data-buttonText' => __d('organisation', 'organisation.btnLogo'),
//'data-buttonName' => "btn btn-default-primary",
'data-buttonBefore' => 'true',
'label' => [
'text' => false
......
Supports Markdown
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