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

Formulaires avancement

parent 7b7edc15
No related branches found
No related tags found
No related merge requests found
......@@ -14,4 +14,12 @@ class Form {
return "Ajouter un ".get_class($this->object);
}
public function getSubmitText() {
return "Ajouter";
}
public function getFields() {
return Array();
}
}
\ No newline at end of file
......@@ -3,4 +3,10 @@
<div class="page-header">
<h1><?php echo $formConf->getTitle(); ?></h1>
</div>
<form role="form">
<?php foreach($formConf->getFields() as $field): ?>
<?php echo $field->html(); ?>
<?php endforeach; ?>
<button type="submit" class="btn btn-default"><?php echo $formConf->getSubmitText(); ?></button>
</form>
</div>
\ No newline at end of file
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