Source for file index.phtml
Documentation is available at index.phtml
<h1>Listing <?php echo $model_name_plural ?></h1>
<table border="0" cellpadding="2" cellspacing="2">
<?php if(count($models)): ?>
<?php foreach($content_columns as $column): ?>
<th> <?php echo $column['human_name'] ?></th>
<?php foreach($models as $model): ?>
<?php foreach($model->content_columns as $column): ?>
<td> <?php echo $model->send($column['name']) ?></td>
<td> <?php echo link_to("Show", array(":action" => "show", ":id" => $model)) ?></td>
<td> <?php echo link_to("Edit", array(":action" => "edit", ":id" => $model)) ?></td>
<td> <?php echo link_to("Delete", array(":action" => "delete", ":id" => $model), array("confirm" => "Are you sure?")) ?></td>
<td>No <?php echo $model_name_plural ?> found.</td>
<?php echo link_to("New ". $model_object_name, array(":action" => "add")) ?>
|