Permalink
Browse files

Updating scaffolds to match new bake design.

  • Loading branch information...
1 parent 54b566f commit 2de96390911cae311335c4ab1ebf4f59be59fdbc @markstory markstory committed Jan 13, 2010
Showing with 13 additions and 10 deletions.
  1. +1 −0 cake/libs/view/scaffolds/edit.ctp
  2. +11 −10 cake/libs/view/scaffolds/index.ctp
  3. +1 −0 cake/libs/view/scaffolds/view.ctp
@@ -25,6 +25,7 @@
?>
</div>
<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
<ul>
<?php if ($this->action != 'add'):?>
<li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value($modelClass.'.'.$primaryKey)), null, __('Are you sure you want to delete', true).' #' . $this->Form->value($modelClass.'.'.$primaryKey)); ?></li>
@@ -19,11 +19,6 @@
?>
<div class="<?php echo $pluralVar;?> index">
<h2><?php echo $pluralHumanName;?></h2>
-<p><?php
-echo $this->Paginator->counter(array(
- 'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
-));
-?></p>
<table cellpadding="0" cellspacing="0">
<tr>
<?php foreach ($scaffoldFields as $_field):?>
@@ -67,13 +62,19 @@ endforeach;
echo "\n";
?>
</table>
-</div>
-<div class="paging">
-<?php echo "\t" . $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class' => 'disabled')) . "\n";?>
- | <?php echo $this->Paginator->numbers() . "\n"?>
-<?php echo "\t ". $this->Paginator->next(__('next', true) .' >>', array(), null, array('class' => 'disabled')) . "\n";?>
+ <p><?php
+ echo $this->Paginator->counter(array(
+ 'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+ ));
+ ?></p>
+ <div class="paging">
+ <?php echo "\t" . $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class' => 'disabled')) . "\n";?>
+ | <?php echo $this->Paginator->numbers() . "\n"?>
+ <?php echo "\t ". $this->Paginator->next(__('next', true) .' >>', array(), null, array('class' => 'disabled')) . "\n";?>
+ </div>
</div>
<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
<ul>
<li><?php echo $this->Html->link(sprintf(__('New %s', true), $singularHumanName), array('action' => 'add')); ?></li>
<?php
@@ -47,6 +47,7 @@ foreach ($scaffoldFields as $_field) {
</dl>
</div>
<div class="actions">
+ <h3><?php __('Actions'); ?></h3>
<ul>
<?php
echo "\t\t<li>" .$this->Html->link(sprintf(__('Edit %s', true), $singularHumanName), array('action' => 'edit', ${$singularVar}[$modelClass][$primaryKey])). " </li>\n";

0 comments on commit 2de9639

Please sign in to comment.