From ad4d246d993ced8e1e289fb0ceaef0f6957a42ea Mon Sep 17 00:00:00 2001 From: Matthieu Guffroy <mattgu74@gmail.com> Date: Tue, 17 Jun 2014 23:47:11 +0200 Subject: [PATCH] Form: Gestion de l'affichage d'erreur ou non --- class/form.php | 4 ++++ view/form.php | 1 + 2 files changed, 5 insertions(+) diff --git a/class/form.php b/class/form.php index c4061f6..c1d0d71 100644 --- a/class/form.php +++ b/class/form.php @@ -38,4 +38,8 @@ class Form { return $this->fields; } + public function getAlerts() { + return '<p class="bg-danger">Code en cours d\'implémentation, l\'enregistrement n\'a pas été ajouté !</p>';' + } + } \ No newline at end of file diff --git a/view/form.php b/view/form.php index defe74b..2d0fc36 100644 --- a/view/form.php +++ b/view/form.php @@ -3,6 +3,7 @@ <div class="page-header"> <h1><?php echo $formConf->getTitle(); ?></h1> </div> + <?php echo $formConf->getAlerts(); ?> <form role="form" method="post"> <input type="hidden" name="submitForm" value="1"> <?php foreach($formConf->getFields() as $field): ?> -- GitLab