| 6 | | <? foreach($content_columns as $column): ?> |
| 7 | | <th><?= $column['human_name'] ?></th> |
| 8 | | <? endforeach; ?> |
| | 6 | <?php foreach($content_columns as $column): ?> |
| | 7 | <th><?php echo $column['human_name'] ?></th> |
| | 8 | <?php endforeach; ?> |
| | 9 | </tr> |
| | 10 | <?php foreach($models as $model): ?> |
| | 11 | <tr> |
| | 12 | <?php foreach($model->content_columns as $column): ?> |
| | 13 | <td><?php echo $model->send($column['name']) ?></td> |
| | 14 | <?php endforeach; ?> |
| | 15 | <td><?php echo link_to("Show", array(":action" => "show", ":id" => $model)) ?></td> |
| | 16 | <td><?php echo link_to("Edit", array(":action" => "edit", ":id" => $model)) ?></td> |
| | 17 | <td><?php echo link_to("Delete", array(":action" => "delete", ":id" => $model), array("confirm" => "Are you sure?")) ?></td> |
| | 18 | </tr> |
| | 19 | <?php endforeach; ?> |
| | 20 | <?php else: ?> |
| | 21 | <tr> |
| | 22 | <td>No <?php echo $model_name_plural ?> found.</td> |
| 10 | | |
| 11 | | <? foreach($models as $model): ?> |
| 12 | | <tr> |
| 13 | | <? foreach($model->content_columns as $column): ?> |
| 14 | | <td><?= $model->send($column['name']) ?></td> |
| 15 | | <? endforeach; ?> |
| 16 | | <td><?= link_to('Show', array(":action" => 'show', ":id" => $model)) ?></td> |
| 17 | | <td><?= link_to('Edit', array(":action" => 'edit', ":id" => $model)) ?></td> |
| 18 | | <td><?= link_to('Delete', array(":action" => 'delete', ":id" => $model), array("confirm" => "Are you sure?")) ?></td> |
| 19 | | </tr> |
| 20 | | <? endforeach; ?> |
| 21 | | <? else: ?> |
| 22 | | <tr> |
| 23 | | <td>No <?= $model_name_plural ?> found.</td> |
| 24 | | </tr> |
| 25 | | <? endif; ?> |
| | 24 | <?php endif; ?> |