Skip to content
Snippets Groups Projects

Hotline master

Merged Patrick Barroca requested to merge hotline-master into master
Compare and
17 files
+ 242
192
Preferences
Compare changes
Files
17
@@ -68,7 +68,7 @@ class AbonneController extends ZendAfi_Controller_Action {
public function inscrireSessionAction() {
$this->_redirect('/formations');
$this->_redirectToReferer();
if ((!$session = Class_SessionFormation::find((int)$this->_getParam('id')))
|| $session->isInscriptionClosed())
@@ -1183,4 +1183,22 @@ class AbonneController extends ZendAfi_Controller_Action {
$this->_redirectToReferer();
}
public function formationsAction() {
$this->view->titre = $this->_('S\'inscrire à une formation');
$this->view->sessions = Class_SessionFormation::findAllAvailable($this->_user);
}
public function formationsRegisteredAction() {
$this->view->titre = $this->_('Mes inscriptions en cours');
$this->view->sessions = Class_SessionFormation::findAllRegistered($this->_user);
}
public function formationsDoneAction() {
$this->view->titre = $this->_('Mes formations suivies');
$this->view->sessions = Class_SessionFormation::findAllDone($this->_user);
}
}
\ No newline at end of file