Merge pull request #3611 from MaziyarMK/patch-1

added HTML for styling tables
This commit is contained in:
Mark Story 2014-05-31 19:08:58 -04:00
commit 21285746cf

View file

@ -19,12 +19,15 @@
<div class="<?php echo $pluralVar; ?> index"> <div class="<?php echo $pluralVar; ?> index">
<h2><?php echo "<?php echo __('{$pluralHumanName}'); ?>"; ?></h2> <h2><?php echo "<?php echo __('{$pluralHumanName}'); ?>"; ?></h2>
<table cellpadding="0" cellspacing="0"> <table cellpadding="0" cellspacing="0">
<thead>
<tr> <tr>
<?php foreach ($fields as $field): ?> <?php foreach ($fields as $field): ?>
<th><?php echo "<?php echo \$this->Paginator->sort('{$field}'); ?>"; ?></th> <th><?php echo "<?php echo \$this->Paginator->sort('{$field}'); ?>"; ?></th>
<?php endforeach; ?> <?php endforeach; ?>
<th class="actions"><?php echo "<?php echo __('Actions'); ?>"; ?></th> <th class="actions"><?php echo "<?php echo __('Actions'); ?>"; ?></th>
</tr> </tr>
</thead>
<tbody>
<?php <?php
echo "<?php foreach (\${$pluralVar} as \${$singularVar}): ?>\n"; echo "<?php foreach (\${$pluralVar} as \${$singularVar}): ?>\n";
echo "\t<tr>\n"; echo "\t<tr>\n";
@ -53,6 +56,7 @@
echo "<?php endforeach; ?>\n"; echo "<?php endforeach; ?>\n";
?> ?>
</tbody>
</table> </table>
<p> <p>
<?php echo "<?php <?php echo "<?php