← Back to team overview

amm-dev-tem team mailing list archive

[Branch ~amm-dev-tem/amm/trunk] Rev 26: Deleted link for adding a picture in the people index

 

------------------------------------------------------------
revno: 26
committer: The Whole Life To Learn <thewholelifetolearn@xxxxxxxxx>
branch nick: sources
timestamp: Tue 2011-05-31 17:21:15 +0200
message:
  Deleted link for adding a picture in the people index
modified:
  app/controllers/members_controller.php
  app/views/members/add.ctp
  app/views/people/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/controllers/members_controller.php'
--- app/controllers/members_controller.php	2011-05-31 15:15:55 +0000
+++ app/controllers/members_controller.php	2011-05-31 15:21:15 +0000
@@ -318,14 +318,4 @@
 		$this->Session->setFlash(__('Member was not deleted', true));
 		$this->redirect(array('action' => 'index'));
 	}
-
-//	function ajax_search($field = null, $value = null) {
-//		$this->layout = 'ajax';
-////		echo $field.' '.$value;
-//		$this->set('results', $this->Member->Person->find('all', array(
-//			'conditions' => array(
-//				$field.' LIKE ' => $value.'%'
-//			)
-//		)));
-//	}
 }

=== modified file 'app/views/members/add.ctp'
--- app/views/members/add.ctp	2011-05-31 15:15:55 +0000
+++ app/views/members/add.ctp	2011-05-31 15:21:15 +0000
@@ -42,18 +42,6 @@
 				$('.guardian').detach();
 			}
 		});
-//		$('#PersonFirstname').keyup(function(){
-//			if($('#PersonFirstname').val().length >= 2) {
-//				$.ajax({
-//					type: "POST",
-//					url: "ajax_search/Person.firstname/"+$('#PersonFirstname').val(),
-//					success: function(data) {
-//						$('#ajax_search').remove();
-//						$('#PersonFirstname').after(data);
-//					}
-//				});
-//				}
-//		});
 	});
 </script>
 <div class="members form">

=== modified file 'app/views/people/index.ctp'
--- app/views/people/index.ctp	2011-05-27 05:44:03 +0000
+++ app/views/people/index.ctp	2011-05-31 15:21:15 +0000
@@ -26,7 +26,6 @@
 		<td class="actions">
 			<?php echo $this->Html->link(__('View', true), array('action' => 'view', $person['Person']['id'])); ?>
 			<?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $person['Person']['id'])); ?>
-			<?php echo $this->Html->link(__('Add a picture', true), array('action' => 'add_picture', $person['Person']['id'])); ?>
 			<?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'])); ?>
 		</td>
 	</tr>