From a31c1f2ff0f4c996e0b90b1743b775af4cf58e6a Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 23 Oct 2014 17:46:06 -0500 Subject: Scaffolding 10% --- framework/Wsat/pages/TWsatGenerateAR.page | 2 +- framework/Wsat/pages/TWsatHome.page | 34 ++++++++++++++++++------------ framework/Wsat/pages/TWsatLogin.php | 1 - framework/Wsat/pages/TWsatScaffolding.page | 25 ++++++++++++++-------- framework/Wsat/pages/TWsatScaffolding.php | 13 ++++++------ 5 files changed, 44 insertions(+), 31 deletions(-) (limited to 'framework/Wsat') diff --git a/framework/Wsat/pages/TWsatGenerateAR.page b/framework/Wsat/pages/TWsatGenerateAR.page index c41d03a5..53ccc167 100644 --- a/framework/Wsat/pages/TWsatGenerateAR.page +++ b/framework/Wsat/pages/TWsatGenerateAR.page @@ -1,7 +1,7 @@
Active Record Classes Generator
-
+

diff --git a/framework/Wsat/pages/TWsatHome.page b/framework/Wsat/pages/TWsatHome.page index e8796ccd..2f65a541 100644 --- a/framework/Wsat/pages/TWsatHome.page +++ b/framework/Wsat/pages/TWsatHome.page @@ -1,17 +1,25 @@ - + -
Application Dir: <%= Prado::getPathOfNamespace('Application') %>
+
Application Dir: <%= Prado::getPathOfNamespace('Application') %>
-
- - - - - -
- - - Enables you to generate all Active Record Classes with relations included. -
+
+ + + + + + + + + +
+ + + Enables you to generate all Active Record Classes with relations included. +
+ + + Enables you to generate a completed CRUD based in DB tables. It allow to choose bootstrap for the view generation. +
diff --git a/framework/Wsat/pages/TWsatLogin.php b/framework/Wsat/pages/TWsatLogin.php index 051937d7..7aa90740 100644 --- a/framework/Wsat/pages/TWsatLogin.php +++ b/framework/Wsat/pages/TWsatLogin.php @@ -17,7 +17,6 @@ class TWsatLogin extends TPage if ($this->IsValid) { $this->Session["wsat_password"] = $this->getService()->getPassword(); - $url = $this->Service->constructUrl('TWsatHome'); $this->Response->redirect($url); } diff --git a/framework/Wsat/pages/TWsatScaffolding.page b/framework/Wsat/pages/TWsatScaffolding.page index bcf4d276..a3ebffd5 100644 --- a/framework/Wsat/pages/TWsatScaffolding.page +++ b/framework/Wsat/pages/TWsatScaffolding.page @@ -1,12 +1,19 @@ -
Scaffolding Generator
- -
- -
+
Scaffolding Generator
-
- - -
+
+ +
+ +
+ + + + +
+ +
+ + +
diff --git a/framework/Wsat/pages/TWsatScaffolding.php b/framework/Wsat/pages/TWsatScaffolding.php index 7352b2ae..9bbeec3a 100644 --- a/framework/Wsat/pages/TWsatScaffolding.php +++ b/framework/Wsat/pages/TWsatScaffolding.php @@ -17,10 +17,7 @@ class TWsatScaffolding extends TPage public function onInit($param) { parent::onInit($param); - if (!$this->IsPostBack) - { - $this->startVisual(); - } + $this->startVisual(); } private function startVisual() @@ -29,11 +26,12 @@ class TWsatScaffolding extends TPage foreach ($scf_generator->getAllTableNames() as $tableName) { $dynChb = new TCheckBox(); - $dynChb->ID = $tableName; + $dynChb->ID = "cb_$tableName"; $dynChb->Text = ucfirst($tableName); $dynChb->Checked = true; + $this->registerObject("cb_$tableName", $dynChb); $this->tableNames->getControls()->add($dynChb); - + $this->tableNames->getControls()->add("
"); } } @@ -42,7 +40,8 @@ class TWsatScaffolding extends TPage if ($this->IsValid) { $scf_generator = new TWsatScaffoldingGenerator(); - $scf_generator->renderAllTablesInformation(); + // echo $this->cb_student->Text; + // $scf_generator->renderAllTablesInformation(); } } -- cgit v1.2.3