Changeset 597
- Timestamp:
- 09/28/07 17:53:27 (1 year ago)
- Files:
-
- branches/1.0beta3.x/lib/jelix/controllers/jControllerDaoCrud.class.php (modified) (6 diffs)
- branches/1.0beta3.x/lib/jelix/controllers/jControllerDaoCrud.class.php (modified) (6 diffs)
- branches/1.0beta3.x/lib/jelix/core-modules/jelix/templates/crud_list.tpl (modified) (1 diff)
- branches/1.0beta3.x/lib/jelix/core-modules/jelix/templates/crud_list.tpl (modified) (1 diff)
- trunk/lib/jelix/controllers/jControllerDaoCrud.class.php (modified) (6 diffs)
- trunk/lib/jelix/controllers/jControllerDaoCrud.class.php (modified) (6 diffs)
- trunk/lib/jelix/core-modules/jelix/templates/crud_list.tpl (modified) (1 diff)
- trunk/lib/jelix/core-modules/jelix/templates/crud_list.tpl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.0beta3.x/lib/jelix/controllers/jControllerDaoCrud.class.php
r596 r597 207 207 $tpl->assign('submitAction', $this->_getAction('savecreate')); 208 208 $tpl->assign('listAction' , $this->_getAction('index')); 209 $this->_create($ rep, $tpl);209 $this->_create($form, $rep, $tpl); 210 210 $rep->body->assign($this->templateAssign, $tpl->fetch($this->editTemplate)); 211 211 return $rep; … … 216 216 * overload this method if you wan to do additionnal things on the response and on the edit template 217 217 * during the create action. 218 * @param jFormsBase $form the form 218 219 * @param jHtmlResponse $resp the response 219 220 * @param jtpl $tpl the template to display the edit form 220 221 */ 221 protected function _create($ resp, $tpl) {222 protected function _create($form, $resp, $tpl) { 222 223 223 224 } … … 306 307 $tpl->assign('listAction' , $this->_getAction('index')); 307 308 $tpl->assign('viewAction' , $this->_getAction('view')); 308 $this->_editUpdate($ rep, $tpl);309 $this->_editUpdate($form, $rep, $tpl); 309 310 $rep->body->assign($this->templateAssign, $tpl->fetch($this->editTemplate)); 310 311 return $rep; … … 314 315 * overload this method if you wan to do additionnal things on the response and on the edit template 315 316 * during the editupdate action. 317 * @param jFormsBase $form the form 316 318 * @param jHtmlResponse $resp the response 317 319 * @param jtpl $tpl the template to display the edit form 318 320 */ 319 protected function _editUpdate($ resp, $tpl) {321 protected function _editUpdate($form, $resp, $tpl) { 320 322 321 323 } … … 379 381 $tpl->assign('deleteAction' , $this->_getAction('delete')); 380 382 $tpl->assign('listAction' , $this->_getAction('index')); 381 $this->_view($ rep,$tpl);383 $this->_view($form, $rep, $tpl); 382 384 $rep->body->assign($this->templateAssign, $tpl->fetch($this->viewTemplate)); 383 385 return $rep; … … 387 389 * overload this method if you want to do additionnal things on the response and on the view template 388 390 * during the view action. 391 * @param jFormsBase $form the form 389 392 * @param jHtmlResponse $resp the response 390 393 * @param jtpl $tpl the template to display the form content 391 394 */ 392 protected function _view($ resp, $tpl) {395 protected function _view($form, $resp, $tpl) { 393 396 394 397 } branches/1.0beta3.x/lib/jelix/controllers/jControllerDaoCrud.class.php
r596 r597 207 207 $tpl->assign('submitAction', $this->_getAction('savecreate')); 208 208 $tpl->assign('listAction' , $this->_getAction('index')); 209 $this->_create($ rep, $tpl);209 $this->_create($form, $rep, $tpl); 210 210 $rep->body->assign($this->templateAssign, $tpl->fetch($this->editTemplate)); 211 211 return $rep; … … 216 216 * overload this method if you wan to do additionnal things on the response and on the edit template 217 217 * during the create action. 218 * @param jFormsBase $form the form 218 219 * @param jHtmlResponse $resp the response 219 220 * @param jtpl $tpl the template to display the edit form 220 221 */ 221 protected function _create($ resp, $tpl) {222 protected function _create($form, $resp, $tpl) { 222 223 223 224 } … … 306 307 $tpl->assign('listAction' , $this->_getAction('index')); 307 308 $tpl->assign('viewAction' , $this->_getAction('view')); 308 $this->_editUpdate($ rep, $tpl);309 $this->_editUpdate($form, $rep, $tpl); 309 310 $rep->body->assign($this->templateAssign, $tpl->fetch($this->editTemplate)); 310 311 return $rep; … … 314 315 * overload this method if you wan to do additionnal things on the response and on the edit template 315 316 * during the editupdate action. 317 * @param jFormsBase $form the form 316 318 * @param jHtmlResponse $resp the response 317 319 * @param jtpl $tpl the template to display the edit form 318 320 */ 319 protected function _editUpdate($ resp, $tpl) {321 protected function _editUpdate($form, $resp, $tpl) { 320 322 321 323 } … … 379 381 $tpl->assign('deleteAction' , $this->_getAction('delete')); 380 382 $tpl->assign('listAction' , $this->_getAction('index')); 381 $this->_view($ rep,$tpl);383 $this->_view($form, $rep, $tpl); 382 384 $rep->body->assign($this->templateAssign, $tpl->fetch($this->viewTemplate)); 383 385 return $rep; … … 387 389 * overload this method if you want to do additionnal things on the response and on the view template 388 390 * during the view action. 391 * @param jFormsBase $form the form 389 392 * @param jHtmlResponse $resp the response 390 393 * @param jtpl $tpl the template to display the form content 391 394 */ 392 protected function _view($ resp, $tpl) {395 protected function _view($form, $resp, $tpl) { 393 396 394 397 } branches/1.0beta3.x/lib/jelix/core-modules/jelix/templates/crud_list.tpl
r596 r597 1 1 <h1>{@jelix~crud.title.list@}</h1> 2 2 3 <table class="crud-record-list" border="1">3 <table class="crud-record-list"> 4 4 <thead> 5 5 <tr> branches/1.0beta3.x/lib/jelix/core-modules/jelix/templates/crud_list.tpl
r596 r597 1 1 <h1>{@jelix~crud.title.list@}</h1> 2 2 3 <table class="crud-record-list" border="1">3 <table class="crud-record-list"> 4 4 <thead> 5 5 <tr> trunk/lib/jelix/controllers/jControllerDaoCrud.class.php
r596 r597 207 207 $tpl->assign('submitAction', $this->_getAction('savecreate')); 208 208 $tpl->assign('listAction' , $this->_getAction('index')); 209 $this->_create($ rep, $tpl);209 $this->_create($form, $rep, $tpl); 210 210 $rep->body->assign($this->templateAssign, $tpl->fetch($this->editTemplate)); 211 211 return $rep; … … 216 216 * overload this method if you wan to do additionnal things on the response and on the edit template 217 217 * during the create action. 218 * @param jFormsBase $form the form 218 219 * @param jHtmlResponse $resp the response 219 220 * @param jtpl $tpl the template to display the edit form 220 221 */ 221 protected function _create($ resp, $tpl) {222 protected function _create($form, $resp, $tpl) { 222 223 223 224 } … … 306 307 $tpl->assign('listAction' , $this->_getAction('index')); 307 308 $tpl->assign('viewAction' , $this->_getAction('view')); 308 $this->_editUpdate($ rep, $tpl);309 $this->_editUpdate($form, $rep, $tpl); 309 310 $rep->body->assign($this->templateAssign, $tpl->fetch($this->editTemplate)); 310 311 return $rep; … … 314 315 * overload this method if you wan to do additionnal things on the response and on the edit template 315 316 * during the editupdate action. 317 * @param jFormsBase $form the form 316 318 * @param jHtmlResponse $resp the response 317 319 * @param jtpl $tpl the template to display the edit form 318 320 */ 319 protected function _editUpdate($ resp, $tpl) {321 protected function _editUpdate($form, $resp, $tpl) { 320 322 321 323 } … … 379 381 $tpl->assign('deleteAction' , $this->_getAction('delete')); 380 382 $tpl->assign('listAction' , $this->_getAction('index')); 381 $this->_view($ rep,$tpl);383 $this->_view($form, $rep, $tpl); 382 384 $rep->body->assign($this->templateAssign, $tpl->fetch($this->viewTemplate)); 383 385 return $rep; … … 387 389 * overload this method if you want to do additionnal things on the response and on the view template 388 390 * during the view action. 391 * @param jFormsBase $form the form 389 392 * @param jHtmlResponse $resp the response 390 393 * @param jtpl $tpl the template to display the form content 391 394 */ 392 protected function _view($ resp, $tpl) {395 protected function _view($form, $resp, $tpl) { 393 396 394 397 } trunk/lib/jelix/controllers/jControllerDaoCrud.class.php
r596 r597 207 207 $tpl->assign('submitAction', $this->_getAction('savecreate')); 208 208 $tpl->assign('listAction' , $this->_getAction('index')); 209 $this->_create($ rep, $tpl);209 $this->_create($form, $rep, $tpl); 210 210 $rep->body->assign($this->templateAssign, $tpl->fetch($this->editTemplate)); 211 211 return $rep; … … 216 216 * overload this method if you wan to do additionnal things on the response and on the edit template 217 217 * during the create action. 218 * @param jFormsBase $form the form 218 219 * @param jHtmlResponse $resp the response 219 220 * @param jtpl $tpl the template to display the edit form 220 221 */ 221 protected function _create($ resp, $tpl) {222 protected function _create($form, $resp, $tpl) { 222 223 223 224 } … … 306 307 $tpl->assign('listAction' , $this->_getAction('index')); 307 308 $tpl->assign('viewAction' , $this->_getAction('view')); 308 $this->_editUpdate($ rep, $tpl);309 $this->_editUpdate($form, $rep, $tpl); 309 310 $rep->body->assign($this->templateAssign, $tpl->fetch($this->editTemplate)); 310 311 return $rep; … … 314 315 * overload this method if you wan to do additionnal things on the response and on the edit template 315 316 * during the editupdate action. 317 * @param jFormsBase $form the form 316 318 * @param jHtmlResponse $resp the response 317 319 * @param jtpl $tpl the template to display the edit form 318 320 */ 319 protected function _editUpdate($ resp, $tpl) {321 protected function _editUpdate($form, $resp, $tpl) { 320 322 321 323 } … … 379 381 $tpl->assign('deleteAction' , $this->_getAction('delete')); 380 382 $tpl->assign('listAction' , $this->_getAction('index')); 381 $this->_view($ rep,$tpl);383 $this->_view($form, $rep, $tpl); 382 384 $rep->body->assign($this->templateAssign, $tpl->fetch($this->viewTemplate)); 383 385 return $rep; … … 387 389 * overload this method if you want to do additionnal things on the response and on the view template 388 390 * during the view action. 391 * @param jFormsBase $form the form 389 392 * @param jHtmlResponse $resp the response 390 393 * @param jtpl $tpl the template to display the form content 391 394 */ 392 protected function _view($ resp, $tpl) {395 protected function _view($form, $resp, $tpl) { 393 396 394 397 } trunk/lib/jelix/core-modules/jelix/templates/crud_list.tpl
r596 r597 1 1 <h1>{@jelix~crud.title.list@}</h1> 2 2 3 <table class="crud-record-list" border="1">3 <table class="crud-record-list"> 4 4 <thead> 5 5 <tr> trunk/lib/jelix/core-modules/jelix/templates/crud_list.tpl
r596 r597 1 1 <h1>{@jelix~crud.title.list@}</h1> 2 2 3 <table class="crud-record-list" border="1">3 <table class="crud-record-list"> 4 4 <thead> 5 5 <tr>
