edit.ctp 5.6 KB
<div class="configurations form">
    <?= $this->Form->create($configurationObj) ?>
    
        <h2><i class="icon-edit"></i> Editer la configuration</h2>
        
    <fieldset>
        <?php
        echo '<h3 id="t_informations" style="cursor: pointer;">';
        echo '<i class="icon-chevron-down" style="font-size: 14px;" id="i_informations"></i>';
        echo '<span style="text-decoration: underline;">Modes</span>';
        echo '</h3>';
        echo '<div id="informations" style="margin-bottom: 20px;">';
        	echo $this->Form->input('mode_install');
        	echo $this->Form->input('mode_debug');
        echo '</div>';
         
         
        echo '<h3 id="t_informations_admin" style="cursor: pointer;">';
        echo '<i class="icon-chevron-down" style="font-size: 14px;" id="i_informations_admin"></i>';
        echo '<span style="text-decoration: underline;">Laboratoire</span>';
        echo '</h3>';
        echo '<div id="informations_admin" style="margin-bottom: 20px;">';
        	echo $this->Form->input('labName', ['label' => 'Nom complet du Labo']);
        	echo $this->Form->input('labNameShort', ['label' => 'Nom court du Labo']);
        	echo $this->Form->input('labPresent', ['label' => 'Liaison présentation nom du Labo']);
        	echo $this->Form->input('labUmr', ['label' => 'UMR du Labo']);
        echo '</div>';
        
         
        echo '<h3 id="t_suivis" style="cursor: pointer;">';
        echo '<i class="icon-chevron-down" style="font-size: 14px;" id="i_suivis"></i>';
        echo '<span style="text-decoration: underline;">Divers</span>';
        echo '</h3>';
        echo '<div id="suivis" style="margin-bottom: 20px;">';
        	echo $this->Form->input('hasPrinter', ['label' => 'Imprimante disponible']);
        	
        	echo $this->Form->input('numero_labo_sans_annee', ['label' => 'Numero labo sans année']);
        	echo $this->Form->input('date_commande_facultative', ['label' => 'Champ date commande non obligatoire']);
        	
        	echo $this->Form->input('prix_inventaire_administratif', ['label' => 'Seuil (prix) Matériel administratif']);
        	echo $this->Form->input('taille_max_doc', ['label' => 'Taille max documents (octets)']);
        	
        	echo $this->Form->input('nom_groupe_thematique', ['label' => 'Label groupe thématique']);
        	echo $this->Form->input('nom_groupe_metier', ['label' => 'Label groupe métier']);


        echo '</div>';
        
        
        echo '<h3 id="t_emprunts" style="cursor: pointer;">';
        echo '<i class="icon-chevron-down" style="font-size: 14px;" id="i_emprunts"></i>';
        echo '<span style="text-decoration: underline;">Emails</span>';
        echo '</h3>';
        echo '<div id="emprunts" style="margin-bottom: 20px;">';
        	echo $this->Form->input('envoi_mail_management_dev', ['label' => 'Ne pas envoyer les mails de management']);
        	echo $this->Form->input('sender_mail', ['label' => 'Attribut "sender" (mail)']);
        	echo $this->Form->input('emailGuest1', ['label' => 'Mail guest 1']);
        	echo $this->Form->input('emailGuest2', ['label' => 'Mail guest 2']);
        	echo $this->Form->input('emailGuest3', ['label' => 'Mail guest 3']);
        	echo $this->Form->input('emailGuest4', ['label' => 'Mail guest 4']);
        	echo $this->Form->input('emailGuest5', ['label' => 'Mail guest 5']);
       		echo $this->Form->input('emailGuest6', ['label' => 'Mail guest 6']);
        	echo $this->Form->input('emailGuest7', ['label' => 'Mail guest 7']);
        	echo $this->Form->input('emailGuest8', ['label' => 'Mail guest 8']);
        	echo $this->Form->input('emailGuest9', ['label' => 'Mail guest 9']);
        	echo $this->Form->input('emailGuest10', ['label' => 'Mail guest 10']);        	
        echo '</div>';
        
        
        echo '<h3 id="t_fichiers" style="cursor: pointer;">';
        echo '<i class="icon-chevron-down" style="font-size: 14px;" id="i_fichiers"></i>';
        echo '<span style="text-decoration: underline;">LDAP</span>';
        echo '</h3>';
        echo '<div id="fichiers" style="margin-bottom: 20px;">';
        	echo $this->Form->input('use_ldap', ['label' => 'Utilisation du LDAP', 'onchange' => 'display_ldap();']);
        	echo '<div id="ldap" style="border-top: 1px solid #CCC; border-bottom: 1px solid #CCC; margin-bottom: 0; background: #EEE; '.$disp.'">';
        		echo $this->Form->input('host_ldap', ['label' => 'Host du LDAP']);
        		echo $this->Form->input('port_ldap', ['label' => 'Port du LDAP']);
        		echo $this->Form->input('authentificationType_ldap', ['label' => 'Type d\'authentification du LDAP']);
        		echo $this->Form->input('baseDn_ldap', ['label' => 'Base DN du LDAP']);
        		echo $this->Form->input('filter_ldap', ['label' => 'Filtre du LDAP']);
        	echo '</div>';
        echo '</div>';
        
//         echo '<h3 id="t_fichiers" style="cursor: pointer;">';
//         echo '<i class="icon-chevron-down" style="font-size: 14px;" id="i_fichiers"></i>';
//         echo '<span style="text-decoration: underline;">LDAP</span>';
//         echo '</h3>';
//         echo '<div id="fichiers" style="margin-bottom: 20px;">';
//         echo $this->Form->input('Nobre de materiels affichés par défaut :',
//         		['options' => ['20'=> 20, '30'=>30, '50'=>50, '100'=>100, '150'=>150, '200'=>200]
//         ]);
//         echo '</div>';
//         echo '</div>';
        
        
        ?>
    </fieldset>
    <?= $this->Form->submit(__('Valider')) ?>
    <?= $this->Form->end() ?>
</div>


<div class="actions">
	<?php 
		echo $this->element('menu');
		echo $this->element('menu_form', [ 'pluralHumanName' => 'Configuration générale' ]);
	?>
</div>