echo $this->Form->create('Administrator');
echo $this->Form->input('login', array('name' => 'login'));
echo $this->Form->input('pass', array('name' => 'pass'));
-echo $this->Form->end("Login");
+echo $this->Form->end("Register");
?>
<h1>Ajout d'une instance applicative</h1>
<?php
echo $this->Form->create('Appliance');
-echo $this->Form->input('reference');
+echo $this->Form->input('reference', array('label' => "Référence d'instance"));
// TO-DO : LINK TO THE RIGHT PRODUCT AND CHANGE VERSIONS ACCORDINGLY
-echo $this->Form->input('internal_fqdn');
-echo $this->Form->input('external_fqdn');
-echo $this->Form->input('manager');
+echo $this->Form->input('internal_fqdn', array('label' => "FQDN interne"));
+echo $this->Form->input('external_fqdn', array('label' => "FQDN externe"));
+/*echo $this->Form->input('manager', array('label' => "Exploitant"));*/
echo $this->Form->end("Enregistrer l'instance applicative");
?>
\ No newline at end of file
<?php
echo $this->Form->create('Appliance');
// TO-DO : DISPLAY AND EDIT PRODUCT LINKED TO THIS APPLIANCE
-echo $this->Form->input('reference');
+echo $this->Form->input('reference', array('label' => "Référence d'instance"));
if(isset($possibleVersions)) {
echo $this->Form->input('version', array('options' => $possibleVersions));
}
-echo $this->Form->input('internal_fqdn');
-echo $this->Form->input('external_fqdn');
-echo $this->Form->input('os');
-echo $this->Form->input('manager');
-echo $this->Form->input('maintained', array('type' => 'radio', 'options' => array('0' => 'Faux', '1' => 'Vrai')));
-echo $this->Form->input('disc_infos');
+echo $this->Form->input('internal_fqdn', array('label' => "FQDN interne"));
+echo $this->Form->input('external_fqdn', array('label' => "FQDN externe"));
+echo $this->Form->input('os', array('label' => "Système"));
+/*echo $this->Form->input('manager', array('label' => "Exploitant"));*/
+echo $this->Form->input('maintained', array('legend' => "Maintien de l'instance", 'type' => 'radio', 'options' => array('0' => 'Désactivé', '1' => 'Activé')));
+echo $this->Form->input('disc_infos', array('label' => "Information disques"));
echo $this->Form->input('id', array('type' => 'hidden'));
echo $this->Form->end("Mettre à jour l'instance applicative");
?>
\ No newline at end of file
<h1>Ajout d'un exploitant</h1>
<?php
echo $this->Form->create('Manager');
- echo $this->Form->input('name');
- echo $this->Form->input('ap_id');
+ echo $this->Form->input('name', array('label' => "Nom"));
+ echo $this->Form->input('ap_id', array('label' => "Identifiant AP", 'type' => 'text'));
// TO-DO : DISPLAY APPLIANCES LIST THAT CAN BE LINKED TO THIS MANAGER
echo $this->Form->end("Enregistrer l'exploitant");
?>
\ No newline at end of file
<h1>Ajout d'un produit</h1>
<?php
echo $this->Form->create('Product');
-echo $this->Form->input('name');
+echo $this->Form->input('name', array('label' => "Nom"));
echo $this->Form->end("Enregistrer le produit");
?>
\ No newline at end of file
<h1>Editer le produit</h1>
<?php
echo $this->Form->create('Product');
-echo $this->Form->input('name');
+echo $this->Form->input('name', array('label' => "Nom"));
echo $this->Form->input('id', array('type' => 'hidden'));
echo $this->Form->end("Mettre à jour le produit");
?>
\ No newline at end of file
<h1>Ajout d'une version</h1>
<?php
echo $this->Form->create('Version');
-echo $this->Form->input('value');
-echo $this->Form->input('nature', array('options' => array('patch' => 'Patch', 'majmin' => 'Mise à jour mineure', 'majmaj' => 'Mise à jour majeure')));
+echo $this->Form->input('value', array('label' => "Valeur"));
+echo $this->Form->input('nature', array('legend' => 'Type', 'options' => array('patch' => 'Patch', 'majmin' => 'Mise à jour mineure', 'majmaj' => 'Mise à jour majeure')));
if(isset($product)) {
echo 'Produit : '.$product['Product']['name'];
- echo $this->Form->input('product', array('type' => 'hidden', 'value' => $product['Product']['id']));
+ echo $this->Form->input('product', array('label' => 'Produit', 'type' => 'hidden', 'value' => $product['Product']['id']));
} else if (isset($products)) {
$options = array();
foreach($products as $product) {
<h1>Editer la version</h1>
<?php
echo $this->Form->create('Version');
-echo $this->Form->input('value');
+echo $this->Form->input('value', array('label' => "Valeur"));
echo $this->Form->input('id', array('type' => 'hidden'));
echo $this->Form->end("Mettre à jour la version");
?>
\ No newline at end of file
HTTP/1.1 200 OK
-Date: Tue, 12 May 2015 10:07:15 GMT
+Date: Mon, 18 May 2015 14:46:17 GMT
Server: Apache/2.4.7 (Ubuntu)
X-Powered-By: PHP/5.5.9-1ubuntu4.9
Access-Control-Allow-Origin: *