Commit 2792dbaea11997d8ea91389a6e7c8361d5c2b486
1 parent
b626dc93
Exists in
master
and in
3 other branches
bugfix pagination (css)
Showing
3 changed files
with
57 additions
and
3 deletions
Show diff stats
src/Template/Layout/default.ctp
... | ... | @@ -28,6 +28,7 @@ $cakeDescription = 'Labinvent 2'; |
28 | 28 | <?=$cakeDescription?> |
29 | 29 | </title> |
30 | 30 | <?=$this->Html->meta('icon')?> |
31 | + <?//ajout EP pour tester: =$this->Html->css('cake')?> | |
31 | 32 | <?=$this->Html->css('inventirap')?> |
32 | 33 | <?=$this->Html->css('font-awesome')?> |
33 | 34 | <?=$this->Html->script('jquery.min')?> | ... | ... |
src/Template/Materiels/index.ctp
... | ... | @@ -281,7 +281,12 @@ if ($nbMateriels > 0) { |
281 | 281 | endif; |
282 | 282 | |
283 | 283 | ?> |
284 | - | |
284 | + | |
285 | + <!-- La façon cakephp 3.4 avec cake.css: | |
286 | + <div class="paginator"> | |
287 | + <ul class="pagination"> | |
288 | + --> | |
289 | + <!-- La façon inventirap.css --> | |
285 | 290 | <div class="paging" style="color: black;"> |
286 | 291 | <?= $this->Paginator->counter(['format' => 'Page {{page}} sur {{pages}}']) ?> |
287 | 292 | <?= $this->Paginator->first('<< ' . __(''), ['class' => 'prev']) ?> |
... | ... | @@ -290,6 +295,7 @@ if ($nbMateriels > 0) { |
290 | 295 | <?= $this->Paginator->next(__('') . ' >', ['class' => 'next disabled']) ?> |
291 | 296 | <?= $this->Paginator->last(__('') . ' >>', ['class' => 'next']) ?> |
292 | 297 | </div> |
298 | + | |
293 | 299 | <?= $this->Form->end()?> |
294 | 300 | <?php |
295 | 301 | } else { echo 'Aucun matériel'; } | ... | ... |
webroot/css/inventirap.css
... | ... | @@ -56,6 +56,7 @@ h5 { |
56 | 56 | ul, li { |
57 | 57 | margin: 0 12px; |
58 | 58 | } |
59 | + | |
59 | 60 | p { |
60 | 61 | margin: 0 0 1em 0; |
61 | 62 | } |
... | ... | @@ -214,7 +215,8 @@ table.survol tbody tr:hover { |
214 | 215 | color:#fff; |
215 | 216 | } |
216 | 217 | |
217 | -/** Paging **/ | |
218 | +/** Paging Ancien Cakephp <= 3.2 **/ | |
219 | +/* | |
218 | 220 | .paging { |
219 | 221 | background:#fff; |
220 | 222 | color: #ccc; |
... | ... | @@ -257,6 +259,52 @@ table.survol tbody tr:hover { |
257 | 259 | background: #efefef; |
258 | 260 | color: #c73e14; |
259 | 261 | } |
262 | +*/ | |
263 | + | |
264 | +/** Paging Cakephp >= 3.4 **/ | |
265 | +.paging { | |
266 | + background:#fff; | |
267 | + color: #ccc; | |
268 | + margin-top: 1em; | |
269 | + clear:both; | |
270 | +} | |
271 | +.paging .current, | |
272 | +.paging .disabled, | |
273 | +.paging a { | |
274 | + text-decoration: none; | |
275 | + padding: 5px 8px; | |
276 | + display: inline-block | |
277 | +} | |
278 | +.paging > li { | |
279 | + display: inline-block; | |
280 | + border: 1px solid #ccc; | |
281 | + border-left: 0; | |
282 | +} | |
283 | +.paging > li:hover { | |
284 | + background: #efefef; | |
285 | +} | |
286 | +.paging .prev { | |
287 | + border-left: 1px solid #ccc; | |
288 | + -moz-border-radius: 4px 0 0 4px; | |
289 | + -webkit-border-radius: 4px 0 0 4px; | |
290 | + border-radius: 4px 0 0 4px; | |
291 | +} | |
292 | +.paging .next { | |
293 | + -moz-border-radius: 0 4px 4px 0; | |
294 | + -webkit-border-radius: 0 4px 4px 0; | |
295 | + border-radius: 0 4px 4px 0; | |
296 | +} | |
297 | +.paging .disabled { | |
298 | + color: #ddd; | |
299 | +} | |
300 | +.paging .disabled:hover { | |
301 | + background: transparent; | |
302 | +} | |
303 | +.paging .current { | |
304 | + background: #efefef; | |
305 | + color: #c73e14; | |
306 | +} | |
307 | + | |
260 | 308 | |
261 | 309 | /** Scaffold View **/ |
262 | 310 | dl { |
... | ... | @@ -820,4 +868,3 @@ textarea { |
820 | 868 | .A{ |
821 | 869 | margin-bottom: 0px; |
822 | 870 | } |
823 | - | ... | ... |