diff --git a/class/form.php b/class/form.php index c4061f6448b3f864bbd2ca1e469aa9ab70f41cfe..c1d0d7154ddc28d429f063775c058f8c413e81d4 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 defe74bbebd003d5737a7a5e5b6dc2e98c6611c8..2d0fc365e49b79d443efdf7bea706c88cc4d99a7 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): ?>