diff --git a/view/detail.php b/view/detail.php new file mode 100644 index 0000000000000000000000000000000000000000..5b6304165cfa99064e9624434fea0172c474665a --- /dev/null +++ b/view/detail.php @@ -0,0 +1,24 @@ +<!-- Begin page content --> +<div class="container"> + <div class="page-header"> + <h1><?php echo $list->getTitle(); ?></h1> + </div> + <table class="table"> + <thead> + <?php foreach($list->getLabels() as $field): ?> + <th><?php echo $field->label; ?></th> + <?php endforeach; ?> + <th></th> + </thead> + <tbody> + <?php foreach($list->getLines() as $line): ?> + <tr> + <?php foreach($line->getFields() as $field): ?> + <td><?php echo $field->show(); ?></td> + <?php endforeach; ?> + <td><a href="<?php echo $base_url.$page.'/detail'.$list->class.'?'.$line->_primaryAttr.'='.$line->{$line->_primaryAttr}() ?>" type="button" class="btn btn-warning">Editer</a></td> + </tr> + <?php endforeach; ?> + </tbody> + </table> +</div> \ No newline at end of file