Skip to content
Snippets Groups Projects
Commit b353d5a3 authored by Henri-Damien LAURENT's avatar Henri-Damien LAURENT
Browse files

hotline#140431 : Adding Webp format to explanation text for thumbnail upload

parent fd0d10c1
Branches
Tags
3 merge requests!4186Master,!4185Hotline,!4181hotline#140431 : Adding Webp format to explanation text for thumbnail upload
Pipeline #14553 passed with stage
in 50 minutes and 4 seconds
- ticket #140431 : Affichage : modifier le texte pour l'upload des vignettes pour ajouter le format webp
\ No newline at end of file
......@@ -6,7 +6,7 @@ echo $this->renderForm($this->form);
<img class="patience" style="display:none; margin: 0 auto" src="<?php echo URL_ADMIN_IMG ?>patience.gif" border="0" alt="'.$this->_('Chargement en cours').'" />
<div style="text-align: center; margin-top: 10px">
<p><?php echo $this->_("Préférez une image de résolution comprise entre 320x240 et 800x600 au format jpg, png ou gif."); ?></p>
<p><?php echo $this->_("Préférez une image de résolution comprise entre 320x240 et 800x600 au format jpg, png, gif ou webp."); ?></p>
<p><?php echo $this->_('Aperçu:') ?></p>
<img class="preview" width="150px" style="display:block; margin: 0px auto" src="<?php echo $this->url_vignette ?>"/>
</div>
......
......@@ -68,6 +68,24 @@ abstract class RecordsControllerTestCase extends Admin_AbstractControllerTestCas
class RecordsControllerThumbnailEditTest extends RecordsControllerTestCase {
public function setUp() {
parent::setUp();
$this->dispatch('/admin/records/thumbnail/id/12345', true);
}
/** @test */
public function explanationTextShouldContainsJpegPngGifWebp() {
$this->assertContains('résolution comprise entre 320x240 et 800x600 au format jpg, png, gif ou webp.',
$this->_response->getBody());
}
}
class RecordsControllerResetThumbnailTest extends RecordsControllerTestCase {
public function setUp() {
parent::setUp();
......
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