-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wrapping up new Layouts, Parts, & Blocks system. This is a major comm…
…it that is not backwards compatible with the previous GitHub Edge Layouts. Major components of the new view system in place. Still need comments. Added documentation for Part and Buffer as well as regression tests. AssertiveTemplate commented. Layout commented and tested. PartBlock and Buffer documented and tested. Updated WelcomeApp Updated default resource scaffolding.
- Loading branch information
1 parent
8ede42a
commit ab78977
Showing
110 changed files
with
2,086 additions
and
510 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
recess/recess/apps/tools/templates/scaffolding/views/home/index.template.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
recess/recess/apps/tools/templates/scaffolding/views/resource/details.part.template.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
recess/recess/apps/tools/templates/scaffolding/views/resource/details.template.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<?php | ||
Layout::extend('{{modelNameLower}}/layout'); | ||
Layout::blockAssign('title', 'Details of {{modelName}} #' . ${{modelNameLower}}->{{primaryKey}} ); | ||
Layout::extend('layouts/{{modelNameLower}}'); | ||
$title = 'Details of {{modelName}} #' . ${{modelNameLower}}->{{primaryKey}} ; | ||
?> | ||
|
||
<?php Part::render('{{modelNameLower}}/details', ${{modelNameLower}}) ?> | ||
<?php Part::draw('{{modelNameLower}}/details', ${{modelNameLower}}) ?> | ||
|
||
<?php echo Html::anchor(Url::action('{{modelName}}Controller::index'), 'Back to list of {{modelNameLower}}s') ?> | ||
<hr /> |
6 changes: 3 additions & 3 deletions
6
recess/recess/apps/tools/templates/scaffolding/views/resource/editForm.template.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<?php | ||
Layout::extend('{{modelNameLower}}/layout'); | ||
Layout::extend('layouts/{{modelNameLower}}'); | ||
if(isset(${{modelNameLower}}->{{primaryKey}})) { | ||
$title = 'Edit {{modelName}} #' . ${{modelNameLower}}->{{primaryKey}}; | ||
} else { | ||
$title = 'Create New {{modelName}}'; | ||
} | ||
Layout::blockAssign('title', $title); | ||
$title = $title; | ||
?> | ||
|
||
<?php Part::render('{{modelNameLower}}/form', $_form, $title) ?> | ||
<?php Part::draw('{{modelNameLower}}/form', $_form, $title) ?> | ||
|
||
<?php echo Html::anchor(Url::action('{{modelName}}Controller::index'), '{{modelName}} List') ?> |
4 changes: 2 additions & 2 deletions
4
recess/recess/apps/tools/templates/scaffolding/views/resource/form.part.template.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
recess/recess/apps/tools/templates/scaffolding/views/resource/layout.template.php
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
recess/recess/apps/tools/templates/scaffolding/views/resource/resource.layout.template.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
Layout::extend('layouts/master'); | ||
Layout::input($title, 'string'); | ||
Layout::input($body, 'Block'); | ||
|
||
$title .= '{{modelName}} - '; | ||
|
||
$navigation = Part::block('parts/navigation'); | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.