Skip to content
Snippets Groups Projects
Commit ad4d246d authored by Matthieu Guffroy's avatar Matthieu Guffroy
Browse files

Form: Gestion de l'affichage d'erreur ou non

parent 12ff43d7
No related branches found
No related tags found
No related merge requests found
......@@ -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
......@@ -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): ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment