amm-dev-tem team mailing list archive
-
amm-dev-tem team
-
Mailing list archive
-
Message #00010
[Branch ~amm-dev-tem/amm/trunk] Rev 31: Participants of an event are changed by editing the event
------------------------------------------------------------
revno: 31
committer: The Whole Life To Learn <thewholelifetolearn@xxxxxxxxx>
branch nick: sources
timestamp: Tue 2011-07-12 21:25:47 +0200
message:
Participants of an event are changed by editing the event
modified:
app/controllers/events_controller.php
app/views/events/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/controllers/events_controller.php'
--- app/controllers/events_controller.php 2011-06-30 18:56:28 +0000
+++ app/controllers/events_controller.php 2011-07-12 19:25:47 +0000
@@ -102,7 +102,12 @@
if (empty($this->data)) {
$this->data = $this->Event->read(null, $id);
}
- $people = $this->Event->Person->find('list');
+ $people = $this->Event->Person->find('list', array(
+ 'order' => array(
+ 'Person.lastname' => 'asc',
+ 'Person.firstname' => 'asc'
+ )
+ ));
$this->set(compact('people'));
}
=== modified file 'app/views/events/edit.ctp'
--- app/views/events/edit.ctp 2011-05-28 10:19:54 +0000
+++ app/views/events/edit.ctp 2011-07-12 19:25:47 +0000
@@ -51,6 +51,9 @@
)
);
echo $this->Form->input('notes');
+ echo $this->Form->input('Person', array(
+ 'label' => __('People that participate at the event:', true)
+ ));
?>
</fieldset>
<?php echo $this->Form->end(__('Submit', true));?>