@@ -22,13 +22,13 @@ discard block |
||
22 | 22 | $this->view->setVar("projets", $projets); |
23 | 23 | |
24 | 24 | |
25 | - $dialog=$this->jquery->bootstrap()->htmlModal("modal","Ajouter un nouveau projet","test"); |
|
26 | - $buttonFrm=$this->jquery->bootstrap()->htmlButton("btFrm","Nouveau"); |
|
25 | + $dialog = $this->jquery->bootstrap()->htmlModal("modal", "Ajouter un nouveau projet", "test"); |
|
26 | + $buttonFrm = $this->jquery->bootstrap()->htmlButton("btFrm", "Nouveau"); |
|
27 | 27 | $dialog->addOkayButton("Ajouter"); |
28 | 28 | $this->jquery->postFormOnClick("#modal-Ajouter", "Projets/update", "frmAjout", null, array("jsCallback" => $this->jquery->getDeferred("Projets/index", ".content)"))); |
29 | 29 | $dialog->addCancelButton(); |
30 | 30 | $clients = User::find(); |
31 | - $dialog->renderContent($this->view,"projets","frm",array("clients"=>$clients)); |
|
31 | + $dialog->renderContent($this->view, "projets", "frm", array("clients"=>$clients)); |
|
32 | 32 | |
33 | 33 | $buttonFrm->onClick($dialog->jsShow()); |
34 | 34 | |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | |
38 | 38 | } |
39 | 39 | |
40 | - public function updateAction($id = null){ |
|
40 | + public function updateAction($id = null) { |
|
41 | 41 | parent::updateAction(); |
42 | 42 | |
43 | 43 | //Retrouve l'id du dernier projet créer (En theorie celui qui viens d'être créé) |