diff --git a/application/modules/admin/views/scripts/accueil/kiosque.phtml b/application/modules/admin/views/scripts/accueil/kiosque.phtml index ca78aa9cab83d2bfcb187ea7693145c4fe2064a3..c8eeb7b20b4b5358dc412d445e4812f1e3986f8c 100644 --- a/application/modules/admin/views/scripts/accueil/kiosque.phtml +++ b/application/modules/admin/views/scripts/accueil/kiosque.phtml @@ -69,6 +69,16 @@ </span> </td> </tr> + + <tr> + <td class="droite">Vignettes </td> + <td class="gauche"><?php echo $this->formSelect("only_img", + $this->preferences["only_img"], + "", + ["0" => "Afficher le titre dans une image", + "1" => "Afficher les notices avec vignettes uniquement"]) ?></td> + </tr> + </table> </fieldset> <br /> diff --git a/tests/application/modules/admin/controllers/AccueilControllerTest.php b/tests/application/modules/admin/controllers/AccueilControllerTest.php index 1ac36a3b032c6f6d1818c252d411dd7be0f873ca..f965a603a5313ffb3d2787b446729987b7dfab62 100644 --- a/tests/application/modules/admin/controllers/AccueilControllerTest.php +++ b/tests/application/modules/admin/controllers/AccueilControllerTest.php @@ -636,6 +636,13 @@ class AccueilControllerConfigBoiteKiosqueProfilLognesAsAdminPortailTest extends public function selectStyleListeShouldContainsOptGroupObjetsHTMLChrono() { $this->assertXPathContentContains('//select[@name="style_liste"]//option[@value="chrono"]', 'Frise'); } + + + /** @test */ + public function selectOnlyImgShouldBeOnAfficheNoticesAvecVignettes() { + $this->assertXPathContentContains('//select[@name="only_img"]/option[@value="1"][@selected="selected"]', + 'Afficher les notices avec vignettes uniquement'); + } }