Skip to content
Snippets Groups Projects
Commit 0e21b7db authored by clement's avatar clement
Browse files

Merge branch 'master' of gitlab.utc.fr:nf17-camp-p14/clivi

parents 050b71db bd228428
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