From 200887520a68bd8e47fbdc689fc14bd854675d39 Mon Sep 17 00:00:00 2001 From: pbarroca <pbarroca@afi-sa.fr> Date: Fri, 24 Jul 2015 14:30:37 +0200 Subject: [PATCH] rel #27194 tabs to spaces --- .../views/scripts/accueil/add-block.phtml | 44 +++++++++---------- .../View/Helper/Admin/ComboModuleAccueil.php | 32 +++++++------- 2 files changed, 38 insertions(+), 38 deletions(-) diff --git a/application/modules/admin/views/scripts/accueil/add-block.phtml b/application/modules/admin/views/scripts/accueil/add-block.phtml index f74ad90bf7f..bde0df0743f 100644 --- a/application/modules/admin/views/scripts/accueil/add-block.phtml +++ b/application/modules/admin/views/scripts/accueil/add-block.phtml @@ -1,25 +1,25 @@ <center> - <h1><?php echo $this->_('Ajouter une boîte');?></h1><br> - <div class="formTable"> - <form method="post" action="<?php echo $this->url ?>"> - <fieldset> - <legend><?php echo $this->_('Généralités');?></legend> - <table cellspacing="2"> - <tr> - <td class="droite"><?php echo $this->_('Type de boîte');?> </td> - <td class="gauche"><?php echo $this->comboModuleAccueil($this->profil); ?></td> - </tr> - <tr> - <td class="droite"><?php echo $this->_('Titre');?> </td> - <td class="gauche"><input type="text" name="titre" size="50" maxlength="60" value="** Nouvelle boîte **"></td> - </tr> - <tr> - <td class="droite"><?php echo $this->_('Style de boite');?> </td> - <td class="gauche"><?php echo $this->combo_templates; ?></td> - </tr> - </table> - </fieldset> - <?php echo $this->formSubmit('', $this->_('Valider'), ["class" => "bouton"]); ?> - </form> + <h1><?php echo $this->_('Ajouter une boîte');?></h1><br> + <div class="formTable"> + <form method="post" action="<?php echo $this->url ?>"> + <fieldset> + <legend><?php echo $this->_('Généralités');?></legend> + <table cellspacing="2"> + <tr> + <td class="droite"><?php echo $this->_('Type de boîte');?> </td> + <td class="gauche"><?php echo $this->comboModuleAccueil($this->profil); ?></td> + </tr> + <tr> + <td class="droite"><?php echo $this->_('Titre');?> </td> + <td class="gauche"><input type="text" name="titre" size="50" maxlength="60" value="** Nouvelle boîte **"></td> + </tr> + <tr> + <td class="droite"><?php echo $this->_('Style de boite');?> </td> + <td class="gauche"><?php echo $this->combo_templates; ?></td> + </tr> + </table> + </fieldset> + <?php echo $this->formSubmit('', $this->_('Valider'), ["class" => "bouton"]); ?> + </form> </div> </center> diff --git a/library/ZendAfi/View/Helper/Admin/ComboModuleAccueil.php b/library/ZendAfi/View/Helper/Admin/ComboModuleAccueil.php index ad4ce9a2648..0d0bc1ae451 100644 --- a/library/ZendAfi/View/Helper/Admin/ComboModuleAccueil.php +++ b/library/ZendAfi/View/Helper/Admin/ComboModuleAccueil.php @@ -21,25 +21,25 @@ class ZendAfi_View_Helper_Admin_ComboModuleAccueil - extends ZendAfi_View_Helper_BaseHelper{ + extends ZendAfi_View_Helper_BaseHelper{ - public function comboModuleAccueil($profil) { - $modules_accueil = Class_Systeme_ModulesAccueil::getInstance(); - $modules = $modules_accueil->getModules(); - $groupes = $modules_accueil->getGroupes(); + public function comboModuleAccueil($profil) { + $modules_accueil = Class_Systeme_ModulesAccueil::getInstance(); + $modules = $modules_accueil->getModules(); + $groupes = $modules_accueil->getGroupes(); - $hierarchy = []; - foreach($modules as $type => $module) { - if (!$module->isVisibleForProfil($profil)) - continue; + $hierarchy = []; + foreach($modules as $type => $module) { + if (!$module->isVisibleForProfil($profil)) + continue; - $group_label = $groupes[$module->getGroup()]; - if (!array_key_exists($group_label, $hierarchy)) - $hierarchy[$group_label] = []; + $group_label = $groupes[$module->getGroup()]; + if (!array_key_exists($group_label, $hierarchy)) + $hierarchy[$group_label] = []; - $hierarchy[$group_label][$type] = $module->getLibelle(); - } + $hierarchy[$group_label][$type] = $module->getLibelle(); + } - return $this->view->formSelect('module_type', null, null, $hierarchy); - } + return $this->view->formSelect('module_type', null, null, $hierarchy); + } } \ No newline at end of file -- GitLab