Zend FR

Consultez la FAQ sur le ZF avant de poster une question

Vous n'êtes pas identifié.

#1 07-06-2009 10:52:21

gedeon555
Membre
Date d'inscription: 02-06-2009
Messages: 18

[Résolu] Comment décorer mes subForm ?

Bonjour, je souhaiterais obtenir un formulaire de ce genre :

Code:

<form>
  <table>
    <tr>
      <th>Champ 1</th>
      <td><input type="text" name="Champ 1" /></td>
    </tr>
  </table>

  <fieldset>
    <legend>Group</legend>
    <table>
      <tr>
        <th>Group Champ 1</th>
        <td><input type="text" name="Group Champ 1" /></td>
      </tr>
      <tr>
        <th>Group Champ 2</th>
        <td><input type="text" name="Group Champ 2" /></td>
      </tr>
    </table>
  </fieldset>

  <table>
    <tr>
      <th>Champ 2</th>
      <td><input type="text" name="Champ 2" /></td>
    </tr>
  </table>
</form>

Je n'y arrive pas et j'ai pas mal cherché sur le net. Voici mes décorateurs actuels :

Code:

Form: array(
            'FormElements',
            array('HtmlTag', array('tag' => 'table')),
            'Form',
        )

Element: array(
        'ViewHelper',
        'Errors',
        array(array('data' => 'HtmlTag'), array('tag' => 'td')),
        array('Label', array('tag' => 'th')),
        array(array('row' => 'HtmlTag'), array('tag' => 'tr')),
    )

SubForm: array(
        'FormElements',
        array('HtmlTag', array('tag' => 'table')),
        'Fieldset',
    )

Dernière modification par gedeon555 (07-06-2009 14:06:57)

Hors ligne

 

#2 07-06-2009 14:06:35

gedeon555
Membre
Date d'inscription: 02-06-2009
Messages: 18

Re: [Résolu] Comment décorer mes subForm ?

Bon ben c'est ok, j'ai tout mis dans des displayGroup et le tag 'table' ,c'est sur chaque displayGroups que je l'ai setté. C'était tellement évident

Hors ligne

 

Pied de page des forums

Propulsé par PunBB
© Copyright 2002–2005 Rickard Andersson
Traduction par punbb.fr

Graphisme réalisé par l'agence Rodolphe Eveilleau
Développement par Kitpages