Skip to content
Snippets Groups Projects
Commit 45c1ada6 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

Merge branch...

Merge branch 'hotline#140431_modifier_le_texte_pour_l_upload_des_vignettes_pour_ajouter_le_format_webp' into 'hotline'

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

See merge request !4181
parents 588cf1b4 b353d5a3
Branches
Tags
3 merge requests!4186Master,!4185Hotline,!4181hotline#140431 : Adding Webp format to explanation text for thumbnail upload
Pipeline #14559 failed with stage
in 1 hour, 15 minutes, and 9 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>
......
......@@ -70,6 +70,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