Commit e7934824 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

AJout d'un titre à la page d'édition d'une question/réponse

parent f11d5945
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -6,11 +6,17 @@ use Laminas\View\Renderer\PhpRenderer;
/**
 * @var PhpRenderer $this
 * @var FaqForm     $form
 * @var \UnicaenFaq\Entity\Db\Faq $faq
 *
 * @see \UnicaenFaq\Controller\FaqController::ajouterAction()
 * @see \UnicaenFaq\Controller\FaqController::modifierAction()
*/

$fcg = $this->formControlGroup();
?>

<h1 class="page-header first"><?php echo $form->getObject()->getId() ? "Modification d'une" : "Nouvelle" ?> question/réponse</h1>

<?php echo $this->form()->openTag($form->prepare()->setAttribute('class', 'faq')) ?>
<?php echo $this->formHidden($form->get('id')) ?>
<?php echo $fcg($form->get('question')->setAttribute('class', 'question-textarea')) ?>