Created
January 25, 2013 03:58
-
-
Save eduardoromero/4631627 to your computer and use it in GitHub Desktop.
Foundation table layout / format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="categorias index"> | |
<h2><?php __('Categorias');?></h2> | |
<table class="twelve"> | |
<thead> | |
<tr> | |
<th><?php echo $this->Paginator->sort('#','id');?></th> | |
<th><?php echo $this->Paginator->sort('categoria');?></th> | |
<th><?php echo $this->Paginator->sort('activo');?></th> | |
<th class="actions"><?php __('Actions');?></th> | |
</tr> | |
</thead> | |
<tbody> | |
<?php foreach ($categorias as $categoria): ?> | |
<tr> | |
<td nowrap="nowrap"><?php echo $categoria['Categoria']['id']; ?> </td> | |
<td><?php echo $categoria['Categoria']['categoria']; ?> </td> | |
<td><?php echo $categoria['Categoria']['activo']? '<i class="foundicon-checkmark"></i>' : '<i class="foundicon-remove"></i>' ?> </td> | |
<td class="actions" nowrap style="text-align: center;"> | |
<?php echo $this->Html->link('<i class="foundicon-search"></i>', array('action' => 'view', $categoria['Categoria']['id']), array('escape' => false, 'class' => 'button tiny radius')); ?> | |
<?php echo $this->Html->link('<i class="foundicon-edit"></i>', array('action' => 'edit', $categoria['Categoria']['id']), array('escape' => false, 'class' => 'button secondary tiny radius')); ?> | |
<?php echo $this->Html->link('<i class="foundicon-remove"></i>', array('action' => 'delete', $categoria['Categoria']['id']), array('escape' => false, 'class' => 'button alert tiny radius'), sprintf(__('Are you sure you want to delete # %s?', true), $categoria['Categoria']['id'])); ?> | |
</td> | |
</tr> | |
<?php endforeach; ?> | |
</tbody> | |
</table> | |
<?php echo $this->element('Foundation.cake-paginator'); ?> | |
</div> | |
<div class="actions"> | |
<h3><?php __('Actions'); ?></h3> | |
<ul class="no-bullet"> | |
<li><?php echo $this->Html->link('<i class="foundicon-plus"></i> ' . __('New', true), array('action' => 'add'), array('escape' => false, 'class' => 'button success tiny radius')); ?></li> | |
</ul> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment