-Form->create();
- echo $this->Form->inputs($scaffoldFields, array('created', 'modified', 'updated'));
- echo $this->Form->end(__d('cake', 'Submit'));
-?>
-
-
-
-
-
-
- Paginator->sort($_field); ?> |
-
- |
-
-';
- foreach ($scaffoldFields as $_field) {
- $isKey = false;
- if (!empty($associations['belongsTo'])) {
- foreach ($associations['belongsTo'] as $_alias => $_details) {
- list(, $_details['controller']) = namespaceSplit($_details['controller']);
- if ($_field === $_details['foreignKey']) {
- $isKey = true;
- echo '' . $this->Html->link(${$singularVar}[$_alias][$_details['displayField']], array('controller' => $_details['controller'], 'action' => 'view', ${$singularVar}[$_alias][$_details['primaryKey']])) . ' | ';
- break;
- }
- }
- }
- if ($isKey !== true) {
- echo '' . h(${$singularVar}[$modelClass][$_field]) . ' | ';
- }
- }
-
- echo '';
- echo $this->Html->link(__d('cake', 'View'), array('action' => 'view', ${$singularVar}[$modelClass][$primaryKey]));
- echo ' ' . $this->Html->link(__d('cake', 'Edit'), array('action' => 'edit', ${$singularVar}[$modelClass][$primaryKey]));
- echo ' ' . $this->Form->postLink(
- __d('cake', 'Delete'),
- array('action' => 'delete', ${$singularVar}[$modelClass][$primaryKey]),
- array(),
- __d('cake', 'Are you sure you want to delete # %s?', ${$singularVar}[$modelClass][$primaryKey])
- );
- echo ' | ';
- echo '';
-
-endforeach;
-
-?>
-
-
Paginator->counter(array(
- 'format' => __d('cake', 'Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
- ));
- ?>
-
- Paginator->prev('< ' . __d('cake', 'previous'), array(), null, array('class' => 'prev disabled'));
- echo $this->Paginator->numbers(array('separator' => ''));
- echo $this->Paginator->next(__d('cake', 'next') .' >', array(), null, array('class' => 'next disabled'));
- ?>
-
-
-