Commit 455bcd1af249b9ddbb61e7f4e466c81c6a1f4085
1 parent
d3113015
Exists in
master
and in
3 other branches
bugfix boutons sur vue materiels/index pour profil admin ("valider les
matériels cochés", "exporter...")
Showing
1 changed file
with
18 additions
and
13 deletions
Show diff stats
src/Template/Materiels/index.ctp
... | ... | @@ -99,27 +99,32 @@ if (isset ( $STATUS )) { |
99 | 99 | ]); |
100 | 100 | } |
101 | 101 | } |
102 | - | |
102 | +?> | |
103 | +</div> | |
104 | + | |
105 | +<?php | |
103 | 106 | // Rajouté par Thibault Ajas, 20/04/2017 |
104 | - echo $this->Form->create(); | |
107 | + echo $this->Form->create('materiels', ['url' => '/materiels/execActions']); | |
108 | + | |
109 | + ///$form1 = $this->Form; | |
110 | + ///echo $form1->create('nbelem_par_page'); | |
111 | + //echo $this->Form->create('nbelem_par_page'); | |
105 | 112 | echo $this->Form->input('aff_par_defaut', [ |
113 | + ///echo $form1->input('aff_par_defaut', [ | |
106 | 114 | 'label' => 'Afficher', |
107 | 115 | 'options' => ['20'=> 20, '30'=>30, '50'=>50, '100'=>100, '150'=>150, '200'=>200], |
108 | 116 | ]); |
109 | - $this->Form->end(); | |
117 | + ///$this->Form->end(); | |
118 | + ///$form1->end(); | |
110 | 119 | // Fin ajout |
111 | 120 | ?> |
112 | -</div> | |
113 | 121 | |
114 | -<?php if ($nbMateriels != 0) { ?> | |
115 | - | |
116 | -<?= $this->Form->create('materiels', ['url' => '/materiels/execActions']) ?> | |
117 | - | |
118 | - <?php if(isset($STATUS)) { | |
119 | - echo $this->Form->hidden ( 'what', ['value' => $STATUS]); | |
120 | - } | |
121 | - ?> | |
122 | - | |
122 | +<?php | |
123 | +if ($nbMateriels > 0) { | |
124 | + //$form2 = $this->Form; | |
125 | + ///echo $this->Form->create('materiels', ['url' => '/materiels/execActions']); | |
126 | + if(isset($STATUS)) echo $this->Form->hidden ( 'what', ['value' => $STATUS]); | |
127 | +?> | |
123 | 128 | <table style="border-collapse: separate; border-spacing: 0;"> |
124 | 129 | <thead> |
125 | 130 | <tr> | ... | ... |