← Back to team overview

amm-dev-tem team mailing list archive

[Branch ~amm-dev-tem/amm/trunk] Rev 38: modified view for details of a member

 

------------------------------------------------------------
revno: 38
committer: The Whole Life To Learn <thewholelifetolearn@xxxxxxxxx>
branch nick: sources
timestamp: Sat 2011-10-08 14:53:11 +0200
message:
  modified view for details of a member
modified:
  app/views/members/edit.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/edit.ctp'
--- app/views/members/edit.ctp	2011-05-30 14:30:19 +0000
+++ app/views/members/edit.ctp	2011-10-08 12:53:11 +0000
@@ -7,81 +7,126 @@
 	}
 	return true;", true);
 ;?>
-<div class="members form">
+<div class="actions grid_3">
+	<h3><?php __('Actions'); ?></h3>
+	<ul>
+		<li><?php echo $this->Html->link(__('Back to members', true), array('action' => 'index'));?></li>
+		<li><?php echo $this->Html->link(__('Delete member', true), array('action' => 'delete', $this->Form->value('Member.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('Member.id'))); ?></li>
+		<li><?php echo $this->Html->link(__('New formula', true), array('controller' => 'formulas', 'action' => 'add')); ?> </li>
+		<li><?php echo $this->Html->link(__('New authorization', true), array('controller' => 'authorizations', 'action' => 'add')); ?> </li>
+	</ul>
+</div>
+<div class="members form grid_13">
 <?php echo $this->Form->create('Member', array('type' => 'file'));?>
-	<fieldset>
-		<legend><?php __('Edit Member'); ?></legend>
+	<fieldset class="prefix_1">
 	<?php
 		echo $this->Form->input('id');
-		echo $this->Form->input('person_id', array('label' => __('Member', true)));
+		echo $this->Form->input('person_id',
+			array(
+				'label' => array(
+					__('Member', true),
+					'class' => 'grid_5'
+					),
+				'class' => 'grid_6'
+				)
+			);
 		echo $this->Form->input('guardian1_id',
 			array(
-				'label' => __('Guardian', true),
-				'empty' => __('The member is not an underaged', true)
+				'label' => array(
+					__('Guardian', true),
+					'class' => 'grid_5'
+					),
+				'empty' => __('The member is not an underaged', true),
+				'class' => 'grid_6'
 			)
 		);
 		echo $this->Form->input('guardian2_id',
 			array(
-				'label' => __('Guardian (optionnal)', true),
-				'empty' => __('The member is not an underaged', true)
+				'label' => array(
+					'label' => __('Guardian (optionnal)', true),
+					'class' => 'grid_5'
+					),
+				'empty' => __('The member is not an underaged', true),
+				'class' => 'grid_6'
 			)
 		);
 		echo $this->Form->input('emergency1_id',
 			array(
-				'label' => __('Emergency contact', true),
+				'label' => array(
+					__('Emergency contact', true),
+					'class' => 'grid_5'
+					),
+				'class' => 'grid_6'
 			)
 		);
 		echo $this->Form->input('emergency2_id',
 			array(
-				'label' => __('Emergency contact (optionnal)', true),
-				'empty' => __('No second emergency contact is declared', true)
+				'label' => array(
+					__('Emergency contact (optionnal)', true),
+					'class' => 'grid_5'
+					),
+				'empty' => __('No second emergency contact is declared', true),
+				'class' => 'grid_6'
 			)
 		);
 		echo $this->Form->input('formula_id',
 			array(
-				'label' => __('Formula', true)
+				'label' => array(
+					__('Formula', true),
+					'class' => 'grid_5'
+					),
+				'class' => 'grid_6'
 			)
 		);
 		echo $this->Form->input('membership_date',
 			array(
-				'label' => __('Begin of membership', true),
+				'label' => array(
+					__('Begin of membership', true),
+					'class' => 'grid_5'
+					),
 				'dateFormat' => 'DMY',
 				'minYear' => date('Y')-2,
-				'maxYear' => date('Y')+1
+				'maxYear' => date('Y')+1,
+				'separator' => ' ',
+				'class' => 'grid_2'
 			)
 		);
 		echo $this->Form->input('file',
 			array(
-				'label' => __('Medical certificat', true),
-				'type' => 'file'
+				'label' => array(
+					__('Medical certificat', true),
+					'class' => 'grid_5'
+					),
+				'type' => 'file',
+				'class' => 'grid_6'
 			)
 		);
 		echo $this->Form->input('notes',
 			array(
-				'label' => __('Notes/comments', true)
+				'label' => array(
+					__('Notes/comments', true),
+					'class' => 'grid_5'
+					),
+				'class' => 'grid_6'
 			)
 		);
 		echo $this->Form->input('Authorization',
 			array(
-				'label' => __('Authorizations accepted', true)
+				'label' => array(
+					__('Authorizations accepted', 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('Member.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('Member.id'))); ?></li>
-		<li><?php echo $this->Html->link(__('List Members', true), array('action' => 'index'));?></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>
+<?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