<?php
$structure	= $this->em('Chalk\Core\Structure')->id($req->structure);
$content	= $node->content;
$info	    = \Chalk\Chalk::info($content->getObject());
?>

<?php $this->parent('/layout/page_structure', [
	'content' => $content,
]) ?>
<?php $this->block('main') ?>

<?php if ($info->class != 'Chalk\Core\Content') { ?>
	<form action="<?= $this->url->route() ?>" method="post">
		<?= $this->child("/{$info->local->path}/form", [
			'structure'	=> $structure,
			'content'	=> $content,
			'info'	    => $info,
		], $info->module->class) ?>
	</form>
<?php } ?>
<?php $this->parent('/layout/page_structure', [
	'content' => $content,
]) ?>
<?php $this->block('main') ?>

<?php
if (!isset($node->content)) {
	return;
}
$structure	= $this->em('Chalk\Core\Structure')->id($req->structure);
$content	= $node->content;
$info	    = \Chalk\Chalk::info($content->getObject());
?>

<?php if ($info->class != 'Chalk\Core\Content') { ?>
	<form action="<?= $this->url->route() ?>" method="post">
		<?= $this->child("/{$info->local->path}/form", [
			'structure'	=> $structure,
			'content'	=> $content,
			'info'	    => $info,
		], $info->module->class) ?>
	</form>
<?php } ?>
Fix error in secondary structures.
Fix error in secondary structures.
