← Back to team overview

amm-dev-tem team mailing list archive

[Branch ~amm-dev-tem/amm/trunk] Rev 35: modified views of members and peoples for new design

 

------------------------------------------------------------
revno: 35
committer: The Whole Life To Learn <thewholelifetolearn@xxxxxxxxx>
branch nick: sources
timestamp: Sat 2011-10-08 14:49:32 +0200
message:
  modified views of members and peoples for new design
modified:
  app/views/members/index.ctp
  app/views/members/view.ctp
  app/views/people/edit.ctp
  app/views/people/view.ctp


--
lp:amm
https://code.launchpad.net/~amm-dev-tem/amm/trunk

Your team AMM dev team is subscribed to branch lp:amm.
To unsubscribe from this branch go to https://code.launchpad.net/~amm-dev-tem/amm/trunk/+edit-subscription
=== modified file 'app/views/members/index.ctp'
--- app/views/members/index.ctp	2011-05-31 15:15:55 +0000
+++ app/views/members/index.ctp	2011-10-08 12:49:32 +0000
@@ -1,23 +1,29 @@
-<div class="members index">
+<div class="actions grid_3">
+	<ul>
+		<li><?php echo $this->Html->link(__('New member', true), array('action' => 'add')); ?></li>
+		<li><?php echo $this->Html->link(__('Add a member', true), array('action' => 'add_existing')); ?></li>
+		<li><?php echo $this->Html->link(__('New person', true), array('controller' => 'people', 'action' => 'add')); ?> </li>
+		<li><?php echo $this->Html->link(__('Authorizations', true), array('controller' => 'authorizations', 'action' => 'index')); ?> </li>
+	</ul>
+</div>
+<div class="members index grid_13">
 	<h2><?php __('Members');?></h2>
-	<table cellpadding="0" cellspacing="0">
-	<tr>
+	<table>
+	<thead>
+		<tr>
 			<th><?php echo $this->Paginator->sort(__('Member', true), 'person_id');?></th>
 			<th><?php echo __('Guardian(s)');?></th>
 			<th><?php echo __('Emergency');?></th>
 			<th><?php echo $this->Paginator->sort(__('Formula', true), 'formula_id');?></th>
 			<th><?php echo $this->Paginator->sort(__('Membership date', true), 'membership_date');?></th>
 			<th class="actions"><?php __('Actions');?></th>
-	</tr>
+		</tr>
+	</thead>
 	<?php
 	$i = 0;
 	foreach ($members as $member):
-		$class = null;
-		if ($i++ % 2 == 0) {
-			$class = ' class="altrow"';
-		}
 	?>
-	<tr<?php echo $class;?>>
+	<tr>
 		<td>
 			<?php echo $this->Html->link($member['Person']['name'], array('controller' => 'people', 'action' => 'view', $member['Person']['id'])); ?>
 		</td>
@@ -36,10 +42,10 @@
 			echo $date->format('d F Y')
 			?>&nbsp;</td>
 		<td class="actions">
-			<?php echo $this->Html->link(__('View', true), array('action' => 'view', $member['Member']['id'])); ?>
-			<?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $member['Member']['id'])); ?>
-			<?php echo $this->Html->link(__('Renew', true), array('action' => 'renew', $member['Member']['id'])); ?>
-			<?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $member['Member']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $member['Member']['id'])); ?>
+			<?php echo $this->Html->link($this->Html->image('view_16.png', array('alt' => __('View', true))), array('action' => 'view', $member['Member']['id']), array('escape' => false)); ?>
+			<?php echo $this->Html->link($this->Html->image('edit_16.png', array('alt' => __('Edit', true))), array('action' => 'edit', $member['Member']['id']), array('escape' => false)); ?>
+			<?php echo $this->Html->link($this->Html->image('update_16.png', array('alt' => __('Renew', true))), array('action' => 'renew', $member['Member']['id']), array('escape' => false)); ?>
+			<?php echo $this->Html->link($this->Html->image('delete_16.png', array('alt' => __('Delete', true))), array('action' => 'delete', $member['Member']['id']), array('escape' => false), sprintf(__('Are you sure you want to delete # %s?', true), $member['Member']['id'])); ?>
 		</td>
 	</tr>
 <?php endforeach; ?>
@@ -57,17 +63,4 @@
  |
 		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
 	</div>
-</div>
-<div class="actions">
-	<h3><?php __('Actions'); ?></h3>
-	<ul>
-		<li><?php echo $this->Html->link(__('New Member', true), array('action' => 'add')); ?></li>
-		<li><?php echo $this->Html->link(__('Add Member', true), array('action' => 'add_existing')); ?></li>
-		<li><?php echo $this->Html->link(__('List People', true), array('controller' => 'people', 'action' => 'index')); ?> </li>
-		<li><?php echo $this->Html->link(__('New Person', true), array('controller' => 'people', 'action' => 'add')); ?> </li>
-		<li><?php echo $this->Html->link(__('List Formulas', true), array('controller' => 'formulas', 'action' => 'index')); ?> </li>
-		<li><?php echo $this->Html->link(__('New Formula', true), array('controller' => 'formulas', 'action' => 'add')); ?> </li>
-		<li><?php echo $this->Html->link(__('List Authorizations', true), array('controller' => 'authorizations', 'action' => 'index')); ?> </li>
-		<li><?php echo $this->Html->link(__('New Authorization', true), array('controller' => 'authorizations', 'action' => 'add')); ?> </li>
-	</ul>
 </div>
\ No newline at end of file

=== modified file 'app/views/members/view.ctp'
--- app/views/members/view.ctp	2011-05-30 11:19:15 +0000
+++ app/views/members/view.ctp	2011-10-08 12:49:32 +0000
@@ -1,56 +1,64 @@
-<div class="members view">
-<h2><?php  __('Member');?></h2>
-	<dl><?php $i = 0; $class = ' class="altrow"';?>
-		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Member'); ?></dt>
-		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
+<div class="actions grid_3">
+	<h3><?php __('Actions'); ?></h3>
+	<ul>
+		<li><?php echo $this->Html->link(__('Edit member', true), array('action' => 'edit', $member['Member']['id'])); ?> </li>
+		<li><?php echo $this->Html->link(__('Delete member', true), array('action' => 'delete', $member['Member']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $member['Member']['id'])); ?> </li>
+		<li><?php echo $this->Html->link(__('Back to members', true), array('action' => 'index')); ?> </li>
+	</ul>
+</div>
+<div class="members view grid_13">
+<h2><?php echo $member['Person']['name'];?></h2>
+	<dl class="prefix_3">
+		<dt class="grid_3"><?php __('Member'); ?></dt>
+		<dd class="grid_5">
 			<?php echo $this->Html->link($member['Person']['name'], array('controller' => 'people', 'action' => 'view', $member['Person']['id'])); ?>
 			&nbsp;
 		</dd>
-		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Guardian'); ?></dt>
-		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
+		<dt class="grid_3"><?php __('Guardian'); ?></dt>
+		<dd class="grid_5">
 			<?php echo $this->Html->link($member['Guardian1']['name'], array('controller' => 'people', 'action' => 'view', $member['Guardian1']['id'])); ?>
 			&nbsp;
 		</dd>
-		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Guardian'); ?></dt>
-		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
+		<dt class="grid_3"><?php __('Guardian'); ?></dt>
+		<dd class="grid_5">
 			<?php echo $this->Html->link($member['Guardian2']['name'], array('controller' => 'people', 'action' => 'view', $member['Guardian2']['id'])); ?>
 			&nbsp;
 		</dd>
-		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Emergency'); ?></dt>
-		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
+		<dt class="grid_3"><?php __('Emergency'); ?></dt>
+		<dd class="grid_5">
 			<?php echo $this->Html->link($member['Emergency1']['name'], array('controller' => 'people', 'action' => 'view', $member['Emergency1']['id'])); ?>
 			&nbsp;
 		</dd>
-		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Emergency'); ?></dt>
-		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
+		<dt class="grid_3"><?php __('Emergency'); ?></dt>
+		<dd class="grid_5">
 			<?php echo $this->Html->link($member['Emergency2']['name'], array('controller' => 'people', 'action' => 'view', $member['Emergency2']['id'])); ?>
 			&nbsp;
 		</dd>
-		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Formula'); ?></dt>
-		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
+		<dt class="grid_3"><?php __('Formula'); ?></dt>
+		<dd class="grid_5">
 			<?php echo $this->Html->link($member['Formula']['name'], array('controller' => 'formulas', 'action' => 'view', $member['Formula']['id'])); ?>
 			&nbsp;
 		</dd>
-		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Membership date'); ?></dt>
-		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
+		<dt class="grid_3"><?php __('Membership date'); ?></dt>
+		<dd class="grid_5">
 			<?php
 			$date = new DateTime($member['Member']['membership_date']);
 			echo $date->format('d F Y')
 			?>
 			&nbsp;
 		</dd>
-		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Notes/comments'); ?></dt>
-		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
+		<dt class="grid_3"><?php __('Notes/comments'); ?></dt>
+		<dd class="grid_5">
 			<?php echo $member['Member']['notes']; ?>
 			&nbsp;
 		</dd>
-		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Medical Certificat'); ?></dt>
-		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
+		<dt class="grid_3"><?php __('Medical Certificat'); ?></dt>
+		<dd class="grid_5">
 			<?php echo $member['Member']['medical_certificat']; ?>
 			&nbsp;
 		</dd>
-		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Authorizations accepted'); ?></dt>
-		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
+		<dt class="grid_3"><?php __('Authorizations accepted'); ?></dt>
+		<dd class="grid_5">
 			<ul>
 			<?php foreach ($member['Authorization'] as $authorization): ?>
 				<?php echo '<li>'.$authorization['name'].'</li>';?>
@@ -59,19 +67,4 @@
 			&nbsp;
 		</dd>
 	</dl>
-</div>
-<div class="actions">
-	<h3><?php __('Actions'); ?></h3>
-	<ul>
-		<li><?php echo $this->Html->link(__('Edit Member', true), array('action' => 'edit', $member['Member']['id'])); ?> </li>
-		<li><?php echo $this->Html->link(__('Delete Member', true), array('action' => 'delete', $member['Member']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $member['Member']['id'])); ?> </li>
-		<li><?php echo $this->Html->link(__('List Members', true), array('action' => 'index')); ?> </li>
-		<li><?php echo $this->Html->link(__('New Member', true), array('action' => 'add')); ?> </li>
-		<li><?php echo $this->Html->link(__('List People', true), array('controller' => 'people', 'action' => 'index')); ?> </li>
-		<li><?php echo $this->Html->link(__('New Person', true), array('controller' => 'people', 'action' => 'add')); ?> </li>
-		<li><?php echo $this->Html->link(__('List Formulas', true), array('controller' => 'formulas', 'action' => 'index')); ?> </li>
-		<li><?php echo $this->Html->link(__('New Formula', true), array('controller' => 'formulas', 'action' => 'add')); ?> </li>
-		<li><?php echo $this->Html->link(__('List Authorizations', true), array('controller' => 'authorizations', 'action' => 'index')); ?> </li>
-		<li><?php echo $this->Html->link(__('New Authorization', true), array('controller' => 'authorizations', 'action' => 'add')); ?> </li>
-	</ul>
-</div>
+</div>
\ No newline at end of file

=== modified file 'app/views/people/edit.ctp'
--- app/views/people/edit.ctp	2011-05-30 15:15:31 +0000
+++ app/views/people/edit.ctp	2011-10-08 12:49:32 +0000
@@ -7,99 +7,160 @@
 	}
 	return true;", true);
 ;?>
-<div class="people form">
+<div class="actions grid_3">
+	<ul>
+		<li><?php echo $this->Html->link(__('Back to people', true), array('action' => 'index'));?></li>
+		<li><?php echo $this->Html->link(__('Back to members', true), array('controller' => 'members', 'action' => 'index')); ?> </li>
+		<li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('Person.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('Person.id'))); ?></li>
+	</ul>
+</div>
+<div class="people form grid_13">
 <?php echo $this->Form->create('Person', array('type' => 'file'));?>
-	<fieldset>
-		<legend><?php __('Edit Person'); ?></legend>
+	<fieldset class="prefix_1">
 	<?php
 		echo $this->Form->input('id');
 		echo $this->Form->input('firstname', array(
-			'label' => __('First name', true),
+			'label' => array(
+				__('First name', true),
+				'class' => 'grid_5'
+				),
 			'error' => array(
 			    'notempty' => __('You haven\'t field in your first name.', true)
-			    )
+			    ),
+			'class' => 'grid_6'
 			)
 		);
 		echo $this->Form->input('lastname', array(
-			'label' => __('Last name', true),
+			'label' => array(
+				__('Last name', true),
+				'class' => 'grid_5'
+				),
 			'error' => array(
 				'notempty' => __('You haven\'t field in your name.', true)
-				)
-			)
-		);
-		echo $this->Form->input('surname', array('label' => __('Nickname', true)));
+				),
+			'class' => 'grid_6'
+			)
+		);
+		echo $this->Form->input('surname', array(
+			'label' => array(
+				__('Nickname', true),
+				'class' => 'grid_5'
+				),
+			'class' => 'grid_6'
+			)
+		);
 		echo $this->Form->input('birthday', array(
-			'label' => __('Birthday', true),
+			'label' => array(
+				__('Birthday', true),
+				'class' => 'grid_5'
+				),
 			'dateFormat' => 'DMY',
 			'minYear' => date('Y')-80,
-			'maxYear' => date('Y')
+			'maxYear' => date('Y'),
+			'separator' => ' ',
+			'class' => 'grid_2'
 			)
 		);
 		echo $this->Form->input('address', array(
-			'label' => __('Address', true),
+			'label' => array(
+				__('Address', true),
+				'class' => 'grid_5'
+				),
 			'error' => array(
 				'notempty' => __('You haven\'t field in your address.', true)
-				)
-			)
-		);
-		echo $this->Form->input('addr_comp', array('label' => __('Complementary address', true)));
+				),
+			'class' => 'grid_6'
+			)
+		);
+		echo $this->Form->input('addr_comp', array(
+			'label' => array(
+				__('Complementary address', true),
+				'class' => 'grid_5'
+				),
+			'class' => 'grid_6'
+			)
+		);
 		echo $this->Form->input('postal_code', array(
-			'label' => __('Postal code', true),
+			'label' => array(
+				__('Postal code', true),
+				'class' => 'grid_5'
+				),
 			'error' => array(
 				'notempty' => __('You haven\'t field in your postal code.', true)
-				)
+				),
+			'class' => 'grid_6'
 			)
 		);
 		echo $this->Form->input('town', array(
-			'label' => __('City', true),
+			'label' => array(
+				__('City', true),
+				'class' => 'grid_5'
+				),
 			'error' => array(
 				'notempty' => __('You haven\'t field in your city\'s name.', true)
-				)
+				),
+			'class' => 'grid_6'
 			)
 		);
 		echo $this->Form->input('phone', array(
-			'label' => __('Phone number', true),
+			'label' => array(
+				__('Phone number', true),
+				'class' => 'grid_5'
+				),
 			'error' => array(
 				'notempty' => __('You haven\'t field in your phone number.', true)
-				)
+				),
+			'class' => 'grid_6'
 			)
 		);
 		echo $this->Form->input('email', array(
-			'label' => __('Email', true),
+			'label' => array(
+				__('Email', true),
+				'class' => 'grid_5'
+				),
 			'error' => array(
 				'email' => __('The email address you field in isn\'t correct (something@xxxxxxxxxxxxx).', true),
 				'notempty' => __('You haven\'t field in your email address.', true)
-				)
-			)
-		);
-		echo $this->Form->input('job', array('label' => __('Job', true)));
+				),
+			'class' => 'grid_6'
+			)
+		);
+		echo $this->Form->input('job', array(
+			'label' => array(
+				__('Job', true),
+				'class' => 'grid_5'
+				),
+			'class' => 'grid_6'
+			)
+		);
 		echo $this->Form->input('picture', array(
-			'label' => __('Photo', true),
+			'label' => array(
+				__('Photo', true),
+				'class' => 'grid_5'
+				),
 			'type' => 'file',
 			'error' => array(
 				'file' => __('The file you have submitted is not a picture (.jpg, .jpeg, .gif and .png files only are accepted)', true)
-				)
-			)
-		);
-		echo $this->Form->input('notes', array('label' => __('Notes/comments', true)));
+				),
+			'class' => 'grid_6'
+			)
+		);
+		echo $this->Form->input('notes', array(
+			'label' => array(
+				__('Notes/comments', true),
+				'class' => 'grid_5'
+				),
+			'class' => 'grid_6'
+			)
+		);
 	?>
 	</fieldset>
-<?php echo $this->Form->end(__('Submit', true));?>
-</div>
-<div class="actions">
-	<h3><?php __('Actions'); ?></h3>
-	<ul>
-
-		<li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('Person.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('Person.id'))); ?></li>
-		<li><?php echo $this->Html->link(__('List People', true), array('action' => 'index'));?></li>
-		<li><?php echo $this->Html->link(__('List Members', true), array('controller' => 'members', 'action' => 'index')); ?> </li>
-		<li><?php echo $this->Html->link(__('New Member', true), array('controller' => 'members', 'action' => 'add')); ?> </li>
-		<li><?php echo $this->Html->link(__('List Person Infos', true), array('controller' => 'person_infos', 'action' => 'index')); ?> </li>
-		<li><?php echo $this->Html->link(__('New Person Info', true), array('controller' => 'person_infos', 'action' => 'add')); ?> </li>
-		<li><?php echo $this->Html->link(__('List Events', true), array('controller' => 'events', 'action' => 'index')); ?> </li>
-		<li><?php echo $this->Html->link(__('New Event', true), array('controller' => 'events', 'action' => 'add')); ?> </li>
-		<li><?php echo $this->Html->link(__('List Places', true), array('controller' => 'places', 'action' => 'index')); ?> </li>
-		<li><?php echo $this->Html->link(__('New Place', true), array('controller' => 'places', 'action' => 'add')); ?> </li>
-	</ul>
+<?php echo $this->Form->end(array(
+	'label' => __('Submit', true),
+	'class' => 'grid_2',
+	'div' => array(
+		'class' => 'submit prefix_5'
+		)
+	));?>
 </div>
 <?php echo $this->Js->writeBuffer(); ?>
\ No newline at end of file

=== modified file 'app/views/people/view.ctp'
--- app/views/people/view.ctp	2011-07-12 19:59:25 +0000
+++ app/views/people/view.ctp	2011-10-08 12:49:32 +0000
@@ -1,57 +1,63 @@
-<div class="people view">
-<h2><?php  __('Person');?></h2>
-	<dl><?php $i = 0; $class = ' class="altrow"';?>
-		<img src="<?php echo (empty($person['Person']['photo'])) ? '../../img/unknown_person.png' : '../..'.$person['Person']['photo'];?>" alt="<?php echo __('Picture of ', true).$person['Person']['name']; ?>" />
-		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
-		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
+<div class="actions grid_3">
+	<ul>
+		<li><?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $person['Person']['id'])); ?> </li>
+		<li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $person['Person']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $person['Person']['id'])); ?> </li>
+	</ul>
+</div>
+<div class="people view grid_13">
+<h2><?php echo $person['Person']['name'];?></h2>
+	<img src="<?php echo (empty($person['Person']['photo'])) ? '../../img/unknown_person.png' : '../..'.$person['Person']['photo'];?>" alt="<?php echo __('Picture of ', true).$person['Person']['name']; ?>" class="prefix_5" />
+	<dl class="prefix_3">
+		<dt class="grid_3"><?php __('Name'); ?></dt>
+		<dd class="grid_5">
 			<?php echo $person['Person']['name']; ?>
 			&nbsp;
 		</dd>
-		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Surname'); ?></dt>
-		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
+		<dt class="grid_3"><?php __('Surname'); ?></dt>
+		<dd class="grid_7">
 			<?php echo $person['Person']['surname']; ?>
 			&nbsp;
 		</dd>
-		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Birthday'); ?></dt>
-		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
+		<dt class="grid_3"><?php __('Birthday'); ?></dt>
+		<dd class="grid_5">
 			<?php
 			$date = new DateTime($person['Person']['birthday']);
 			echo $date->format('d F Y');
 			?>
 			&nbsp;
 		</dd>
-		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Address'); ?></dt>
-		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
+		<dt class="grid_3"><?php __('Address'); ?></dt>
+		<dd class="grid_5">
 			<?php echo $person['Person']['address'];
 			echo (empty($person['Person']['addr_comp'])) ? '' : '<br />'.$person['Person']['addr_comp'];
 			echo '<br />'.$person['Person']['postal_code'].' '.$person['Person']['town']; ?>
 			&nbsp;
 		</dd>
-		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Phone number'); ?></dt>
-		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
+		<dt class="grid_3"><?php __('Phone number'); ?></dt>
+		<dd class="grid_5">
 			<?php echo $person['Person']['phone']; ?>
 			&nbsp;
 		</dd>
-		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Email'); ?></dt>
-		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
+		<dt class="grid_3"><?php __('Email'); ?></dt>
+		<dd class="grid_5">
 			<?php echo $person['Person']['email']; ?>
 			&nbsp;
 		</dd>
-		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Job'); ?></dt>
-		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
+		<dt class="grid_3"><?php __('Job'); ?></dt>
+		<dd class="grid_5">
 			<?php echo $person['Person']['job']; ?>
 			&nbsp;
 		</dd>
 		<?php if (!empty($person['PersonInfo'])):?>
-		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Rank'); ?></dt>
-		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
+		<dt class="grid_3"><?php __('Rank'); ?></dt>
+		<dd class="grid_5">
 			<?php echo $person['Rank'][0]['name']; ?>
 			&nbsp;
 		</dd>
 		<?php endif; ?>
 		<?php if (!empty($person['Event'])):?>
-		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Participates in: '); ?></dt>
-		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
+		<dt class="grid_3"><?php __('Participates in: '); ?></dt>
+		<dd class="grid_5">
 			<ul>
 				<?php foreach ($person['Event'] as $event): ?>
 				<li><?php echo $event['name'];?></li>
@@ -60,8 +66,8 @@
 		</dd>
 		<?php endif; ?>
 		<?php if (!empty($person['Place'])):?>
-		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Goes to: '); ?></dt>
-		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
+		<dt class="grid_3"><?php __('Goes to: '); ?></dt>
+		<dd class="grid_5">
 			<ul>
 				<?php foreach ($person['Place'] as $place): ?>
 				<li><?php echo $place['name'];?></li>
@@ -69,27 +75,10 @@
 			</ul>
 		</dd>
 		<?php endif; ?>
-		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Notes/comments'); ?></dt>
-		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
+		<dt class="grid_3"><?php __('Notes/comments'); ?></dt>
+		<dd class="grid_5">
 			<?php echo $person['Person']['notes']; ?>
 			&nbsp;
 		</dd>
 	</dl>
-</div>
-<div class="actions">
-	<h3><?php __('Actions'); ?></h3>
-	<ul>
-		<li><?php echo $this->Html->link(__('Edit Person', true), array('action' => 'edit', $person['Person']['id'])); ?> </li>
-		<li><?php echo $this->Html->link(__('Delete Person', true), array('action' => 'delete', $person['Person']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $person['Person']['id'])); ?> </li>
-		<li><?php echo $this->Html->link(__('List People', true), array('action' => 'index')); ?> </li>
-		<li><?php echo $this->Html->link(__('New Person', true), array('action' => 'add')); ?> </li>
-		<li><?php echo $this->Html->link(__('List Members', true), array('controller' => 'members', 'action' => 'index')); ?> </li>
-		<li><?php echo $this->Html->link(__('New Member', true), array('controller' => 'members', 'action' => 'add')); ?> </li>
-		<li><?php echo $this->Html->link(__('List Person Infos', true), array('controller' => 'person_infos', 'action' => 'index')); ?> </li>
-		<li><?php echo $this->Html->link(__('New Person Info', true), array('controller' => 'person_infos', 'action' => 'add')); ?> </li>
-		<li><?php echo $this->Html->link(__('List Events', true), array('controller' => 'events', 'action' => 'index')); ?> </li>
-		<li><?php echo $this->Html->link(__('New Event', true), array('controller' => 'events', 'action' => 'add')); ?> </li>
-		<li><?php echo $this->Html->link(__('List Places', true), array('controller' => 'places', 'action' => 'index')); ?> </li>
-		<li><?php echo $this->Html->link(__('New Place', true), array('controller' => 'places', 'action' => 'add')); ?> </li>
-	</ul>
 </div>
\ No newline at end of file