Bonjour à tous,
Je rencontre un problème avec tag input du htmlhelper
Mon code me semble bon, je ne vois pas de soucis particulier dans la source et pourtant l'affichage est incohérent : le contenu des input s'affichent en dehors des input
Mon code :
La source générée :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30 <p class='retour'><?php echo $html->link('Retour vers la liste des intervenants', '/intervenants/index'); ?></p> <?php echo $html->tagErrorMsg('Intervenant/nom', 'Le nom de l\'intervenant est obligatoire.'); echo $html->tagErrorMsg('Intervenant/telephone', 'Le téléphone de l\'intervenant est obligatoire.'); echo $html->tagErrorMsg('Intervenant/email', 'L\'email de l\'intervenant n\'est pas correct.'); echo $html->formTag('/intervenants/update/'.$this->data['Intervenant']['id'].'', 'POST'); ?> <table id='view'> <tr> <td class='titre_v'>Nom</td> <td><?php echo $html->input('Intervenant/nom'); ?></td> </tr> <tr> <td class='titre_v'>Téléphone</td> <td><?php echo $html->input('Intervenant/telephone'); ?></td> </tr> <tr> <td class='titre_v'>Email</td> <td><?php echo $html->input('Intervenant/email'); ?></td> </tr> <tr> <td colspan='2' class='form_btn'><?php echo $html->submit('Modifier'); ?></td> </tr> </table> </form>
Ce que ça me donne :<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Application Client</title>
<link rel="icon" href="/appli_client/app/webroot/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="/appli_client/app/webroot/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="/appli_client/app/webroot/css/ac.css" /></head>
<body>
<div id='ac_titre'>Application Client</div>
<div id="container">
<div id="content">
<p class='retour'><a href="/appli_client/index.php/intervenants/index" >Retour vers la liste des intervenants</a></p>
<form action="/appli_client/index.php/intervenants/update/1" method="post">
<table id='view'>
<tr>
<td class='titre_v'>Nom</td>
<td><input name="data[Intervenant][nom]" value="toto" type="text" id="IntervenantNom" /></td>
</tr>
<tr>
<td class='titre_v'>Téléphone</td>
<td><input name="data[Intervenant][telephone]" value="00000000" type="text" id="IntervenantTelephone" /></td>
</tr>
<tr>
<td class='titre_v'>Email</td>
<td><input name="data[Intervenant][email]" value="email@email.com" type="text" id="IntervenantEmail" /></td>
</tr>
<tr>
<td colspan='2' class='form_btn'><input type="submit" value="Modifier" /></td>
</tr>
</table>
</form> </div>
</div>
</body>
</html>
Le plus étrange c'est que si je reactualise, certaines fois tout devient normal puis je reactulaise et le contenu ressort de l'input...
Je ne comprends pas
Partager