view.ctp 2.47 KB

<div class="configurations view">
    <h2>Configuration générale de l'application</h2>
    <table style="margin-bottom: 30px;">
    
    <?php 
    echo $this->Html->link(__('<i class="icon-pencil"></i> Editer la configuration'),
    		['action' => 'edit', $configuration->id],
    		['escape' => false,'onclick' => 'return true;']
    		);
    
    if(h($configuration->mode_install) == 1) {
    	$install="Oui";
    }else {
    	$install="Non";
    }
    $displayElement(__('Mode install'), $install);
    
    if(h($configuration->mode_debug) == 1) {
    	$debug="Oui";
    }else {
    	$debug="Non";
    }
    $displayElement(__('Mode debug'), $debug);
    
    if(h($configuration->hasPrinter) == 1) {
    	$print="Oui";
    }else {
    	$print="Non";
    }
    $displayElement(__('Imprimante disponible'), $print);
    
    if(h($configuration->use_ldap) == 1) {
    	$ldap="Oui";
    }else {
    	$ldap="Non";
    }
    $displayElement(__('Utilisation du LDAP'), $ldap);
    
    if ($configuration->use_ldap):
    $displayElement(__('Host du LDAP'), h($configuration->host_ldap));
    $displayElement(__('Port du LDAP'), h($configuration->port_ldap));
    $displayElement(__('Type d\'authentification du LDAP'), h($configuration->authentificationType_ldap));
    $displayElement(__('Base DN du LDAP'), h($configuration->baseDn_ldap));
    $displayElement(__('Filtre du LDAP'), h($configuration->filter_ldap));
    endif;
    
    $displayElement(__('Nom complet du Labo'), h($configuration->labName));
    $displayElement(__('Nom court du Labo'), h($configuration->labNameShort));
    $displayElement(__('Liaison présentation nom du Labo'), h($configuration->labPresent));
    $displayElement(__('UMR du Labo'), h($configuration->labUmr));

    $displayElement(__('Label groupe thématique'), h($configuration->nom_groupe_thematique));
    $displayElement(__('Label groupe métier'), h($configuration->nom_groupe_metier));
    $displayElement(__('Label propriétaire d\'un objet métier'), h($configuration->nom_responsable));
    
    $displayElement(__('Mail guest 1'), h($configuration->emailGuest1));
    $displayElement(__('Mail guest 2'), h($configuration->emailGuest2));
    $displayElement(__('Mail guest 3'), h($configuration->emailGuest3));
    $displayElement(__('Mail guest 4'), h($configuration->emailGuest4));
    $displayElement(__('Mail guest 5'), h($configuration->emailGuest5));
    
    ?>
        
        
    </table>
</div>

   <div class="actions">
		<?php echo $this->element('menu') ?>
		</div>