From 73bfd458a5c1da80fbda44dea6d3b4508f3ee206 Mon Sep 17 00:00:00 2001
From: clement <clemmercier45@gmail.com>
Date: Wed, 18 Jun 2014 23:59:17 +0200
Subject: [PATCH] c

---
 view/detail.php | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 view/detail.php

diff --git a/view/detail.php b/view/detail.php
new file mode 100644
index 0000000..5b63041
--- /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
-- 
GitLab