← Back to team overview

amm-dev-tem team mailing list archive

[Branch ~amm-dev-tem/amm/trunk] Rev 39: modified table to respect HTML rules

 

------------------------------------------------------------
revno: 39
committer: The Whole Life To Learn <thewholelifetolearn@xxxxxxxxx>
branch nick: sources
timestamp: Thu 2011-10-13 21:17:29 +0200
message:
  modified table to respect HTML rules
modified:
  app/views/members/index.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-10-08 12:49:32 +0000
+++ app/views/members/index.ctp	2011-10-13 19:17:29 +0000
@@ -9,46 +9,47 @@
 <div class="members index grid_13">
 	<h2><?php __('Members');?></h2>
 	<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>
-	</thead>
+		<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>
+		</thead>
+		<tbody>
 	<?php
-	$i = 0;
 	foreach ($members as $member):
 	?>
-	<tr>
-		<td>
-			<?php echo $this->Html->link($member['Person']['name'], array('controller' => 'people', 'action' => 'view', $member['Person']['id'])); ?>
-		</td>
-		<td>
-			<?php echo $this->Html->link($member['Guardian1']['name'], array('controller' => 'people', 'action' => 'view', $member['Guardian1']['id'])).' '.$this->Html->link($member['Guardian2']['name'], array('controller' => 'people', 'action' => 'view', $member['Guardian2']['id'])); ?>
-		</td>
-		<td>
-			<?php echo $this->Html->link($member['Emergency1']['name'], array('controller' => 'people', 'action' => 'view', $member['Emergency1']['id'])).' '.$this->Html->link($member['Emergency2']['name'], array('controller' => 'people', 'action' => 'view', $member['Emergency2']['id'])); ?>
-		</td>
-		<td>
-			<?php echo $this->Html->link($member['Formula']['name'], array('controller' => 'formulas', 'action' => 'view', $member['Formula']['id'])); ?>
-		</td>
-		<td>
-			<?php
-			$date = new DateTime($member['Member']['membership_date']);
-			echo $date->format('d F Y')
-			?>&nbsp;</td>
-		<td class="actions">
-			<?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>
+			<tr>
+				<td>
+					<?php echo $this->Html->link($member['Person']['name'], array('controller' => 'people', 'action' => 'view', $member['Person']['id'])); ?>
+				</td>
+				<td>
+					<?php echo $this->Html->link($member['Guardian1']['name'], array('controller' => 'people', 'action' => 'view', $member['Guardian1']['id'])).' '.$this->Html->link($member['Guardian2']['name'], array('controller' => 'people', 'action' => 'view', $member['Guardian2']['id'])); ?>
+				</td>
+				<td>
+					<?php echo $this->Html->link($member['Emergency1']['name'], array('controller' => 'people', 'action' => 'view', $member['Emergency1']['id'])).' '.$this->Html->link($member['Emergency2']['name'], array('controller' => 'people', 'action' => 'view', $member['Emergency2']['id'])); ?>
+				</td>
+				<td>
+					<?php echo $this->Html->link($member['Formula']['name'], array('controller' => 'formulas', 'action' => 'view', $member['Formula']['id'])); ?>
+				</td>
+				<td>
+					<?php
+					$date = new DateTime($member['Member']['membership_date']);
+					echo $date->format('d F Y')
+					?>&nbsp;</td>
+				<td class="actions">
+					<?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']['name'])); ?>
+				</td>
+			</tr>
 <?php endforeach; ?>
+		</tbody>
 	</table>
 	<p>
 	<?php