public function getHtml(FormDefinition $definition)
 {
     $html = '<div style="width:100%;">';
     if ($definition->haveError()) {
         $html .= '<div style="clear: both; width: 100%;" class="globalErrorMessage">Le formulaire contient des erreurs</div>';
     }
     foreach ($definition->xmlDefinition->block as $block) {
         if ($this->hasRight($block)) {
             $html .= $this->genereFormBlock($block, $definition, 1);
         }
     }
     $html .= '<div style="clear: both"> </div>';
     return $html . '</div>';
 }