Skip to content

Commit

Permalink
[TASK] Render "receipt" partial of EXT:builder upon creating provider
Browse files Browse the repository at this point in the history
  • Loading branch information
NamelessCoder committed Nov 23, 2015
1 parent bcf5dce commit 2464658
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
16 changes: 15 additions & 1 deletion Classes/Controller/BackendController.php
Expand Up @@ -84,9 +84,23 @@ public function buildSiteAction($mass = EnterpriseLevelEnumeration::BY_DEFAULT,
$this->view->assign('view', $view);
$output = $this->kickStarterService->generateFluidPoweredSite($mass, $makeResources, $makeMountPoint, $extensionKey, $author, $title, $description, $useVhs, $useFluidcontentCore, $pages, $content, $backend, $controllers);
$this->view->assign('output', $output);
// Note: remapping some arguments to match values that will be displayed in the receipt; display uses template from EXT:builder
$attributes = array(
'name' => array('value' => $extensionKey),
'author' => array('value' => $author),
'level' => array('value' => $level),
'vhs' => array('value' => $useVhs),
'pages' => array('value' => $pages),
'content' => array('value' => $content),
'backend' => array('value' => $backend),
'controllers' => array('value' => $controllers),
);
$attributes['name'] = $extensionKey;
$attributes['vhs'] = $useVhs;
$this->view->assign('attributes', $attributes);
}




}
}
4 changes: 2 additions & 2 deletions Resources/Private/Templates/Backend/BuildSite.html
Expand Up @@ -12,10 +12,10 @@

<f:section name="Content">
<f:render section="{view}" arguments="{_all}" />
<v:render.template file="EXT:builder/Resources/Private/Partials/Receipt.html" variables="{attributes: attributes}" format="html" />
</f:section>


<f:section name="buildSite">
{output}
<div class="alert alert-success" role="alert">{output}</div>
</f:section>

0 comments on commit 2464658

Please sign in to comment.